Excel "Not Enough Memory" Error: The Real Causes and Permanent Fixes

Excel's 'not enough memory' error almost never means your computer has run out of RAM. It means Excel — specifically the 32-bit version installed on most PCs — has hit its internal 2 GB ceiling, or your workbook has accumulated invisible formatting bloat that inflates its memory footprint far beyond what its visible content suggests. This guide covers both causes and fixes them permanently.

💬 From experienceThe 32-bit ceiling (Fix 5) is the root cause on most workbooks over 300MB. Switching to 64-bit Excel takes five minutes — File → Account → About Excel tells you which version you're running. If it says 32-bit, Fix 5 is your permanent solution. Everything else is a workaround.

Stripped of the tech speak, the error means one of three things — and only one of them is about actual memory:

  • Excel’s internal 32-bit architecture has hit a hard 2 GB ceiling. This is the most common cause and the most misunderstood one. Excel is a 32-bit application on most installations — even on 64-bit Windows — and 32-bit applications can only address a maximum of 2 GB of RAM, regardless of how much RAM your computer has. You can have 32 GB of RAM and Excel 32-bit will still crash at 2 GB of spreadsheet data.
  • The spreadsheet has accumulated hidden complexity consuming far more memory than its visible content suggests. Excel files frequently accumulate phantom formatting, named ranges referencing deleted data, conditional formatting rules that have multiplied silently, or pivot cache data ballooned out of proportion. A spreadsheet with 500 rows of data and 500,000 rows of invisible formatting is enormous.
  • Excel’s undo history, clipboard, or temporary file cache has consumed its allocated memory pool. Every action in Excel is stored in the undo stack. Complex paste operations load large data into a clipboard buffer. These background processes can exhaust Excel’s memory allocation independently of the spreadsheet content.
Microsoft Excel error dialog showing There isn't enough memory to complete this action Try using less data or closing other applications on a white Excel spreadsheet background
The exact error dialog — and Microsoft’s suggestion to “try using less data or closing other applications” is only partially helpful. Closing other apps addresses case 3. But if the real cause is Excel’s 32-bit 2 GB ceiling (case 1) or phantom formatting bloat (case 2), no amount of closing Chrome tabs will permanently fix it. Work through the fixes in this guide in order — Fix 2 (removing hidden bloat) and Fix 5 (upgrading to 64-bit) are the two most impactful permanent solutions.
Watch: Fix Excel “Not Enough Memory” Error — Clipboard, Phantom Rows, 32-bit to 64-bit Guide
Dark-themed side-by-side comparison showing 32-bit Excel on the left with a red memory bar showing only 2 GB of 16 GB total RAM accessible and a breakdown of how Excel uses that 2 GB until it hits zero versus 64-bit Excel on the right with a full green memory bar showing all 16 GB accessible with no ceiling
The 32-bit Excel memory ceiling visualised: with 16 GB of RAM installed, only 2 GB is accessible to 32-bit Excel — shared between the Excel application itself, add-ins, workbook data, undo history, and the clipboard buffer. When these fill the 2 GB, the memory error fires regardless of how much RAM remains unused. The 64-bit version (right) removes this ceiling entirely. Check your version now: File → Account → About Excel — if it shows 32-bit, Fix 5 is your permanent solution.

Bonus Fix: Clear Excel’s Temporary Files via AppData

Before the main fixes, this quick Windows-level cleanup clears Excel’s accumulated temporary files — the same files shown in the screenshots below — which can independently cause the memory error when they grow stale or corrupt.

Windows 10 Start menu search showing %appdata% typed in the search bar with search results showing various appdata folder options confirming how to access the AppData Roaming directory
Step 1: Press Windows key + R (or use the Start search), type %appdata% and press Enter. This opens the AppData → Roaming directory where Excel’s profile files are stored. You can also paste this path directly into File Explorer’s address bar.
Windows File Explorer showing the AppData Roaming directory with the Microsoft folder highlighted among other application folders like Discord GIMP and Mozilla confirming the path to navigate to for Excel cleanup
Step 2: Inside the Roaming directory, locate and open the Microsoft folder. This contains profile data for all Microsoft Office applications including Excel.
Windows File Explorer showing the Microsoft folder contents with the Excel folder highlighted in blue among other folders like Access Addins Forms PowerPoint and Teams confirming the Excel profile folder location
Step 3: Inside the Microsoft folder, open the Excel folder. This contains Excel’s personalisation files including toolbar customisations, the XLSTART folder, and the Excel15.xlb toolbar file.
Windows File Explorer showing the Excel folder contents with XLSTART folder and Excel15 xlb file inside the AppData Roaming Microsoft Excel directory with the delete option accessible from the toolbar
Step 4: Select all contents inside the Excel folder and delete them. Excel will regenerate these files cleanly on next launch. Note: This removes toolbar customisations but preserves all workbooks, which are stored separately in your Documents folder.
Windows File Explorer showing the now-empty AppData Roaming Microsoft Excel folder confirming the cleanup step is complete with This folder is empty message and the breadcrumb showing the full path
Step 5: Navigate back using the breadcrumb to AppData → Local (not Roaming). This is the second AppData location containing Excel’s local temporary files.
Windows File Explorer showing the AppData Local directory contents with multiple application folders visible including Microsoft Mozilla NVIDIA and others confirming the navigation to find the Temp folder for Excel temp file cleanup
Step 6: Inside AppData → Local, find and open the Temp folder. This contains temporary files created by Windows and all applications including Excel’s temporary calculation and clipboard buffer files.
Windows File Explorer showing the Temp folder contents with hundreds of temporary files and folders including the ASPWebView folder which contains Excel's web view temporary cache files that cause memory errors
Step 7: Inside the Temp folder, locate the ASPWebView folder. This folder stores Excel’s web view and rendering cache — it can accumulate over time and interfere with Excel’s memory management, contributing to the error on some systems.
Windows File Explorer showing the ASPWebView folder completely empty after deleting its contents confirming the temporary file cleanup is complete with This folder is empty message
Step 8: Delete all contents inside the ASPWebView folder. The folder should now show “This folder is empty.” Close File Explorer, restart Excel, and test whether the memory error recurs. This AppData cleanup resolves the error on some installations independently of the main fixes below.

