|

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

OrderFixWhy it can help
1Close other programs and restartOther apps may be using memory that Excel needs
2Update Windows and OfficeUpdates replace outdated files and patch problems
3Start Excel without add-insAn add-in can interfere with Excel
4Clean up the workbookExcess formatting, hidden shapes and heavy formulas use memory
5Check the default printer and antivirusExcel uses the default printer to render files, and antivirus can keep scanning the file
6Move to 64-bit Excel or split the fileA 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.

  1. Open the View ribbon.
  2. Open Custom Views.
  3. 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.

  1. Close Excel.
  2. Open Devices and Printers.
  3. Right-click Microsoft XPS Document Writer.
  4. 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.

MethodWhat to doNotes
Remove excess formattingClear whole rows or columns formatted with colour or borders, and formatting carried over from web pages or databasesMicrosoft points to a format cleaner add-in
Remove unused stylesDelete styles that came in when you copied cells between workbooksWorks for .xlsx and .xlsm files only
Remove hidden shapesHome > Find & Select > Selection Pane, then delete shapes you do not needRepeat on every worksheet
Clear conditional formattingHome > Conditional Formatting > Clear Rules on each sheet, as a testSave 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.

AreaWhat Microsoft advises
Cross-workbook formulasKeep each formula inside its own workbook, and link to results from another workbook with a simple link
Volatile functionsLimit TODAY and NOW, which recalculate often, and enter them once instead of in hundreds of cells
Array formulasDo not extend an array beyond the cells you need
Defined namesCheck for whole-column or whole-row references, and names that point at other workbooks
LinksTest 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

Leave a Reply

Your email address will not be published. Required fields are marked *