30 Advanced Excel Tips for 2026

Excel Champs / Advanced Excel / How to Clear Cache in Excel (Quick Steps)
By Puneet Gogia (Microsoft MVP)

How to Clear Cache in Excel (Quick Steps)

Quick answer

To clear cache in Excel, go to File → Options → Save, scroll to Cache Settings, and click Delete cached files. Takes under 60 seconds on Excel 2019, 2021, 2024, and Microsoft 365.

  • Fastest method: the built-in Cache Settings button inside Excel Options.
  • Deeper cleanup: press Win + R, type %temp%, delete Excel temp files.
  • How often: once a month is plenty — weekly if you work with large files or heavy PivotTables every day.

Tested on: Excel 2019, Excel 2021, Excel 2024, and Microsoft 365 on Windows 10 and 11. Excel for Mac steps tested on Microsoft 365 for Mac. Last reviewed: April 2026 by Puneet Gogia (Microsoft MVP).

You open a large Excel file, and it takes forever to load. Formulas lag. Scrolling feels sluggish. In some cases, the problem is Excel’s cache: temporary files that Excel stores on your system to speed up processing.

Over time, these cached files pile up and do the exact opposite: they slow Excel down and eat up disk space. The fix? Clear Excel cache and give your workbook a fresh start.

Today I’d like to share with you 3 different ways to clear cache in Excel, using Excel Options, the Office Upload Center, and the Temp folder, plus the steps for Mac and two VBA macros. Each method takes less than a minute.

Which Method Should You Use to Clear Excel Cache?

Before you jump in, here’s a quick comparison so you can pick the right method for your situation.

Method
Best For
Excel Options (Cache Settings)
Quick one-click cache delete — works on Excel 2016, 2019, 2021, 2024, and Microsoft 365
Temp Folder (%temp%)
Deep cleanup of all Excel temp files on Windows 10 / 11
Office Upload Center
Clearing upload cache in Office 2013–2016 (removed in Microsoft 365, where Files Needing Attention lists files that didn’t upload)

Now let me walk you through each method step by step.

Excel Options dialog showing Cache Settings section with Delete cached files button highlighted

What Is Excel Cache and Why Clear It?

Excel cache is temporary storage the application uses to speed up access to frequently used data — copies of files you open from OneDrive or SharePoint, upload queues, preview thumbnails, and temp files. Excel creates these files automatically in the background, so most people never notice they exist.

The problem starts when the cache grows. Over weeks and months, cached files pile up on disk and slow Excel down instead of speeding it up. You’ll notice it first as sluggish scrolling in large workbooks, laggy formulas, and long save times.

Clearing the cache frees up that storage and gives Excel a clean slate. It’s especially useful before opening a heavy spreadsheet, after a long editing session with multiple PivotTables, or whenever Excel starts feeling slower than it should.

Excel also lets you control how long it keeps the cache, with two options in the Cache Settings group (File → Options → Save) that Method 1 below uses.

cache-file-options
  1. Days to Keep Files: You can change this setting to decide how long you want Office to keep your files (cache data) in the cache. It is 14 days by default, but you can specify a different number of days.
  2. Delete Files from Cache when they are Closed: This deletes a file from the cache once you close it.

Method 1 — Clear Excel Cache with Excel Options

This is the fastest and safest way to clear Excel cache. It uses Excel’s built-in Cache Settings option found under File → Options → Save. The whole process takes less than a minute and works on Excel 2016, 2019, 2021, 2024, and Microsoft 365. Follow the 5 steps below.

  1. Open Excel Options. Launch Excel and click the File tab in the top-left corner of the ribbon. The File menu opens in a full-screen view. Scroll to the bottom of the left sidebar and click Options. The Excel Options dialog box opens in the center of your screen.

    File tab menu in Excel with the Options button highlighted at the bottom of the left sidebar
  2. Navigate to the Save settings. Inside the Excel Options dialog, click Save in the left sidebar. The right panel now shows all save-related settings — AutoRecover, default file location, and so on. Scroll all the way down to the bottom of this panel until you see a section labeled Cache Settings.

    Save tab selected in the Excel Options dialog showing the left-side navigation panel
  3. Click Delete cached files. In the Cache Settings section, you’ll see the current cache location path on your disk, a Days to keep files field, and a button labeled Delete cached files. Click that button. Excel prepares to remove every cached file it currently has stored.

    Cache Settings section in Excel Options with the Delete cached files button highlighted
  4. Confirm the deletion. A dialog box pops up asking you to confirm: “Are you sure you want to delete all previously cached Office documents?”. Click Delete Cached Files to confirm. The dialog closes, and Excel silently removes all cached data from your system.

    Confirmation dialog box in Excel asking to confirm deletion of all previously cached Office documents
  5. Close Excel Options. Click OK at the bottom of the Excel Options dialog. At this point every cached Excel file has been deleted, and you can get back to work. No restart needed.

