Sub topic 9
What happens when two people edit the same cell
This chapter assumes you can save a workbook to OneDrive or SharePoint, that AutoSave is on, and that you have seen presence indicators during co-authoring. Here you will learn how Excel merges simultaneous edits and what happens when two people change the same cell.
How Excel merges simultaneous edits
When AutoSave is on, each change is sent to the cloud as soon as its author commits it. A change is committed when the author presses Enter, Tab, or an arrow key, or clicks another cell. Excel does not send half-typed text. The service merges the changes into one copy of the workbook, and every editor's screen updates a moment later.
Edits to different cells never conflict. Two people can type in A1 and B1 at the same moment, and both changes are kept. Conflicts happen only when two people commit changes to the same cell, or to cells that depend on each other in a way that matters, such as a structural change under another person's edit.
The same-cell rule
If two people commit to the same cell at nearly the same time, the change that reaches the server last is kept. The earlier value is replaced. Excel does not show a conflict dialog for this case in co-authoring mode. The cell simply shows the newer value on every screen.
The earlier value is not lost for good. If AutoSave had already saved it, it exists in an earlier version, and you can recover it with Version History.
A cell that someone is editing is not locked. Presence indicators show a colored border around the cell another person has selected, which warns you before you type. Use that border as a signal to wait or to ask.
When Excel shows a conflict
Some situations produce a prompt instead of a silent merge:
- Your changes cannot be saved because the file changed in a way that blocks the merge. Excel offers to refresh, and your unsaved edit may need to be re-entered.
- You are working offline or with AutoSave off. When you save, Excel compares your copy with the cloud copy and may ask you to choose how to reconcile them.
- A feature that blocks co-authoring is in use. The next chapters cover these features.
Formulas and dependent cells
Merging works on cell contents, not on results. If Ana edits an input in B2 and Ben edits a formula in C2 that uses B2, both changes are kept. The formula recalculates with whatever B2 holds at that time. Check totals after a busy editing session, because each person may have seen a different intermediate result.
Structural edits carry more risk. Inserting or deleting rows and columns shifts references for everyone. If Ben types in row 5 just as Ana deletes row 3, Ben's value ends up in row 4 after the merge. Plan structural changes with the group, or do them while few people are editing.
Practical habits
- Watch the colored cell borders before you edit a shared range.
- Give each person a column, a row block, or a sheet to own.
- Announce row and column inserts or deletes in a comment or @mention.
- After a conflict, open Version History and compare the versions.
Exercise
Ana and Ben both start with B2 = 10. Ana commits 12, then Ben commits 15 a second later. Both have AutoSave on. What does B2 show, and how can Ana recover her value?
Show answer
B2 shows 15 on every screen, because Ben's change reached the server last. No conflict dialog appears. Ana can open Version History, find the saved version that holds 12, and restore it or copy the value from it.
Exercise
Why can a row deletion by one editor put another editor's typed value in the wrong place?
Show answer
Deleting a row shifts every row below it. If the other editor's change lands after the merge, it is applied relative to the shifted layout, so the value can end up one row off. Announce structural changes or schedule them when few people are editing.