Excel’s “There isn’t enough memory to complete this action” message usually means Excel cannot get enough usable resources for the task—not necessarily that your computer has run out of physical RAM. Save your work, close other programs, and restart Excel; if the error returns, check whether you use 32-bit Excel, disable add-ins, and reduce the workbook’s memory load.
What the Excel memory error means
The wording can vary, but the message generally appears when Excel cannot allocate the resources it needs to open a file, recalculate formulas, refresh data, insert or copy cells, or complete another operation. The limit may be in Excel itself, Windows, or the workbook’s demands. A computer can have free memory overall while Excel still cannot use enough of it for a particular task.
Memory is also only one possible cause. A damaged workbook, an incompatible add-in, a temporary issue with Office, or a very large operation can produce a similar message. That is why the useful first question is not simply “How much RAM is installed?” but “Does the error occur in every workbook, or only during one particular task?”
If Excel is still responsive, save a new copy of the workbook before troubleshooting. If it is frozen, wait briefly for a large calculation or refresh to finish before force-quitting; unsaved changes may be lost if you close the program. After reopening, check whether Excel offers a recovered version of the file.
Why Excel runs short of usable memory
Large workbooks can require far more working memory than their saved file size suggests. Excel holds data, formulas, calculation results, formatting, and other workbook structures in memory. It may also need extra temporary space while copying a sheet, recalculating formulas, refreshing a query, or creating a PivotTable. A file that looks modest on disk can therefore demand much more while it is open.
Common sources of unusually high demand include:
- Many formulas, especially formulas that refer to entire columns or recalculate frequently.
- Large ranges of conditional formatting, complex styles, or formatting accidentally applied to unused rows and columns.
- Large imported datasets, multiple PivotTables, or duplicated PivotTable caches.
- High-resolution pictures, embedded objects, and other content stored inside the workbook.
- Several large workbooks open at once, alongside other applications using substantial memory.
Excel’s worksheet limits are not a promise that every workbook close to those limits will work comfortably. A worksheet can contain up to 1,048,576 rows and 16,384 columns, but practical capacity depends on data, formulas, workbook features, Excel’s architecture, and the computer’s available resources.
Check whether the problem is Excel-wide or file-specific
Start with a quick comparison. Open a blank workbook and try a simple action, then open a different existing workbook. If the error appears only in one file or during one operation, focus first on that workbook or task. If it happens even in a blank workbook, investigate Excel, add-ins, Office updates, and system resources.
On Windows, open Task Manager with Ctrl+Shift+Esc and review the Memory column on the Processes tab. This can show whether other applications are consuming most of the available memory. It does not reveal every limit inside Excel, so low overall memory use does not rule out a 32-bit Excel limitation or a workbook-specific issue.
Note what triggers the message: opening the file, saving it, filtering, pasting, calculating, or refreshing data. If the error follows one action, test that action in a copy of the file. For example, if refreshing a query causes the failure, try refreshing only one query at a time rather than changing unrelated settings.
Try the safest fixes first
Use these steps in order, stopping when the error no longer occurs. Keep an untouched copy of important workbooks while testing changes.
- Save, close, and restart. Save the workbook under a new name if possible, close Excel, and reopen it. Restart Windows if the problem persists; this clears temporary resource pressure from other processes.
- Close resource-heavy applications and workbooks. Browsers with many tabs, image editors, and other large files can compete for memory. Reopen only the workbooks needed for the task.
- Update Microsoft 365. In Excel, select File > Account > Update Options > Update Now. Update options may look different if an organization manages Office installations.
- Test Excel without add-ins. Press Windows key+R, enter
excel /safe, and press Enter. If the problem disappears in Safe Mode, an add-in or customization may be involved. In normal Excel, open File > Options > Add-ins. At the bottom, choose COM Add-ins next to Manage, select Go, and clear a checkbox to disable an add-in. Restart Excel and test; re-enable items one at a time to identify a culprit. - Repair Office if the issue affects multiple files. In Windows Settings, open Apps > Installed apps, select Microsoft 365, choose Modify, and try Quick Repair. If that does not help, consider Online Repair, which may take longer and require an internet connection.
Safe Mode is a diagnostic, not a permanent way to use a workbook. On a Mac, the Windows excel /safe command and Windows repair path do not apply. Test by disabling available Excel add-ins in Excel’s add-in settings, quitting and reopening Excel, and checking for Office updates through Microsoft AutoUpdate.
Reduce the workbook’s memory demands
If the failure is tied to one workbook, look for unnecessary content before changing computer settings. Make a copy first. In the workbook, press Ctrl+End on Windows to see the last cell Excel considers used. If it lands far beyond your actual data, the sheet may contain leftover formatting or content. Remove truly unused rows or columns in a copy, save, close, and reopen the file to see whether its used range and behavior improve.
Review formulas and data features as well. Full-column references can make some calculations process far more cells than intended, especially in repeated formulas. Replace them with appropriately sized ranges where practical. Avoid copying a large block of formulas or formatting across an entire sheet when only a smaller range is needed. If the workbook uses many PivotTables built from the same source, check whether they can share a cache; changes to PivotTable design should be tested in a copy.
For very large datasets, consider whether every record needs to be loaded onto a worksheet. Power Query can filter or reshape data during import, and the Excel Data Model can hold data for analysis without placing every row in a grid. These options are not universal fixes: their suitability depends on the data and analysis, and refreshes can still require significant resources. If a workbook has accumulated extensive formatting, rebuilding a clean sheet and moving only the needed data may be more reliable than trying to repair every excess style.
When switching from 32-bit to 64-bit Excel helps
32-bit Excel has a more limited address space for its own processes than 64-bit Excel. Consequently, a workbook or operation that fails in 32-bit Excel may work in 64-bit Excel, particularly when the computer has substantial RAM. This does not mean 64-bit Excel can use unlimited memory: it remains constrained by Windows, available physical memory, and the resources required by the workbook and other programs.
To check your installation in Windows, select File > Account > About Excel. The dialog identifies whether Excel is 32-bit or 64-bit. A switch can be worth considering if large workbooks repeatedly hit resource limits, but check compatibility first. Older COM add-ins, automation tools, and other integrations may exist only in a 32-bit edition. Changing architecture generally involves uninstalling the existing Office installation and installing the other architecture, so follow Microsoft’s current installation guidance or your organization’s IT process.
Installing more RAM may help when Windows is genuinely under memory pressure, but it does not remove Excel’s 32-bit address-space constraint, fix a damaged file, or make inefficient formulas efficient. Diagnose which limitation applies before buying hardware or changing Office architecture.
Common misconceptions and troubleshooting traps
A larger page file is not a reliable cure for every Excel memory error. Windows can use disk space to support memory demands, but disk storage is much slower than RAM, and extra paging does not correct an Excel process limit or a workbook that demands excessive resources. Likewise, deleting unrelated files from the hard drive usually does not free the working memory Excel needs.
Saving as a binary workbook may reduce file size in some cases, but a smaller saved file does not guarantee lower memory use during calculation or refresh. Nor is turning off automatic calculation a general fix: it can postpone recalculation and leave displayed results out of date, while the workbook may still need resources for other tasks. Use calculation settings only when you understand how to recalculate and verify results.
Finally, avoid repeatedly forcing Excel to close without saving a copy. If the error appears during a particular operation, reduce the size of that operation or test a copy rather than repeating it on the only version of the file.
Prevent the error from returning
Keep workbooks focused on the data and analysis they actually need. Remove unused content, avoid unnecessarily broad formula ranges, and archive older data outside active reports when appropriate. Close large files when they are no longer needed, and keep Office and add-ins current. For shared or business-critical workbooks, make periodic backups and test structural changes on a separate copy.
If the same message keeps appearing, record the workbook size, Excel bitness, action that triggers the error, and whether Safe Mode changes the result. Those details help distinguish an add-in problem from a workbook-specific demand or an architecture limit, and give IT support a useful starting point.
Frequently Asked Questions
Does this error mean my computer has no RAM left?
No. It means Excel could not obtain the resources needed for that action. Windows may still show available memory if Excel has reached a process limit, or the workbook may need more temporary space than the task can obtain.
Will closing other programs fix the Excel memory error?
It can, especially if other applications are using a large share of available memory. If the message returns with those programs closed, investigate Excel bitness, add-ins, and the workbook itself.
How do I know whether I have 32-bit Excel?
In Excel for Windows, select File > Account > About Excel. The dialog states whether the installed version is 32-bit or 64-bit.
Can a corrupt workbook cause a memory error?
Yes. A damaged or unusually complex workbook can fail during opening, saving, or calculation. Test a copy, try opening other workbooks, and consider moving needed sheets or data into a fresh workbook if the problem stays limited to one file.
Should I buy more RAM to fix the problem?
Only if the computer is regularly running short of physical memory and the workload would benefit from more. More RAM will not by itself fix 32-bit Excel’s tighter address-space limit, a faulty add-in, or excessive workbook complexity.
Related
- Circular References in Excel: How to Find and Trace Them
- How to Turn On Circular Reference Iteration in Excel
- How to Find a Circular Reference in Excel Step by Step
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Errors & fixes
- Remove Double Spaces in Word and Fix Double Line SpacingTo remove repeated spaces between words in Microsoft Word, open Home > Replace, enter two spaces in Find…
- Excel Date Value Not Working? Causes, Checks, and FixesIf an Excel date value is not working, first check whether the cell contains a real date or…
- VLOOKUP Column Index Number Not Working? How to Fix ItIf a VLOOKUP column index number is not working, check that it is a positive number no larger…
- Excel MID Formula Not Working? Fix the Common CausesIf Excel’s MID formula is not working, first check that its arguments are in the right order: =MID(text,start_num,num_chars).…
- Excel Not Working Correctly? Causes and Reliable FixesIf Excel is not working correctly, first save a copy of the workbook, note exactly what is failing,…
- Excel Find Not Working? Fix Search Problems in a WorksheetIf Excel’s Find feature is not working, first open Home > Find & Select > Find, expand the…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.