While you’re in the Cache Settings section, there are two extra options worth knowing about:

  • Days to keep files: This controls how long Office holds cached data before automatically removing it. The default is 14 days. You can lower this to 7 or even 1 if you work with sensitive files and want them purged quickly, or raise it if you regularly reopen old cloud files and want faster load times.
  • Delete files from the Office Document Cache when they are closed: Checking this box tells Excel to wipe the cached copy of a file the moment you close it. Good for privacy; slightly slower reopens from OneDrive or SharePoint.

Before you delete: If you work with files on OneDrive or SharePoint, make sure none of them still has changes waiting to upload. Office keeps a cached file past its days limit only while it has changes that haven’t uploaded yet, and deleting the cache removes those copies. In Microsoft 365, check File → Open → Files Needing Attention first (it only shows up when a file didn’t save to the cloud).

Keep in mind that the Office Document Cache is shared by Excel, Word, and PowerPoint, so this button clears the cached files for all three. Deleting the cache removes the content of the cached files, but the list of files you opened stays on your computer.

Method 2 — Office Upload Center & Files Needing Attention

If you use Office 2016 or an older version, you can also use the Office Upload Center that comes with the Office package. Once you open the Upload Center, click on Settings ⇢ Delete cached files ⇢ Delete cached information.

office-upload-center-clear-cache-1

In Microsoft 365, the Office Upload Center has been removed and replaced by Files Needing Attention. This option is found in File Tab ⇢ Open ⇢ Files Needing Attention. It only shows up when a file didn’t save to the cloud, and it lists those files so you can fix them; it doesn’t have a button to clear the cache, so use Method 1 for that.

files-need-attention-clear-cache-excel

Method 3 — Clear Cache from the Windows Temp Folder

Every time you work in Excel, it creates temporary files on your system. These Excel temp files build up over time and take up disk space. You can delete them manually from the Windows Temp folder. Let me walk you through the steps.

  1. First, make sure Excel is completely closed. All Excel files should be closed, and the application should be exited if it’s open.
  2. Now press Win + R on your keyboard. This opens the Run dialog box.
  3. In the Run dialog box, type %temp% and press Enter. This opens the Temp folder where Windows stores temporary files.
  4. In the Temp folder, look for any files that begin with “Excel” or have the .tmp extension. These are usually Excel’s temp files (many of them have random names).
  5. Select all the Excel temp files. Or click one file and press Ctrl + A to select everything in the Temp folder; it’s safe to delete it all, and if Windows says a file is in use, click Skip.
  6. Right-click the selected files and choose Delete, or simply press the Delete key on your keyboard.
  7. After that, close the Temp folder and restart Excel.

Have a look below.

Windows Temp folder showing Excel temporary files selected for deletion

As you can see, all the Excel cache files are now removed from your system.

Where Does Excel Store Temp Files on Windows 10 and 11?

On both Windows 10 and Windows 11, the %temp% shortcut points to the same location:

C:\Users\[YourName]\AppData\Local\Temp

But that’s not the only place. Excel also stores additional cache files in a separate folder:

C:\Users\[YourName]\AppData\Local\Microsoft\Office\16.0\OfficeFileCache

I recommend checking both locations for a complete cleanup. The second folder is where Excel keeps cached copies of files you opened from OneDrive or SharePoint.

