Track every change made to your Excel spreadsheets with built-in features—no third-party software required. Excel’s audit trails and version history let you see who modified cells, when, and why, while allowing you to revert to previous states if errors occur. This guide covers version history, tracking changes, and advanced methods for sharing protected workbooks with others. Unlike generic templates, these steps work for all Excel (2016+) versions, whether on Windows, Mac, or online.
What You'll Need
- Microsoft Excel installed (version 2016 or later)
- Access to your files (local or cloud storage like OneDrive/SharePoint)
- Optional: A secondary device or a colleague with the workbook open for live tracking
- Excel’s built-in features (no extra plugins or add-ins)
Step-by-Step
- Enable Version History (for file tracking)
For files stored in OneDrive or SharePoint, version history is enabled by default and automatically tracks changes. To access it on your local machine:
- Open the file in Excel.
- Click File > Info > Manage Version History. (This path may vary slightly by version; labels can differ by region.)
- Select Turn on version history and choose how long to keep versions (30 days to unlimited).
- Click OK. Excel will now save snapshots of your workbook every time you save it.
Note: Version history works only for files saved to OneDrive or SharePoint. For local files, use the tracking methods below.
- Track Changes in a Single Workbook (for collaborative edits)
If multiple users edit the same file, enable the Track Changes feature to see who added/deleted text/formulas and when:
- Open the workbook and click Review > Track Changes > Track Changes (or Track Changes > Turn On Tracking in older versions).
- Select the cells you want to track—either individually or the entire sheet.
- Click Review > Track Changes > Start Tracking. Changes will now be recorded with author names and timestamps.
- To review changes later, click Review > Track Changes > Review Changes and select Show Markup.
Important: Track Changes is a live feature—if others edit the file while you’re reviewing, their changes will appear in real time. To stop tracking, go to Review > Track Changes > Stop Tracking.
- Record a Macro to Log Edits (for automated tracking)
For advanced users, record a macro that logs every edit in a separate sheet. This requires basic VBA knowledge but adds metadata to each cell:
- Press Alt + F11 to open the VBA Editor.
- Go to Insert > Module and paste this code:
- Close the VBA Editor and run the macro by pressing F5 (or assign it to a button via the Developer > Insert > Macro menu).
- A sheet named Log will auto-create, tracking edits with timestamps and author names.
Sub LogEdit() Dim ws As Worksheet, wsLog As Worksheet Set ws = ActiveSheet Set wsLog = ThisWorkbook.Sheets("Log") With ws If .UsedRange.Cells.Count > 1 Then wsLog.Range("A1").Value = Date wsLog.Range("B1").Value = "Editor: " & Environ("USERNAME") wsLog.Range("C1").Value = "Edited: " & .Name & "!A1" wsLog.Range("D1").Value = .Cells(1, 1).Formula wsLog.Range("A2").Offset(1).Value = Date wsLog.Range("B2").Offset(1).Value = "Editor: " & Environ("USERNAME") wsLog.Range("C2").Offset(1).Value = .Cells(1, 1).Address wsLog.Range("D2").Offset(1).Value = .Cells(1, 1).Value End If End With End SubWarning: This macro records edits to the active cell. For entire sheets, modify the code to loop through ranges (e.g., `.Cells(1, 1).Resize(ws.UsedRange.Rows.Count, ws.UsedRange.Columns.Count)`).
- Use Excel’s Audit Trail (for undo/revert actions)
If you need to revert specific changes (e.g., after a typo), use Excel’s built-in undo history:
- Go to Home > Clipboard > Show All Options (or Home > Clipboard > Undo/Redo in older versions).
- Click Manage Paste or Undo/Redo All and sort changes by date/time.
- Select the change you want to undo (click the timestamp) and choose Undo.
- To revert permanently, edit the formula/formatting directly in the sheet.
Note: This only works for direct edits (not saved versions or macros). For full audit trails, combine this with Track Changes or version history.
Common Mistakes
- Ignoring file location: Version history only works for OneDrive/SharePoint files. For local files, use Track Changes or macros.
- Overlooking real-time conflicts: If multiple users edit the same file while Track Changes is enabled, changes will overlap. Turn off tracking during simultaneous edits.
- Not saving macros: VBA macros disappear if Excel crashes. Test them thoroughly and save as a standard module (File > Save As > This Project’s Code).
- Assuming undo history is infinite: Excel’s undo stack limits are usually 100 actions. For long-term auditing, use version history or a log sheet.
Tips
- For team collaboration: Share the workbook in SharePoint or OneDrive to leverage version history automatically. Assign edit permissions via file settings (right-click > Share > Edit).
- For VBA users: Add a header row to your log sheet to avoid duplicate entries. Example:
Sub LogEdit() Dim ws As Worksheet, wsLog As Worksheet Set ws = ActiveSheet Set wsLog = ThisWorkbook.Sheets("Log") If wsLog.Range("A1").Value = "" Then wsLog.Range("A1:D1").Value = Array("Date", "Editor", "Cell Ref", "Change") End If ... (rest of the code) End Sub - For Mac users: Version history works on Mac Excel too, but the menu path is File > Version History > Manage Version History. Track Changes is available via Review > Track Changes.
- For large datasets: Use Track Changes selectively (e.g., only on key formulas) to avoid clutter. Clear tracking when done via Review > Track Changes > Stop Tracking.
- Backup first: Always save a copy before enabling version history or macros, especially if the file contains critical data.
Troubleshooting
- Version history not saving?
Check if the file is saved to OneDrive/SharePoint. For local files, manually enable version history via File > Info > Manage Version History > Turn On Version History. If it still doesn’t work, try saving the file to OneDrive first.
- Track Changes not recording edits?
Ensure the workbook is not protected (Review > Protect Sheet). Also, check that no other macros or add-ins are interfering. Restart Excel if changes persist.
- Macro not running?
Verify the macro is assigned to a button or keyboard shortcut (Developer > Macros). Test it on a blank sheet first. If VBA is disabled, enable it in File > Options > Customize Ribbon > Developer.
- Audit trail missing?
Clear the clipboard cache (Home > Clipboard > Clear Clipboard) or restart Excel. For persistent issues, check for Excel corruption (File > Open > Options > Load Now > Check for Issues).
- Log sheet empty?
The macro may not be referencing the correct sheet. Modify the code to use a fixed sheet name (e.g.,
ThisWorkbook.Sheets("Log")) instead ofActiveSheet. Test with a fresh workbook.
Frequently Asked Questions
Can I track changes in Excel for free?
Yes—Excel’s built-in features like version history (via OneDrive/SharePoint) and Track Changes are free for Microsoft 365 subscribers. For local files, use macros (VBA) or audit trails, though these require some setup.
How do I revert an entire file to a previous version?
In OneDrive/SharePoint, click File > Info > Version History > Restore to revert to a specific snapshot. For local files, use File > Info > Manage Version History > Turn On Version History and restore via the list.
Is there a way to track changes without macros?
Yes—enable Track Changes for live edits or use Excel’s Audit Trail (Home > Clipboard > Show All Options > Manage Paste) to see undo history. These methods are user-friendly but less detailed than macros.
Can I track changes in Excel Online?
Unfortunately, Excel Online does not support Track Changes or VBA macros. Use version history via OneDrive (online storage) for auditing, but edits may not be trackable in real time.
How do I protect a sheet to prevent edits?
Go to Review > Protect Sheet and enter a password. To protect a workbook, click Review > Protect Workbook and choose structures to lock (e.g., sheets, objects).
Will my edits be recorded in a shared workbook?
If Track Changes is enabled, all edits will be visible to others in real time. For collaborative workflows, turn it off during edits or use version history instead.