Excel Error: There Isn’t Enough Memory To Complete This Action
Excel can stop with the message "There isn’t enough memory to complete this action. Try using less data or closing other applications."
Microsoft calls this and several similar messages "available resources" errors, and says they are generic and do not always point to the real cause.
This guide walks through Microsoft’s troubleshooting methods in order, from the quick checks to the workbook clean-up and the 64-bit option.
Table of Contents
- Quick answer: what to try first
- What the message says
- Step 1: work out what triggers it
- Step 2: delete Custom Views in a shared workbook
- Step 3: install the latest updates
- Step 4: check your add-ins
- Step 5: test the default printer and antivirus
- Step 6: clean up the workbook
- Step 7: review formulas and links
- Step 8: use 64-bit Excel or split the file
- Step 9: close other apps that use memory
- If the file itself will not open
- Sources
- More Word, Excel and PowerPoint guides
Quick answer: what to try first
| Order | Fix | Why it can help |
|---|---|---|
| 1 | Close other programs and restart | Other apps may be using memory that Excel needs |
| 2 | Update Windows and Office | Updates replace outdated files and patch problems |
| 3 | Start Excel without add-ins | An add-in can interfere with Excel |
| 4 | Clean up the workbook | Excess formatting, hidden shapes and heavy formulas use memory |
| 5 | Check the default printer and antivirus | Excel uses the default printer to render files, and antivirus can keep scanning the file |
| 6 | Move to 64-bit Excel or split the file | A 32-bit program is limited to 2 GB of memory |
What the message says
The full text Microsoft quotes ends with two suggestions: use a 64-bit version of Microsoft Excel and add memory to your device.
Microsoft lists three look-alike messages under the same troubleshooting article.
- "Excel cannot complete this task with available resources. Choose less data or close other applications."
- "Out of Memory"
- "Not Enough System Resources to Display Completely"
The article applies to Excel for Microsoft 365 and to Excel 2024, 2021, 2019 and 2016.
Step 1: work out what triggers it
Microsoft starts by asking whether the error belongs to one workbook, or to files made from the same template.
It lists the actions that commonly set the error off.
- Inserting a row or column
- Sorting
- Performing calculations
- Copying and pasting
- Opening or closing the workbook
- Running VBA
Inserting, calculating and pasting can force formulas to recalculate, and a sheet with a million formulas has to recalculate all of them when you add a column.
Shapes, complex PivotTables, macros and charts with many data points can also use up memory.
Step 2: delete Custom Views in a shared workbook
If you use the old Shared Workbook feature, which is on the Review ribbon under Share Workbook, deleting Custom Views may free memory.
- Open the View ribbon.
- Open Custom Views.
- Select a view and choose Delete.
This does not delete your content, but it does remove print areas and filters that you can set up again.
Step 3: install the latest updates
Microsoft recommends that you install Windows updates and Office updates, because updates can replace outdated files and patch vulnerabilities.
Our guide to repairing Microsoft 365 apps is the next stop if Excel still misbehaves after updating.
Step 4: check your add-ins
Check which add-ins are running and turn them off to see whether Excel works properly without them.
If the error stops after you remove an add-in, Microsoft says to contact that add-in’s manufacturer for support.
Step 5: test the default printer and antivirus
Excel uses the default printer to help render files, so Microsoft suggests testing with Microsoft XPS Document Writer as the default.
- Close Excel.
- Open Devices and Printers.
- Right-click Microsoft XPS Document Writer.
- Select Set as Default.
Antivirus software can keep scanning an Excel file or its contents, and the memory error then often appears at random across different spreadsheets.
Microsoft suggests turning antivirus off temporarily, or excluding Excel files from scanning, and says in some cases it may need to be removed.
Step 6: clean up the workbook
Microsoft has a second article for workbooks that use too much memory, and it applies to Excel for Microsoft 365, 2024, 2021 and 2016.
| Method | What to do | Notes |
|---|---|---|
| Remove excess formatting | Clear whole rows or columns formatted with colour or borders, and formatting carried over from web pages or databases | Microsoft points to a format cleaner add-in |
| Remove unused styles | Delete styles that came in when you copied cells between workbooks | Works for .xlsx and .xlsm files only |
| Remove hidden shapes | Home > Find & Select > Selection Pane, then delete shapes you do not need | Repeat on every worksheet |
| Clear conditional formatting | Home > Conditional Formatting > Clear Rules on each sheet, as a test | Save a backup first, then reapply the rules |
For shapes, the Selection Pane lists charts, drawing shapes, comments, pictures, SmartArt and WordArt, and many are hidden or stacked so you may not know they exist.
For the conditional formatting test, save the workbook under a different name and check whether the problem is gone.
Step 7: review formulas and links
Some functions use a lot of memory in array contexts, and Microsoft names LOOKUP, INDIRECT, OFFSET, INDEX and MATCH.
Whole-column references are a known cost, because the grid grew from 65,536 rows to 1,048,576 rows.
Microsoft says a fix for whole-column and whole-row references arrived in Office 2016 and 365 version 1708 (16.0.8431.2079) and later, so update Office, and in earlier versions rewrite formulas to reference only the cells you need.
| Area | What Microsoft advises |
|---|---|
| Cross-workbook formulas | Keep each formula inside its own workbook, and link to results from another workbook with a simple link |
| Volatile functions | Limit TODAY and NOW, which recalculate often, and enter them once instead of in hundreds of cells |
| Array formulas | Do not extend an array beyond the cells you need |
| Defined names | Check for whole-column or whole-row references, and names that point at other workbooks |
| Links | Test the file with links removed to see whether the problem is in this file or a linked one |
If Excel hangs rather than showing the message, see Excel not responding or freezing.
Step 8: use 64-bit Excel or split the file
Microsoft explains that a 32-bit application is limited to 2 GB of memory, while 64-bit Excel can use all of the physical RAM in the PC.
If none of the clean-up methods work, Microsoft says to move to 64-bit Excel, split the workbook into several files or contact support.
Step 9: close other apps that use memory
If the message goes away after a restart or after you close some applications, other programs are probably holding memory that Excel needs.
Close what you do not need, and Microsoft points to a clean boot of Windows for further troubleshooting.
Our guide to high CPU or memory usage in Windows 11 shows how to find the app using the most memory.
If the file itself will not open
A workbook that errors on every open may be damaged rather than too big, so try the corrupt workbook steps as well.
Sources
- Microsoft: How to troubleshoot "available resources" errors in Excel
- Microsoft: Clean up an Excel workbook so that it uses less memory
More Word, Excel and PowerPoint guides
- How To Wrap Text And Merge Cells In Excel (2026)
- How To Create And Use Named Ranges In Excel (2026)
- How To Insert And Remove Page Breaks In Excel (2026)
- How To Add Page Numbers And Headers In Excel (2026)
- How To Fix Excel Column Headings Showing Numbers (2026)
- How To Fix Excel Arrow Keys Scrolling The Sheet (2026)