Tip: You can paste either path directly into the Windows File Explorer address bar and press Enter to jump there instantly. Replace [YourName] with your actual Windows username.
Note: If Windows says a file is “in use” and cannot be deleted, it means Excel is still running in the background. Open Task Manager (press Ctrl + Shift + Esc), end any Microsoft Excel processes, and try deleting again.

Clear Temp Files Automatically with Storage Sense

Windows doesn’t empty the Temp folder when you restart your computer. If you don’t want to do it by hand every month, let Windows do it for you with Storage Sense. Go to Settings → System → Storage and turn on Storage Sense. Then open its settings and make sure the option to clean up temporary files is on. From now on, Windows deletes the temp files that apps aren’t using on its own.

On the same Storage page, you can also click Temporary files to see how much space they take and remove them in one go.

Clear Excel Cache on Mac

Excel for Mac stores its cache files in a different location than Windows, and there’s no in-app Cache Settings button like the one in Excel for Windows. The cleanest way to clear cache on macOS is through Finder. Here’s how to do it.

  1. Quit Excel completely. Press Cmd + Q while Excel is active, or right-click the Excel icon in the Dock and choose Quit. Close any other Office apps running in the background too.
  2. Open Finder. From the menu bar at the top of the screen, click Go → Go to Folder (or press Cmd + Shift + G).
  3. Paste the following path into the box and press Enter:
    ~/Library/Containers/com.microsoft.Excel/Data/Library/Caches/
  4. Select all files inside this folder — press Cmd + A — then move them to Trash with Cmd + Delete.
  5. Repeat steps 2–4 for this second path, which holds the cache for web add-ins and cloud integration:
    ~/Library/Containers/com.microsoft.Excel/Data/Library/Application Support/Microsoft/Office/16.0/Wef/
  6. Empty the Trash from the Finder menu, then restart Excel.

Tip: Mac hides system folders by default. If you want to browse these folders manually instead of pasting paths, press Cmd + Shift + Period in Finder to show hidden files.

Note: If you only work with local Excel files — nothing from OneDrive, SharePoint, or web add-ins — the first path alone is enough. The second path is specifically for cached cloud data and installed add-ins.

Clear the Add-in Cache in Excel

If an Office add-in (the ones you get from the Office Add-ins store) shows an old version, won’t load, or acts strangely, the problem is usually its cache. The Delete cached files button in Method 1 doesn’t clear this one. On Windows, you can let Excel clear it the next time it starts:

  1. First of all, go to File → Options → Trust Center and click Trust Center Settings.
  2. After that, click Trusted Add-in Catalogs and tick Next time Office starts, clear all previously-started web add-ins cache.
  3. In the end, click OK and restart Excel.

This option is in Microsoft 365 (version 2108 or later). You can also do it by hand: close Excel, press Win + R, paste the path below and press Enter, and then delete everything in that folder.

%LOCALAPPDATA%\Microsoft\Office\16.0\Wef\

Clear the whole folder, not just a few files in it, or your add-ins can stop loading. On a Mac, the Wef folder from step 5 of the Mac steps above holds the same add-in cache.

Clear the Power Query Cache

If you use Power Query (Get & Transform), Excel keeps a separate cache for query previews, and it can grow to a few GB on your disk. To clear it:

  1. First of all, go to Data → Get Data → Query Options.
  2. After that, click Data Load under Global.
  3. In the end, under Data Cache Management Options, click Clear Cache and click OK. You can also lower the maximum cache size here.

This only clears the preview data. Your queries and the data already loaded into your sheets stay as they are.

Clear Excel Cache with VBA

You can also use a VBA macro to clear certain types of Excel cache. But there’s one thing you need to take care of — these macros don’t delete the file-level cache that Office stores on disk. For that, use Method 1 (Excel Options) or Method 3 (Temp Folder) above.

What VBA can do is purge the PivotTable cache and the Clipboard cache, and force Excel to recalculate every formula from scratch. Let me walk you through both macros.

Macro 1 — Force a Full Formula Recalculation

This macro tells Excel to throw away every cached formula result and recalculate the entire workbook. It is useful when formulas return stale values.

