Yes, you can track changes in Excel files stored in SharePoint—but only if you use the right method. Unlike standalone Excel, SharePoint’s version history and built-in tracking features don’t automatically log edits in real time. Instead, you’ll need to rely on SharePoint’s built-in revision history, conditional formatting to flag changes, or third-party tools. This guide walks you through the simplest and most effective approaches, from checking SharePoint’s version history to enforcing workflows that log changes automatically.
What You'll Need
- An Excel file (.xlsx) stored in a SharePoint library or OneDrive for Business.
- Access to SharePoint Admin Center (for advanced settings) or SharePoint site permissions (for library-level tracking).
- If using conditional formatting or macros, a version of Excel that supports these features (Excel 2016+ for built-in tools; third-party tools like Excel Tracker or Restlock for advanced tracking).
- A SharePoint admin account (for configuring document versions) or a user account with "Edit" permissions on the library.
- Optional: Power Automate (Microsoft Flow) or a third-party add-in for automated logging.
Step-by-Step
-
Enable Version History in SharePoint:
- Go to your SharePoint site and open the Excel file (or folder containing the file) in a browser.
- Click the Library Settings (gear icon) and select Versioning settings.
- Under Versioning options, check these boxes:
- Enable versioning for this library (required for tracking changes).
- Check Versioning is based on file content (if you want SharePoint to track edits).
- Choose how long to retain versions (e.g., 14 days or indefinitely).
- Click OK and save.
Note: This method logs changes by detecting file content differences, but it won’t show who made edits or when. To track edits within Excel, you’ll need additional steps.
-
Check Version History in SharePoint:
- In the SharePoint library, right-click the Excel file and select Version history.
- You’ll see a list of previous versions, including:
- Date/time of the change.
- Size of the file (to spot deleted content).
- A preview of the changes (if available).
- Use the Restore button to revert to a previous version.
If the version history isn’t showing: Ensure versioning is enabled (Step 1) and the file is stored in a library (not OneNote or a document in an email attachment).
-
Use Excel’s Built-in Change Tracking:
- Open the Excel file in Excel (desktop or mobile).
- Go to Review > Track changes.
- Select Accept Revisions or Reject Revisions to mark changes as approved or discarded.
- After editing, save the file and upload it back to SharePoint. SharePoint won’t track this automatically—you’ll need to check version history manually.
Warning: This method shows who made changes in Excel but not in SharePoint. For SharePoint-wide tracking, combine this with Step 1.
-
Conditional Formatting to Highlight Changes:
- Open the Excel file in Excel and go to Home > Conditional Formatting > New Rule.
- Select Use a formula to determine which cells to format.
- Enter a formula like:
=OR(COUNTIF($A$1:A1, $A1) <> 1, COUNTIF($B$1:B1, $B1) <> 1)(This flags cells where data has changed since last open.) - Choose a formatting style (e.g., red fill) and click OK.
- When the file is uploaded to SharePoint, teammates will quickly spot changes.
Limitations: This method requires manual action in Excel. For SharePoint-native tracking, see Step 1.
-
Automate Change Logging with Power Automate:
- Go to Power Automate (https://flow.microsoft.com) and create a new flow.
- Add an Initialize variable (e.g., `changes`).
- Add a Trigger:
- Select When a file is created or updated in SharePoint.
- Choose the library where your Excel file is stored.
- Add an Action: Get file to retrieve the file details.
- Add another Action: Send a notification (e.g., email or Teams message) with:
- File name.
- Author (using the `author()` function in the Get file action).
- Date modified.
- Test the flow by manually triggering it or waiting for the file to update.
Result: Power Automate notifies you (or the entire team) of edits, including who made them. This is the most robust method for SharePoint tracking.
Common Mistakes
- Skipping versioning: Without enabling versioning in SharePoint (Step 1), you won’t see historical changes. Always check the library settings first.
- Ignoring Excel’s Track Changes: SharePoint version history won’t tell you who edited the file—Excel’s built-in tracking (Step 3) fills that gap.
- Using the wrong file format: SharePoint’s version history works best with .xlsx files. Avoid .xlsm (macros) or corrupt files, as they may not update properly.
- Overlooking permissions: Ensure the user editing the file has Edit or Full Control permissions on the SharePoint library. Without this, changes won’t save properly.
- Assuming Power Automate will replace version history: Power Automate adds extra tracking but doesn’t replace SharePoint’s built-in versioning. Use both for full coverage.
Tips
- For teams: Use SharePoint’s version history to compare drafts with final versions, then add Power Automate notifications for real-time alerts.
- For Excel-only tracking: Combine Track Changes (Step 3) with conditional formatting (Step 4) to highlight changes before they’re shared.
- For large files: SharePoint’s version history may slow down with very large files (>100MB). Compress the file before enabling versioning.
- Backup before restoring: If you need to revert a file, make a copy first. SharePoint’s restore button only works on the original file.
- Test with a test file: Try all methods on a non-critical file before applying them to production data.
Troubleshooting
-
Version history shows nothing:
- Double-check that versioning is enabled (Step 1).
- Verify the file is in a SharePoint library (not OneDrive or a document in Outlook).
- Wait 5–10 minutes after editing for the file to sync with SharePoint.
- If still stuck, try a different browser or clear your cache.
-
Power Automate flow isn’t triggering:
- Ensure the file has been updated in SharePoint since the last flow run.
- Check the flow’s “Run history” to see if it failed (e.g., due to permissions).
- Test the flow manually by triggering it via the SharePoint file’s context menu.
-
Excel Track Changes disappears:
- Reset Excel settings: Close all instances of Excel, then restart the app.
- Reopen the file and check if Track Changes is still available.
- If the problem persists, update Excel to the latest version.
-
Conditional formatting isn’t detecting changes:
- Refresh the worksheet: Right-click the file > Refresh.
- Manually trigger the conditional formatting rule by editing a cell.
- If the formula is too complex, simplify it (e.g., use `=IF(COUNTIF(A:A,A1)=1, "Same", "Changed")`).
Frequently Asked Questions
Can SharePoint track changes in real time?
No, SharePoint’s version history only shows changes after they’re saved, not in real time. For real-time alerts, use Power Automate (Step 5) or enable SharePoint’s audit logs (requires SharePoint Admin Center).
How do I know who made changes in SharePoint?
SharePoint version history doesn’t show who edited the file—only the date and size. To track authors, use Excel’s Track Changes (Step 3) or Power Automate (Step 5), which pull the editor’s name from SharePoint metadata.
What’s the difference between versioning and audit logs?
Versioning logs file changes but not who did them. Audit logs (admin-only) track every action (edit, delete, share) with user details. For most users, versioning + Excel Track Changes is sufficient.
Can I disable version history if it’s slowing down the library?
Yes, but you’ll lose all historical changes. To disable: 1. Go to Library Settings > Versioning settings. 2. Uncheck Enable versioning and save. 3. Warning: All future edits will overwrite the last saved version.
My Excel file keeps syncing issues—how do I fix it?
Sync problems often stem from: - Large file size (>20MB may cause delays). - Network issues. Try: - Disconnecting from VPN or corporate networks. - Uploading the file manually to SharePoint. - Opening the file in Excel offline and resaving.
Do I need a SharePoint admin to use these methods?
No. Versioning (Step 1) and Power Automate (Step 5) require user permissions, not admin access. For audit logs (advanced), you’ll need admin rights.