Sub topic 13
Designing a workbook that several people can edit safely
This chapter assumes you can save a workbook to OneDrive or SharePoint, share it with a link, and turn on AutoSave. It also assumes you have seen presence indicators and know that co-authoring merges edits cell by cell. Here you will apply that knowledge to the layout of the workbook itself.
Why layout decides how many collisions you get
Co-authoring merges changes at the cell level. Two people can type in different cells at the same moment without conflict. A collision happens only when two people change the same cell, or when one person's edit changes what another person is working on. Layout is therefore the main tool you have. If each person has a clear area to work in, collisions become rare.
Give each editor their own space
Use one of these patterns, from safest to most shared.
- One sheet per person or team. Each editor works on their own sheet. A summary sheet reads from all of them.
- One block of rows per person. Everyone works on the same sheet, but each person owns a labeled range.
- One shared table that people append to. Everyone adds new rows. This is the most collision-prone pattern, so keep the table narrow and simple.
The diagram shows the first pattern.
Separate inputs, calculations, and outputs
Put raw input in one place, formulas in another, and reports in a third. Then people who enter data never touch formulas, and people who build reports never overwrite data.
- Keep inputs on their own sheet, with clear headers.
- Keep calculations on a sheet that most people do not edit.
- Use Excel tables and named ranges so formulas keep working when rows are added.
- Avoid whole-column formulas that many people might edit in place.
Lock what should not change
Design includes protection. Combine your layout with sheet protection and allowed edit ranges, so each person can change only their own area.
Make the state visible
Collaborators work better when the workbook explains itself.
- Add a README sheet that says who owns which range and what each sheet is for.
- Use consistent colors for input cells, for example light yellow.
- Add data validation, such as drop-down lists, so people cannot type unexpected values.
- Add a status column such as "Draft" or "Reviewed", so people know which rows are final.
Check AutoSave state with a macro
If the team uses a macro, it is useful to confirm that AutoSave is on before anyone edits. This macro reads the Workbook.AutoSaveOn property.
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 SubNote that a workbook with macros must be saved as .xlsm. Excel for the web does not run macros, so treat this as a check for desktop users only.
Common design errors
| Problem | Effect | Fix |
|---|---|---|
| Everyone edits one shared range | Frequent overwrites | Give each person a block or sheet |
| Inputs and formulas mixed together | Formulas overwritten by accident | Separate sheets and protect formulas |
| Inserting or deleting rows in the middle of shared data | Other people's work shifts under them | Append at the bottom, or agree on one owner for structure |
| No documentation | People guess where to type | Add a README sheet |
Plan for recovery
Even a well-designed workbook can be damaged by an edit. Know where Version History is before you need it, and agree who is allowed to restore an earlier version. Keep structural changes, such as renaming sheets or moving columns, to one named person at agreed times.
Exercise
Your team of four enters weekly sales figures into one sheet, and a manager reads a total. Describe a layout that reduces edit collisions and name two protections you would add.
Show answer
Give each person a separate sheet, or a separate labeled block of rows, for their weekly figures. Put the total on a Summary sheet that reads from those areas. Protect the Summary sheet and all formulas, and use allowed edit ranges so each person can change only their own block. Data validation on the input cells is also a good protection.
Exercise
Why is inserting a row in the middle of shared data riskier than adding a row at the bottom?
Show answer
An inserted row shifts the cells below it, so a collaborator who is typing in those cells may find their work in a different place or have it applied to the wrong row. Adding at the bottom leaves existing cell positions unchanged.