Important: This does not clear file cache or temp files. It only forces Excel to recalculate all formulas in every open workbook.

You can use the following macro:

Sub ForceFullRecalculation()
    'Forces Excel to recalculate every formula
    Application.CalculateFull
End Sub

Here’s what this code does — Application.CalculateFull recalculates all formulas in all open workbooks. Excel ignores any previously cached results and computes each formula fresh.

VBA Editor showing the ForceFullRecalculation macro in a standard module

Macro 2 — Purge PivotTable and Clipboard Cache

If your workbook has heavy PivotTables, each one stores its own data cache. This macro loops through every PivotCache in the workbook and refreshes it. After that, it cancels Excel’s Cut or Copy mode.

You can use the following macro:

Sub PurgePivotAndClipboardCache()
    Dim pc As PivotCache

    'Refresh and clear every PivotTable cache
    For Each pc In ThisWorkbook.PivotCaches
        pc.MissingItemsLimit = xlMissingItemsNone
        pc.Refresh
    Next pc

    'Clear the Office Clipboard
    Application.CutCopyMode = False

    MsgBox "PivotTable cache refreshed and Clipboard cleared.", vbInformation
End Sub

Let me explain what each part does:

ThisWorkbook.PivotCaches — this collection holds every PivotCache in the workbook that holds the macro (not the active workbook). The macro loops through each one. To clean another workbook, put the macro in that workbook, or change ThisWorkbook to ActiveWorkbook.

pc.MissingItemsLimit = xlMissingItemsNone — this tells Excel to stop retaining old items that no longer exist in the source data. It shrinks the cache size immediately.

pc.Refresh — refreshes the cache with current source data and drops the stale copy.

Application.CutCopyMode = False — cancels Cut or Copy mode, so Excel lets go of the cells you copied. You’ll notice the marching ants around copied cells disappear the moment this line runs. It doesn’t empty the Office Clipboard pane (Home → Clipboard); use its Clear All button for that.

Note: Run Macro 2 before saving your workbook. It reduces file size by removing stale PivotTable data that Excel quietly stores behind the scenes.
VBA Editor showing the PurgePivotAndClipboardCache macro with PivotCaches loop

Clear Old Items from the PivotTable Cache without VBA

You can do what Macro 2 does for a single PivotTable without any code. This removes old items (like a product name you deleted from the source data) that still show up in the filter list.

  1. First of all, right-click any cell in the PivotTable and click PivotTable Options.
  2. After that, go to the Data tab and set Number of items to retain per field to None. Click OK.
  3. In the end, refresh the PivotTable (PivotTable Analyze → Refresh, or Alt + F5).

On the same Data tab, you can also untick Save source data with file to make the file smaller. The catch is that you then need to refresh the PivotTable after you open the file, before you can change it.

Tips to Keep Cache Low in Excel

It’s really easy to clear the cache, and you can do it whenever you need to. But there are a few things you can keep in mind so that the cache is limited and you don’t have to worry about it much.

  • Complex formulas, especially volatile ones like NOW, TODAY, and RAND, can increase calculation load. Having multiple worksheets within a single workbook increases memory consumption.
  • Using conditional formatting rules on large ranges can also increase memory usage.
  • Workbooks with links to external data sources or other workbooks increase memory usage due to the need to maintain these links.
  • Embedded objects, images, and charts can increase the workbook size and cache.
  • The legacy Shared Workbook feature can increase file size and memory usage, as Excel needs to keep a history of changes.
  • Multiple or complex pivot tables, especially those with large source data, can consume a lot of memory.

Quick Recap

Here’s a quick summary of everything you learned in this guide.

Method 1 — Excel Options: Go to File Tab ➜ Options ➜ Save ➜ Cache Settings ➜ Delete Cached Files. This is the fastest way and works on Excel 2016, 2019, 2021, 2024, and Microsoft 365.

Method 2 — Upload Center / Files Needing Attention: Use the Office Upload Center in Office 2013–2016 (no longer available in M365). In Microsoft 365, Files Needing Attention lists the files that didn’t upload.

