When Excel says it ran out of resources, it could not get enough memory or another system resource to finish the requested operation; the message does not necessarily mean your computer has run out of physical RAM. Save the workbook if possible, close other applications, restart Excel, and then narrow down whether the problem is caused by the workbook, its calculations, an add-in, or Excel’s available memory.
What the error means
The wording varies. You might see a message that Excel cannot complete a task with available resources, that there is not enough memory, or that a calculation cannot be completed. These messages describe a failure to allocate resources for a particular action. They do not identify one single cause, and they can appear while opening, saving, calculating, copying, filtering, or editing a workbook.
Excel must keep workbook data, formulas, formatting, objects, calculation information, and other working data available while it operates. A complex file can therefore require much more memory than its saved file size suggests. The issue may also involve a particular operation requiring a temporary block of memory, even when Windows still reports available RAM. Closing applications can help, but a recurring error usually calls for reducing the workbook’s workload or identifying a software or compatibility problem.
Try these first steps
Start with reversible checks before changing the workbook. If Excel is still responsive, save a new copy using File > Save As. If it is not responsive, wait briefly for a long calculation or save operation to finish before force-quitting; unsaved changes may be lost if you close the program.
- Close other large applications and unnecessary Excel workbooks, then reopen the affected file.
- Restart Windows if the error persists. This releases resources held by applications that have been running for a long time.
- Check whether the failure happens with one workbook or with several. If only one file triggers it, focus on that file’s contents and calculations.
- Open Excel in Safe Mode by entering
excel /safein the Windows Run dialog. If the problem disappears, an add-in or customization may be involved. - Try the same action in a copy of the workbook. For example, if filtering fails, test a smaller range or remove a nonessential sheet from the copy.
Safe Mode is a diagnostic test, not a permanent repair. To review add-ins, open File > Options > Add-ins. At the bottom, select COM Add-ins in the Manage box and choose Go; disable an add-in only if you can identify it and do not need it for the task. Excel add-in options can differ by add-in type, so re-enable items one at a time to find a cause rather than disabling everything indefinitely.
Check Excel’s bitness and available memory
On Windows, 32-bit and 64-bit Excel differ in how much address space they can use. A 32-bit application has a much smaller address space than a 64-bit application, even when it runs on a computer with a large amount of RAM. Modern 32-bit Excel releases are large-address-aware, and their limits depend on the Windows architecture, but they still cannot use the broad address space available to 64-bit Excel. The actual amount Excel can use is also affected by Windows, other processes, and workbook demands.
To check the installation, choose File > Account > About Excel. The dialog identifies whether Excel is 32-bit or 64-bit. A 64-bit edition can be a useful option when handling very large workbooks or data models, provided that required add-ins and other software support it. Switching editions is not a way to add physical RAM, and it may not fix a workbook that has excessive formulas, formatting, or objects. Some older add-ins are available only in 32-bit form, so check compatibility before changing Office installations.
Excel’s worksheet size is not a promise that every workbook can practically use every cell. A sheet can contain up to 1,048,576 rows and 16,384 columns, but memory use depends on what is stored and calculated across the workbook. A workbook with a modest number of rows can still be demanding if it contains many formula-heavy sheets, large pivot caches, or embedded content.
Reduce workbook complexity
Large or untidy workbooks can consume resources in ways that are not obvious from the visible data. A sheet that appears to contain a small table may have formatting applied to thousands of unused rows or columns. Excel may also retain a larger used range than expected after data has been deleted. To inspect it, press Ctrl+End on Windows; Excel moves to the last cell it considers used. If that cell is far beyond your actual data, the sheet may contain unnecessary formatting or other remnants.
On a copy of the workbook, remove formatting and content from genuinely unused rows and columns beyond the real data, then save, close, and reopen the file. Avoid deleting rows or columns that contain data, formulas, or formatting you still need. Also look for duplicated sheets, unnecessary images, shapes, comments, and embedded objects. Images can be resized or compressed where appropriate, and obsolete objects can be removed after confirming they are not needed.
Other useful reductions include:
- Remove duplicate conditional-formatting rules and limit rules to the cells that need them.
- Replace repeated formulas with stored values only when the results no longer need to update automatically.
- Delete unused named ranges, external links, and old data connections after checking their purpose.
- Consider saving a copy as an Excel Binary Workbook (.xlsb) when the file’s contents and workflow support it. This format can reduce file size in some cases, but it is not a guaranteed cure for memory errors.
Review formulas and calculation settings
Formula workload is a frequent source of slow or resource-intensive work. Formulas copied down hundreds of thousands of rows, calculations that refer to entire columns, and long chains in which one result feeds another can increase recalculation time and memory needs. Array formulas and formulas that process large ranges deserve particular attention. A formula referencing A:A may be convenient, but if it is repeated across many cells, Excel has to evaluate a much larger range than a reference limited to the actual data.
Look for formulas that can use a bounded range or an Excel table, and avoid repeating expensive calculations when a helper column or a single intermediate result would do. Volatile functions such as NOW, TODAY, RAND, and OFFSET can cause recalculation more often than expected; use them only where their changing results are necessary. Do not replace formulas with values indiscriminately, since that removes their ability to update.
If recalculation itself causes the failure, you can test manual calculation through Formulas > Calculation Options > Manual. This setting changes calculation behavior and may affect other open workbooks in the Excel session. It does not fix the underlying workbook. Before relying on results, recalculate deliberately using Formulas > Calculate Now, and restore Automatic calculation when appropriate. Manual mode can leave displayed results out of date, so label or communicate the setting if other people use the file.
Find add-in, file, or installation problems
If Excel works in Safe Mode but fails during normal startup, investigate add-ins and startup files. Disable a suspected add-in, restart Excel normally, and repeat the action that caused the error. If the problem remains, restore the add-in and test another one. An add-in that is essential to a business process should be checked with its publisher or IT support before removal.
If one workbook is affected, create a copy and test a reduced version: remove nonessential sheets, data connections, or objects one category at a time. This can reveal whether a particular sheet or feature triggers the problem. For an important damaged workbook, use File > Open, browse to the file, select the arrow beside the Open button, and choose Open and Repair. This may help with file corruption, but it is not a general memory optimization and can remove damaged content.
When multiple workbooks fail, check for Microsoft 365 updates and consider repairing Office from Windows’ installed-app settings. The labels and route can vary by Windows version and organization policy; Microsoft 365 commonly offers Quick Repair and Online Repair. Repairing Office does not guarantee a fix, but it can address damaged program files. On a managed work computer, ask IT before changing installations or running a repair.
Prevent the error in large workbooks
Good workbook design reduces the chance that routine tasks will exceed available resources. Keep raw source data separate from reports, use tables and defined ranges rather than unnecessarily broad references, and remove obsolete data instead of carrying it through every version. If a workbook is being used as a database with millions of records or many simultaneous users, Excel may not be the best storage or analysis platform; a database or a managed data service may be more suitable.
When importing data, load only columns and rows needed for the analysis. Power Query can help shape and filter data before loading, though the resulting query and data model still require resources. For recurring reports, document which sheets are inputs, which contain calculations, and which are outputs. That makes it easier to find a resource-heavy step and safer to simplify the workbook without breaking important results.
Keep a dated backup before structural changes, especially before deleting formatting, converting formulas to values, removing connections, or repairing a file. If several people edit the workbook, coordinate changes: one user’s change to calculation settings, links, or workbook structure can affect others. A smaller, clearly structured workbook is generally easier to troubleshoot than a file that has accumulated years of unused material.
Frequently Asked Questions
Does this error mean my computer needs more RAM?
Not necessarily. Excel may be constrained by its 32-bit address space, a particular workbook operation, an add-in, or workbook complexity even if Windows has free memory. Check Excel’s bitness and test whether the problem is limited to one file before deciding that a hardware upgrade is needed.
Will switching to 64-bit Excel fix the error?
It can help when a large workbook is running into the address-space limits of 32-bit Excel, but it is not a universal fix. Verify that required add-ins and connected software support 64-bit Office, and remember that a poorly structured or damaged workbook can still fail.
Why does Excel show the error when I copy or paste?
Copying a large range can require temporary memory for cell contents, formatting, formulas, and clipboard data. Try copying a smaller section, clearing unnecessary formatting in the source range, or closing other workbooks. If only one workbook triggers the error, inspect its used range and complexity.
Can I ignore the message if Excel eventually finishes?
Do not assume the result is complete just because Excel becomes responsive again. Check whether the action finished, whether formulas recalculated, and whether saved data is intact. Save a separate copy and investigate recurring errors, since repeated resource failures can interrupt work or leave calculations outdated.
Is manual calculation a permanent solution?
No. Manual calculation can prevent automatic recalculation from happening after every change, which may make a demanding workbook easier to use, but displayed results can become stale. Recalculate when needed and restore the appropriate calculation setting once the issue is understood.
Related
- Enable Circular References in Excel: Step-by-Step
- Find Circular References in Excel
- Excel Turn Off Circular Reference Warning?
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Shortcut to Go to the Last Row With Data QuicklyIn Excel for Microsoft 365 on Windows, press Ctrl+Down Arrow from a filled cell to jump to the…
- Excel Day Counter: Count Days Between DatesWith a start date in A2 and an end date in B2, enter =B2-A2 to count the days…
- Excel Keyboard Shortcut to Insert Today’s DateIn Excel for Microsoft 365 on Windows, press Ctrl+; (Control plus the semicolon key) to insert today’s date…
- Excel Bullet Point Shortcut: Windows, Mac, and WebIn Excel for Microsoft 365 on Windows, press Alt+7 on the numeric keypad to type a bullet (•)…
- Excel Data Model vs Power Query: How They Work TogetherPower Query cleans, reshapes, and imports data; the Excel Data Model stores related tables so you can analyze…
- Find Solver Parameters in Excel and Understand Each OneTo find Solver parameters in Excel for Microsoft 365 on Windows, open the worksheet you want to optimize,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.