Excel does not have a single, user-accessible "error log" file like a text document that lists every mistake or formula error. Instead, technical errors, application crashes, and system-level failures are recorded in the Windows Event Viewer or stored as temporary crash dumps in hidden system folders. To find these, you must look into the OS-level logs or enable specific debugging tools within the Office environment. Note that menu labels and folder paths may differ slightly based on your version of Windows or the specific Office build you are using.
What You'll Need
- A computer running Microsoft Windows (as macOS handles logs differently via the Console app).
- Administrator privileges to access the Event Viewer and hidden AppData folders.
- The specific date and time the error occurred to filter through the logs.
Step-by-Step
Method 1: Using Windows Event Viewer for Application Crashes
When Excel freezes or closes unexpectedly, Windows records the event. This is the most reliable way to find the "location" of a crash log.
- Press the Windows Key + R on your keyboard to open the Run dialog box.
- Type
eventvwr.mscinto the box and press Enter. This opens the Windows Event Viewer. - In the left-hand navigation pane, click the arrow next to Windows Logs to expand the section.
- Select Application from the dropdown list. This will load a list of all events reported by applications on your system.
- Look for entries in the center pane where the Level is listed as "Error" and the Source is listed as "Application Error" or "Excel".
- Click on the specific error entry. In the General tab below, you will find the "Faulting application name" (excel.exe) and the "Faulting module name," which tells you which DLL or system file caused the crash.
Method 2: Locating AutoRecover and Temp Files
If your "error" was a loss of data due to a crash, the log isn't a text file but a recovered version of your workbook.
- Open Excel and go to the File menu.
- Select Options at the bottom of the left sidebar.
- Click on the Save tab in the Excel Options window.
- Look for the section labeled AutoRecover file location. Copy the file path listed in the text box (usually a path leading to
AppData\Roaming\Microsoft\Excel\). - Open File Explorer, paste that path into the address bar, and press Enter.
- Browse the folders to find the most recent .xlsb or .tmp files associated with your crashed session.
Method 3: Checking the Office Upload Center / File Cache
For errors related to syncing, saving to OneDrive, or "Upload Failed" messages, the logs are stored in the Office Document Cache.
- Close all Office applications.
- Open File Explorer and navigate to
%localappdata%\Microsoft\Office\16.0\OfficeFileCache(the version number 16.0 may vary depending on your Office installation). - While these files are not human-readable text logs, the presence of numerous .cab or .dat files here indicates where Excel is attempting to cache data before uploading. If this folder is corrupted, clearing it often resolves saving errors.
Method 4: Enabling Verbose Logging via Registry (Advanced)
If you are a developer or power user trying to track a specific API or VBA error, you can force Windows to create more detailed crash dumps.
- Press Windows Key + R, type
regedit, and press Enter. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting. - Right-click the Windows Error Reporting folder, select New > Key, and name it
LocalDumps. - Inside the LocalDumps key, right-click the right pane and select New > DWORD (32-bit) Value. Name it
DumpFolder. - Right-click
DumpFolder, select Modify, and enter the path where you want the logs saved (e.g.,C:\ExcelLogs). You must create this folder manually first. - Restart Excel. The next time it crashes, a full .dmp file will be generated in that folder.
Common Mistakes
- Searching for a "log.txt" file: Many users search their hard drive for a file named "excel_log.txt." Excel does not create a simple text log for general usage; you must use the Event Viewer or Registry dumps.
- Ignoring the Faulting Module: In Event Viewer, users often see that "excel.exe" crashed but ignore the "Faulting module." The module (e.g., a third-party add-in DLL) is actually the cause of the error, not Excel itself.
- Deleting AppData folders: Some users try to "clear logs" by deleting everything in the AppData folder. This can delete your custom templates, AutoRecover files, and personalized settings.
- Running without Admin Rights: Attempting to open the Event Viewer or edit the Registry without administrative permissions will result in "Access Denied" errors.
Tips
- Use Safe Mode: If you are hunting for an error log because Excel won't start, hold the Ctrl key while clicking the Excel icon. This launches Excel in Safe Mode, disabling all add-ins. If the error disappears, the "log" you need is actually a list of your installed add-ins.
- Check Windows Updates: Many Excel application errors are caused by outdated .NET Frameworks or Windows system files. Always run Windows Update before diving into deep log analysis.
- Filter Event Viewer: To avoid scrolling through thousands of entries, click Filter Current Log... in the right-hand pane of Event Viewer and check only the Error and Critical boxes.
- Backup Registry: Before adding a LocalDumps key, right-click the parent folder and select Export to create a backup.
Troubleshooting
If you followed the steps but cannot find any logs, consider these possibilities:
- The error wasn't a crash: If Excel is still open but showing a formula error (like #VALUE! or #REF!), there is no system log. These are logical errors within the spreadsheet. Use the Formula Auditing tools (Trace Precedents/Dependents) on the Formulas tab to find the source.
- Event Viewer is empty: If the Application log is empty, check the System log in Event Viewer. Some crashes are caused by driver failures or memory (RAM) issues, which are logged as system events rather than application events.
- Dumps aren't appearing: If you set up the LocalDumps registry key but no files appear, ensure the folder you created (e.g., C:\ExcelLogs) has "Full Control" permissions for all users. Right-click the folder > Properties > Security > Edit > Give "Everyone" Full Control.
- Excel closes without an error message: This is often a "silent crash." These are still recorded in the Event Viewer under Application logs, but they may be listed as "Information" or "Warning" if the application handled the shutdown gracefully.
Frequently Asked Questions
Where is the Excel VBA error log?
VBA does not have a persistent log file. Errors are displayed in a pop-up dialog. To log these, you must write a custom error-handling routine in your code using On Error GoTo that writes the error description to a text file using the Open "log.txt" For Append As #1 command.
Can I find a log of who changed a cell in Excel?
This is not a system error log, but a versioning log. If the file is saved on OneDrive or SharePoint, go to File > Info > Version History to see a log of changes and who made them.
Why does Event Viewer say "Exception code 0xc0000005"?
This is a common Access Violation error. It means Excel tried to read or write to a memory location it didn't have permission to access. This is usually caused by a corrupt add-in or a conflict with antivirus software.
How do I clear the Excel cache to fix saving errors?
Navigate to the OfficeFileCache folder in %localappdata%\Microsoft\Office\16.0\ and delete the contents of that folder while Excel is closed. This forces Excel to re-sync files from the cloud.
Does Excel log formula errors?
No. Formula errors are calculated in real-time and are not written to any log file. You must use the Error Checking tool under the Formulas tab to diagnose them.