Method 3 — Temp Folder: Press Win + R, type %temp%, and delete all Excel temp files. Also check AppData\Local\Microsoft\Office\16.0\OfficeFileCache for cached cloud files.

Method 4 — VBA: Use a macro to force a full formula recalculation or purge PivotTable and Clipboard caches. This does not clear file-level cache.

Other caches: Clear the add-in cache from the Trust Center (Trusted Add-in Catalogs) and the Power Query cache from Data ➜ Get Data ➜ Query Options ➜ Data Load.

In the end, clearing Excel cache is one of the simplest things you can do to speed up a slow workbook. I recommend doing it once a month if you work with large files regularly.

Which method worked best for you? I’d love to hear from you, so let me know in the comments below.

One of the reasons we clear cache in Excel is to make it work fast. But sometimes, a few problems cause a workbook to crash while opening. In that case, you can open Excel in safe mode to troubleshoot the problem, or you can also clear formatting to make your workbook faster.

Frequently Asked Questions

Is it safe to clear Excel cache?

Yes, it is completely safe. Excel cache only stores temporary copies of files to speed up processing. Clearing it does not delete your actual workbooks, formulas, or data. Excel simply rebuilds the cache the next time you open a file.

Will I lose my work if I clear Excel cache?

No. Your saved Excel files remain untouched. Cache files are separate from your workbooks and live in temporary system folders. As long as you have saved your work before clearing the cache, nothing will be lost.

Tip: Close all Excel files and save them before clearing the cache to avoid losing any unsaved changes.

How often should I clear Excel cache?

Once a month is enough for most users. If you regularly work with large files, multiple PivotTables, or files stored on OneDrive and SharePoint, clearing the cache every two to three weeks can help keep Excel running smoothly.

Will clearing cache fix a slow Excel workbook?

In many cases, yes. If Excel has become slow over time, a bloated cache is a common cause. Clearing it frees up disk space, which often restores normal speed.

However, if your workbook is slow because of volatile formulas, heavy conditional formatting, or large PivotTable sources, you will also need to optimize those before seeing a major improvement.

Where is Excel cache stored on Windows 10 and 11?

Excel stores cache files in two main locations on both Windows 10 and Windows 11:

C:\Users\[YourName]\AppData\Local\Temp

C:\Users\[YourName]\AppData\Local\Microsoft\Office\16.0\OfficeFileCache

The second folder holds cached copies of files opened from OneDrive or SharePoint. Replace [YourName] with your Windows username.

Does Excel Online or Excel for the Web have a cache?

Yes. Excel for the Web uses your browser’s cache to store temporary data. To clear it, clear the cache and cookies for office.com in Chrome or Edge, or open Excel in a private or incognito window for a cache-free session.

Why is the “Delete cached files” button grayed out?

This usually happens when there are no cached files to delete, or when Excel is still syncing files with OneDrive or SharePoint. Close any open workbooks, wait for sync to finish, then reopen Excel Options. The button should be active.

If it still stays grayed out, use Method 3 (Temp Folder) to clear cache manually.

Does clearing cache affect my PivotTables or formulas?

Clearing file-level cache (Methods 1, 2, and 3) does not affect PivotTables or formulas. Your data stays intact.

If you run the VBA macro from Method 4, it refreshes the PivotTable cache and forces Excel to recalculate all formulas. This is useful when formulas show stale values, but it is a deliberate action — not a side effect of clearing cache.

Does clearing Excel cache also clear it for Word and PowerPoint?

Yes. Excel, Word, and PowerPoint share the same Office Document Cache, so the Delete cached files button in Method 1 clears the cached files for all of them. The Temp folder in Method 3 is shared by all your apps too.

Does clearing the cache remove my Recent files list?

No. Deleting the cache removes the cached copies of the files, but the list of files you opened stays. To clean that list, go to File → Open → Recent, right-click a file, and choose the option to clear the unpinned items (or remove just that file from the list).

Does restarting my computer clear Excel’s temp files?

No. Windows doesn’t empty the Temp folder on a restart, so the files stay until you delete them. To make it automatic, turn on Storage Sense in Settings → System → Storage, which deletes temp files that apps aren’t using.