To clean cache in Excel, you cannot simply press a button labeled "clear cache" because Excel does not have a single cache-clearing option. Instead, you clear the various temporary stores Excel uses: the Windows temp folder, Office document cache, and any add-in or connection caches. The quickest working method is to close Excel, delete the contents of your Windows Temp folder, and then clear the Office Document Cache via File > Options > Save. This resolves most issues caused by stale cached data, such as files opening slowly, formulas not updating, or add-ins misbehaving.
What You'll Need
- A Windows PC with Excel installed (steps differ slightly on Mac; see notes below).
- Administrator rights may be needed to delete some temp files.
- Excel closed before you start.
- Optional: a backup of any important workbooks, though these steps do not modify your files.
Step-by-Step
- Save and close all Excel workbooks and Excel itself. Clearing cache while Excel is running can cause files to be recreated or locked. Make sure no Excel process is running in the background: press Ctrl+Shift+Esc to open Task Manager, look for any Excel entries under Processes, and end them if present.
- Open the Windows Temp folder. Press Windows key + R, type
%temp%and press Enter. This opens the folder where Windows and many apps store temporary files, including Excel's scratch files. - Delete the contents of the Temp folder. Select all items (Ctrl+A) and press Delete. If a file is in use, choose Skip. You do not need to delete the Temp folder itself, only its contents. This is safe: temp files are meant to be disposable.
- Clear the Office Document Cache. Open Excel, go to File > Options > Save. Look for the "Office Document Cache Settings" or "Cache Settings" button (wording varies by version). Click it, then choose "Delete cached files" or "Check for issues" and follow the prompts to remove cached copies. This cache stores temporary copies of files from network or cloud locations.
- Clear add-in caches (if you use add-ins). Go to File > Options > Add-ins. In the Manage dropdown at the bottom, select COM Add-ins and click Go. Uncheck any add-ins you do not need, click OK, then restart Excel. This forces Excel to reload add-ins fresh. For Office add-ins from the Store, go to Insert > My Add-ins, right-click an add-in, and choose Remove, then re-add it if needed.
- Clear connection and data caches (for Power Query or external data). If you use Power Query, go to Data > Get Data > Query Options. Under Global, select Data Load, and clear the cache by clicking "Clear Cache" if available. For external data connections, go to Data > Connections, select a connection, and click Properties > Definition, then uncheck "Save password" and re-enter credentials if connections are failing. This refreshes stored connection details.
- Restart your computer. A restart ensures all temporary files are released and any remaining cache is flushed. After restarting, open Excel and test the issue.
- If problems persist, repair Office. Go to Settings > Apps > Installed apps (or Apps & features), find Microsoft 365 or Office, click Modify, and choose Quick Repair. If that does not help, run Online Repair. This reinstalls Office components and clears corrupted cache files, but it does not delete your documents.
Common Mistakes
- Deleting the Temp folder itself. Only delete its contents. Windows recreates the folder automatically, but deleting it can cause permission issues.
- Clearing cache while Excel is open. This can cause file locks or Excel recreating the cache immediately. Always close Excel first.
- Confusing cache with your actual files. Clearing cache does not delete your workbooks, but it may remove recent file lists and unsaved recovery data. Save your work first.
- Expecting one button to fix everything. Excel uses multiple caches; you often need to clear more than one, especially if add-ins or external data are involved.
- Ignoring add-ins. A misbehaving add-in can keep recreating cache files. Disable add-ins one by one to identify the culprit.
Tips
- Clear cache after major Excel updates or when you notice slow performance, formula errors, or files not syncing with OneDrive.
- Use Disk Cleanup (type "Disk Cleanup" in Start) and select Temporary files for a more thorough clean.
- If you use Excel on a Mac, the cache locations differ: go to Finder > Go > Go to Folder, enter
~/Library/Containers/com.microsoft.Excel/Data/Library/Caches, and delete the contents. Also clear the Office Document Cache via Excel > Preferences > Save. - Keep a note of any custom add-ins before disabling them so you can re-enable them later.
- Regularly clearing cache can prevent file corruption and improve startup speed.
Troubleshooting
- Excel still slow after clearing cache: Check for large workbooks with volatile formulas, disable hardware graphics acceleration (File > Options > Advanced > Display), and ensure your Office installation is up to date.
- Cannot delete some temp files: Restart your computer and try again, or use Disk Cleanup as an administrator.
- Add-in errors persist: Disable all add-ins, restart Excel, then enable them one at a time to find the faulty one. Contact the add-in vendor if needed.
- Office Document Cache button missing: This can happen in some Excel versions or if the file is not saved to a cloud location. The option may appear only when a workbook is open from OneDrive or SharePoint.
- Repair does not fix the issue: Consider uninstalling and reinstalling Office using the official Microsoft Support and Recovery Assistant tool, or contact Microsoft support.
Frequently Asked Questions
Does clearing cache delete my Excel files?
No. Clearing cache only removes temporary files and cached copies. Your saved workbooks remain untouched. However, unsaved changes in open files could be lost, so save before you start.
How often should I clear Excel cache?
There is no fixed schedule. Clear it when you notice performance issues, after Office updates, or if files behave unexpectedly. Monthly is reasonable for heavy users.
Can I clear cache on Excel for Mac?
Yes, but the steps differ. Use Finder to delete the cache folder contents and clear the Office Document Cache via Excel > Preferences > Save. The exact menu labels may vary by version.
Will clearing cache remove my recent files list?
It may. The recent files list is stored separately, but some cache clearing methods can reset it. This does not affect the files themselves.
Why does Excel keep recreating cache files?
Excel creates cache files during normal operation. If they grow unusually large or cause issues, an add-in or a specific workbook may be responsible. Disable add-ins and test with a blank workbook to isolate the cause.
Is it safe to delete everything in the Temp folder?
Yes, the Temp folder is designed for disposable files. Some files may be in use and cannot be deleted; skip those. Do not delete the Temp folder itself.