Google-sheets – Preventing concurrent editing of a cell in Google Sheets

google sheets

We often have the case of two people overwriting each other's changes by writing on the same cell at the same time.

Is there a way to make it so that cells can't be written by more than one person at a time?

For instance, by having them locked for other editors when they are selected by a user.

Best Answer

It is not possible to programmatically alter the protection state of a range/cell in a Google Spreadsheet. I can imagine, to protect the cell after edit (via onEdit) for lets say 1 second and it being made accessible right after.

Star this issue on the Google Apps Script issue tracker: 1721 (I just did...).
The more people staring it, the more likely it will be implemented !!