Sub topic 5
Co-authoring in Real Time and Seeing Who Is Where
This chapter explains how real-time co-authoring works in Excel, how to read presence indicators, and which mistakes cause problems. It assumes you have basic Excel skills (entering data, formulas, formatting) and a Microsoft 365 or Microsoft account. It also assumes the workbook is already saved in OneDrive or SharePoint and shared with the people who need it. Those steps came in earlier chapters.
What real-time co-authoring is
Co-authoring means two or more people have the same workbook open and edit it at the same time. Each person works in their own copy of Excel (desktop, web, Mac, or mobile). Excel exchanges the changes through the cloud service that stores the file. Nobody has to wait for someone else to close the file, and nobody receives a "file is locked" message.
Co-authoring depends on three conditions:
- The file is stored in OneDrive, OneDrive for Business, or SharePoint.
- The file is a modern format, normally
.xlsx,.xlsm, or.xlsb. - AutoSave is on for the people who want to see edits as they happen.
The third condition matters most. AutoSave sends your edits to the cloud as you make them, and it pulls in other people's edits. With AutoSave off, you only exchange changes when you save. The previous chapter covered AutoSave in detail, so here the focus is on what you see and what happens when several people work together.
How changes travel between editors
Excel does not send whole files back and forth. Each editor's Excel sends small change records, such as "cell B4 now contains 250", to the service. The service merges the records and delivers them to the other open copies.
Three consequences follow from this design:
- A change is sent when you commit it, usually by pressing Enter or Tab or by clicking another cell. Text you are still typing in a cell stays private until then.
- Delivery is fast but not instant. On a slow connection, another person's edit may appear several seconds late.
- Formulas are recalculated locally. Each copy of Excel recalculates after it receives a change, so everyone sees results from the same inputs, even though the calculation happens on each machine.
Presence indicators
Presence indicators show who else is in the workbook and where they are working.
| Indicator | Where you see it | What it tells you |
|---|---|---|
| Profile pictures or initials | Top right of the window, near the Share button | Who currently has the workbook open |
| Colored cell border with a name flag | On the grid | The cell or range another person has selected |
| Colored sheet tab marker | Sheet tabs (in some versions) | Which sheet another person is on |
Each person gets their own color, so you can tell several collaborators apart. Hover over or click a colored border to see the person's name. Clicking a profile picture in the top-right corner can take you to where that person is working.
Some versions of Excel show a limited set of indicators. Excel for the web generally shows the full set. If you do not see colored borders on the desktop app, check that AutoSave is on and that you have the latest update. Presence also needs both people to be signed in to accounts that the file is shared with.
Anonymous and guest viewers
People who open an "anyone with the link" file without signing in appear as anonymous guests, with a generic name. You cannot identify them from the indicator, so use named invitations for work where you need to know who changed what.
Seeing edits as they arrive
When another person commits an edit to a cell you can see, the value changes on your grid. You do not need to refresh. A few behaviors are worth knowing:
- If you are typing in a cell and someone else edits a different cell, nothing interrupts you.
- If you are in a cell and someone else selects it, you see their colored border over or next to yours. Both of you can still type, but the second commit wins (see the chapter on simultaneous edits).
- Sorting, filtering, and hiding rows are handled differently from cell edits. Depending on version and settings, a sort or filter by one person may affect the view of others. When you need a private view, use a sheet view (on the View tab in Excel for the web and recent desktop builds) so your filter does not change what others see.
Checking the state from VBA
If your workbook contains a macro, you can read the AutoSave setting to warn users who have it off. The .xlsm format supports co-authoring in current versions, but macros cannot be edited by several people at once in the same way as cells, so treat code as something one person changes at a time.
Sub ReportAutoSaveState()
If ActiveWorkbook.AutoSaveOn Then
MsgBox "AutoSave is on. Edits are saved to the cloud automatically."
Else
MsgBox "AutoSave is off. Turn it on to co-author in real time."
End If
End SubAutoSaveOn is a property of the Workbook object. It returns True when AutoSave is active. The property is read at the time the macro runs, so it reflects the current state, not a past one. If the workbook is not stored in the cloud, the property returns False, so the message "Turn it on" may be misleading in that case. Check where the file is stored first.
A typical working session
Suppose a three-person team keeps a monthly budget in one workbook. Ana owns the Inputs sheet, Ben owns Forecast, and Chloe reviews Summary.
- Each person opens the file from the shared location, not from a downloaded copy.
- Each confirms that AutoSave is on in the title bar.
- Ana updates rent and salary figures on
Inputs. Ben sees her colored border on that sheet and the values change on his screen. - Ben's
Forecastformulas referenceInputs, so they recalculate as Ana's edits arrive. - Chloe watches
Summaryupdate. When she wants to ask a question, she uses a comment rather than typing in a cell.
This works because each person has a distinct area. Distinct areas reduce the chance that two people overwrite each other, which is the main design principle in the later chapter on structuring a workbook for several editors.
Common errors and how to avoid them
Working in a downloaded copy
If someone downloads the workbook and edits the local copy, that copy is no longer part of the session. Their changes do not appear for others, and the two files diverge. Always open the file from the shared location or from the synced folder that OneDrive manages.
Leaving AutoSave off
With AutoSave off, your edits stay on your computer until you save. Others do not see them, and you do not see theirs until a save and refresh cycle happens. Excel may then ask you to reconcile changes when you save. Turn AutoSave on at the start of each session.
Using unsupported features during a session
Some features limit or block co-authoring, for example certain legacy sharing modes or workbook-level protection settings. A later chapter lists these. If a feature prevents co-authoring, Excel typically opens the file in a mode where other people see a message that the file is in use, or it offers a read-only copy.
Assuming the title bar shows everything
The names near the Share button show who has the file open, but they do not prove that each person's edits have reached the cloud. A person with a poor connection may be shown as present while their changes are still waiting. If numbers look wrong, check the save status next to the file name.
Editing the same range at once
Two people editing the same cell is allowed, but the later commit replaces the earlier one without a warning in many cases. Agree on ownership of ranges in advance, or use protected ranges.
Choosing between real-time and offline work
| Situation | Better choice | Reason |
|---|---|---|
| Several people updating different sections of one file | Real-time co-authoring with AutoSave on | Fast feedback, one version of the file |
| One person making a large restructure, such as moving many sheets | Ask others to close the file, or work in a copy | Large structural changes are the most likely to conflict |
| You are on a plane with no connection | Work offline, then reconnect | Changes sync when the connection returns |
| You need to test risky formulas | Save a copy under a new name | Keeps experiments out of the shared file |
When you work offline and reconnect, Excel merges your changes with the cloud copy. If you changed cells that others also changed, Excel may ask you to choose which version to keep. Keep offline sessions short to reduce the number of conflicts.
Exercise
Your teammate says she cannot see your edits to the Forecast sheet, although both of you opened the workbook from the team's SharePoint library. Name two settings or conditions to check, and say what each would explain.
Show answer
First, check that AutoSave is on for you. With AutoSave off, your edits stay local until you save, so she would not see them. Second, check that she opened the file from the shared location and not from a downloaded copy. A downloaded copy is a separate file, so her view never receives your changes. You could also check the save status next to the file name for a pending sync caused by a poor connection.
Exercise
The macro above shows "AutoSave is off" for a workbook that sits on a local hard drive. Why is the advice in that message incomplete, and what would you check first?
Show answer
AutoSave is only available for files stored in OneDrive or SharePoint. A file on a local drive cannot turn it on, so the real fix is to move or save the file to the cloud location first. Check the file's storage location before telling the user to switch AutoSave on.
Exercise
Ana and Ben both have cell C10 selected and both type a new value. What do the presence indicators show, and which value remains after both commit?
Show answer
Each of them sees the other's colored border on C10 with a name flag. The indicators do not stop either person from typing. The value committed last remains, and the earlier value is replaced.