Cache Clearing Excel: How to Fix Lag and Performance Issues
To clear the cache in Excel, you must address several different types of stored data depending on the problem you are facing, as there is no single "Clear Cache" button. Most users can resolve performance issues by clearing the Office Document Cache via the Microsoft Office Upload Center or by deleting temporary files in the Windows AppData folder.
Understanding the Different Types of Excel Cache
When people refer to "Excel cache," they are usually talking about one of three distinct mechanisms. Understanding which one is causing your issue is the first step toward a fix.
- Office Document Cache: This is a local copy of files stored on SharePoint or OneDrive. It allows you to edit files offline and syncs changes later. If this cache becomes corrupted, you may see "Upload Failed" errors or version conflicts.
- Calculation Cache: Excel stores the results of formulas in memory so it doesn't have to recalculate every single cell every time you make a change. While this speeds up the app, a bloated calculation chain can lead to lag.
- Temporary Application Files: Like any Windows software, Excel creates temporary files (.tmp) during a session. If Excel crashes, these files may remain on the disk, potentially slowing down future launches.
How to Clear the Office Document Cache
If you are experiencing synchronization errors with cloud-based files, the Office Document Cache is the likely culprit. This cache manages the transition between your local machine and the server.
- Close all open Office applications (Excel, Word, PowerPoint).
- Open the Office Upload Center (search for it in the Windows Start menu).
- Click on Settings in the top right corner.
- Check the box that says Delete files from the Office Document Cache when they are closed.
- Click Delete cached files to purge the current storage.
- Click OK and restart Excel.
Note: In newer versions of Microsoft 365, the Upload Center has been integrated directly into the Office apps. If you cannot find a standalone Upload Center, you can clear the cache by navigating to %localappdata%\Microsoft\Office\16.0\OfficeFileCache in File Explorer and deleting the contents of that folder while Excel is closed.
Removing Excel Temporary Files
Temporary files are used to store data while a workbook is open. If these files accumulate or become corrupted, Excel may feel sluggish or fail to open specific files.
- Close Excel completely.
- Press the Windows Key + R to open the Run dialog box.
- Type
%temp%and press Enter. This opens the local temporary folder. - Search for files starting with
excelor files with the.tmpextension created around the time of your performance issues. - Select these files and press Delete.
- Empty your Recycle Bin to fully reclaim the space.
Managing Calculation Lag and Memory
Sometimes the "cache" problem isn't about files on a disk, but how Excel handles data in your RAM. Large workbooks with thousands of volatile functions (like OFFSET, INDIRECT, or TODAY) force Excel to constantly refresh its internal calculation cache.
To resolve this without deleting files, try these steps:
- Switch to Manual Calculation: Go to the Formulas tab, click Calculation Options, and select Manual. This stops Excel from updating the cache after every single keystroke. You can then press F9 to calculate only when you are ready.
- Clear Excessive Formatting: "Ghost" cells—cells that have no data but contain formatting—can bloat the file size and slow down the cache. Press
Ctrl + Endto see where Excel thinks your data ends. If it is thousands of rows below your actual data, delete the empty rows and columns and save the file.
Common Problems Solved by Clearing Cache
Clearing the cache is not a daily requirement, but it is a primary troubleshooting step for specific recurring issues. You should consider these steps if you encounter the following:
- The "Frozen" Progress Bar: When saving a file to OneDrive, the progress bar stops moving. This usually indicates a conflict in the Office Document Cache.
- Incorrect Data Display: When a formula result doesn't update despite the source data changing, it may be a calculation cache glitch.
- Slow Startup: If Excel takes an unusually long time to load the splash screen, corrupted temporary files in the AppData folder are often the cause.
- File Locking: When Excel claims a file is "locked for editing" by another user, but you know no one else has it open, clearing the local cache often releases the phantom lock.
Alternatives to Cache Clearing
If clearing the cache does not improve performance, the issue may be structural rather than temporary. Instead of focusing on the cache, consider these alternatives:
- Disable Add-ins: Many third-party add-ins run in the background and consume memory. Go to File > Options > Add-ins, select COM Add-ins from the dropdown, and click Go. Uncheck unnecessary items.
- Binary Workbook Format: Save your file as an
.xlsb(Excel Binary Workbook) instead of.xlsx. This format is more efficient for the computer to read and write, reducing the load on the system cache. - Repair Office: If the application remains unstable, use the Windows Control Panel to run an "Online Repair" of the Microsoft Office suite. This resets the application's core files without deleting your personal data.
Frequently Asked Questions
Will clearing the Excel cache delete my data?
No. Clearing the Office Document Cache or temporary files does not delete your actual workbooks. It only removes the local "snapshots" and temporary working files used for syncing and performance. As long as your files are saved to your hard drive or the cloud, your data remains safe.
Why is my Excel still slow after clearing the cache?
If performance doesn't improve, the issue is likely caused by the workbook's complexity rather than the cache. Check for excessive conditional formatting, thousands of unused cells with formatting, or "volatile" formulas that trigger constant recalculations.
How often should I clear the Excel cache?
There is no need to do this on a schedule. You should only clear the cache when you experience specific symptoms, such as synchronization errors, frequent crashes, or significant lag that doesn't disappear after a restart.
Does clearing the browser cache help Excel Online?
Yes. If you are using Excel via a web browser (Office.com) rather than the desktop app, the "cache" is handled by your browser (Chrome, Edge, Firefox). In that case, clearing your browser's cached images and files can resolve loading and display issues.
What is the difference between a temporary file and a cache file?
A temporary file is a short-term scratchpad used while a task is being performed (like an autosave recovery file). A cache file is a stored version of a remote resource (like a SharePoint file) kept locally to make future access faster.