6 Step-by-Step Fixes

Follow these in order — stop when the problem is solved.

1Close All Other Applications and Clear Excel’s Clipboard

Before changing a single Excel setting, free up every byte of memory available by closing competing applications and clearing the internal clipboard buffer — which can consume hundreds of megabytes after copy-paste operations.

  1. Save your Excel workbook: press Ctrl + S.
  2. Close every other application — browser, email, Teams, Slack, other Office documents — everything.
  3. Inside Excel, go to the Home tab and click the small arrow at the bottom right of the Clipboard group to open the Clipboard pane.
  4. Click Clear All to empty the clipboard buffer.
  5. Press Esc to cancel any pending operations.
  6. Go to File → Options → Advanced → find “Cut, Copy, and Paste” section → turn off “Show Paste Options button when content is pasted.”
  7. Retry the action that triggered the error.
2Remove Hidden File Bloat (Phantom Rows, Excess Formatting, Bad Named Ranges)

This fix addresses the most common hidden cause of the memory error in files that “shouldn’t” be causing problems. Excel files accumulate invisible overhead that consumes memory many times over what the visible data requires.

⚠️ Back up first: Before making any changes, save a backup copy of the original file: File → Save As with a clearly labelled backup name. Some cleanup steps cannot be undone if applied incorrectly.

Check and remove phantom rows/columns:

  1. Press Ctrl + End in your spreadsheet. This jumps to the last cell Excel considers “used.” If this cell is far beyond your actual data — row 500,000 when your data ends at row 500 — Excel is formatting millions of empty cells.
  2. Select every row below your last real data row: click the row number below your last row, then press Ctrl + Shift + End.
  3. Right-click and choose Delete — not just Clear Contents, but full row deletion.
  4. Do the same for columns to the right of your last data column.
  5. Press Ctrl + S. Check the file size before and after — a reduction of several megabytes confirms the phantom rows were consuming significant space.

Fix conditional formatting applied to full columns:

  1. Go to Home → Conditional Formatting → Manage Rules → Show formatting rules for: This Worksheet.
  2. Look for rules applied to entire columns (e.g., $A:$A) rather than specific ranges. Change them to apply only to the specific data range (e.g., $A$1:$A$500). Delete any unused rules.

Remove named ranges with errors:

  1. Go to Formulas → Name Manager. Sort by “Refers To” and look for named ranges showing #REF! errors. Select all error-showing ranges and delete them.
Light-themed comparison showing on the left what you see in a 500-row Excel spreadsheet versus on the right what Ctrl plus End reveals which is Excel tracking data all the way to row 1048576 with three bloat source cards at the bottom showing phantom formatting conditional format applied to full columns and named ranges with ref errors
The most shocking Excel discovery: pressing Ctrl + End on a 500-row spreadsheet and landing on row 1,048,576. Excel has been formatting and tracking every cell to the end of the sheet, consuming the memory equivalent of a million-row file. This is by far the most common cause of the memory error on files that appear small. Fix 2 addresses this directly — and the file size reduction after deleting the phantom rows is often dramatic.
3Optimise Pivot Tables and Remove Pivot Cache Bloat

Pivot tables maintain a hidden cache — a stored copy of all source data — that can consume two to three times the memory of the visible pivot table. Multiple pivot tables with independent caches can easily consume gigabytes.

  1. Right-click any pivot table and select PivotTable Options.
  2. Click the Data tab.
  3. Uncheck “Save source data with file” — this stops Excel saving a redundant copy of all pivot source data inside the file.
  4. Check “Refresh data when opening the file.”
  5. Click OK and repeat for every pivot table in the workbook.
  6. For workbooks with multiple pivot tables using the same source data, configure them to share the same cache rather than creating independent copies — each independent cache is a full copy of the source data in memory.
  7. Save the file and check the file size — removing pivot cache bloat often reduces file size by 40–70%.
4Disable Hardware Graphics Acceleration in Excel

Excel uses your computer’s GPU for rendering charts, pivot tables, and large formatted ranges. When GPU memory conflicts with system memory management, Excel can throw the memory error even when system RAM is ample. Disabling hardware acceleration forces Excel to use software rendering, which often resolves the conflict.

  1. Open Excel and go to File → Options (Windows) or Excel → Preferences (Mac).
  2. Click Advanced.
  3. Scroll to the Display section.
  4. Check the box labelled “Disable hardware graphics acceleration.”
  5. Click OK and restart Excel completely.
  6. Retry the action that was producing the memory error.

This fix resolves the error for a notable proportion of users — particularly on machines with integrated graphics or where both integrated and dedicated GPUs are active simultaneously.

5Switch from 32-bit Excel to 64-bit Excel (The Permanent Architectural Fix)

This is the most impactful fix for users who regularly work with large data sets, complex models, or files over 100 MB. Microsoft installs the 32-bit version of Office by default — even on 64-bit Windows — imposing a hard 2 GB ceiling on Excel’s addressable memory.

Check which version you currently have:

  1. Open Excel and go to File → Account → About Excel.
  2. Look at the top of the dialog — it will specify either 32-bit or 64-bit.
  3. If it says 32-bit and you regularly encounter memory errors, this is almost certainly the root cause.
⚠️ Before upgrading: Switching from 32-bit to 64-bit Office requires completely uninstalling your current Office installation and reinstalling. This takes 20–40 minutes. Some older Excel add-ins and COM add-ins are incompatible with 64-bit Office — make a list of any Excel add-ins you use and verify 64-bit compatibility for each before proceeding.

Upgrade to 64-bit Excel:

  1. Sign in to office.com with your Microsoft account.
  2. Go to My Account → Install Office → Other install options.
  3. Select the 64-bit version before downloading.
  4. Uninstall your current 32-bit Office via Control Panel → Programs → Uninstall a program.
  5. Install the downloaded 64-bit Office package.
  6. After installation, verify in Excel: File → Account → About Excel — it should now show 64-bit.

After switching to 64-bit, the 2 GB memory ceiling is removed and Excel can address as much RAM as your system has.

6Increase Windows Virtual Memory (Page File)

When physical RAM is genuinely constrained — particularly on computers with 4 GB or 8 GB of RAM — increasing Windows’ virtual memory allocation gives Excel additional headroom by using a portion of the hard drive as overflow memory.

⚠️ Admin access required: Modifying virtual memory requires administrator access. Set the minimum to 1.5x your physical RAM and the maximum to 3x. Never set the maximum smaller than the minimum, and always restart the computer after making changes before testing.
  1. Press Windows key + R, type sysdm.cpl, press Enter.
  2. Click the Advanced tab → Performance → Settings.
  3. Click Advanced tab → under Virtual memory, click Change.
  4. Uncheck “Automatically manage paging file size for all drives.”
  5. Select your C: drive, choose Custom size, and enter:
    • Initial size: 1.5x your RAM in MB (e.g., 12288 for 8 GB RAM)
    • Maximum size: 3x your RAM in MB (e.g., 24576 for 8 GB RAM)
  6. Click Set, then OK through all windows.
  7. Restart your computer — virtual memory changes do not take effect until restart.

When to Contact Microsoft Support

The Excel memory error is nine times out of ten a software and configuration issue. But there are situations where escalating makes sense:

  • The error appears on a small, simple file (under 1 MB, under 1,000 rows, no pivot tables) that has never caused problems before. A memory error on a trivially small file points to a corrupted Excel installation or a deeper Windows memory management problem — not a spreadsheet issue.
  • You’ve switched to 64-bit Excel but the error persists on files under 2 GB. This indicates either a corrupt workbook or a conflicting add-in leaking memory. Run Windows Memory Diagnostic (Windows key + R → mdsched.exe) to rule out physical RAM issues.
  • You need to work with tens of millions of rows. At this scale, Excel is not the right tool regardless of how much RAM you add. Microsoft Power BI, SQL Server, or Python/Pandas are designed for this scale.

For Microsoft Excel support:

  • Microsoft 365 subscribers: support.microsoft.com — Live chat available with subscription
  • Community support: answers.microsoft.com — Excel section with active Microsoft MVPs
  • India enterprise support: 1800-102-1100 (Microsoft India toll-free)

Quick Summary

FixDifficultyTime Needed
Clear AppData temp files (bonus fix above)Easy5 minutes
Close all apps and clear Excel clipboardVery Easy3 minutes
Remove phantom rows, excess formatting, bad named rangesEasy15 minutes
Optimise pivot tables and remove cache bloatEasy10 minutes
Disable hardware graphics accelerationVery Easy2 minutes
Switch from 32-bit to 64-bit ExcelModerate30 minutes
Increase Windows virtual memoryModerate10 min + restart

Start at Fix 1. For most users whose files have grown organically over months or years, Fix 2 and Fix 3 together will reduce file size dramatically and eliminate the memory error entirely. If you routinely work with large data and the error keeps recurring, Fix 5 (switching to 64-bit Excel) is the permanent architectural solution — a one-time change that removes the 2 GB ceiling for good.