Fixing the Excel “There isn’t enough memory” error requires a mix of freeing up system resources, optimizing your workbook structure, and adjusting Excel’s settings. The quickest fix is to close other applications and restart Excel, but if that fails, you likely need to reduce the file size by removing unnecessary data, splitting the workbook, or increasing the available memory allocation. This guide walks you through the specific steps to resolve the issue and prevent it from happening again.

What You'll Need

  • A computer running Windows (the steps below are specific to the Windows version of Microsoft Excel).
  • The Microsoft Excel application installed.
  • Access to your workbook file (if it is on a network share or cloud drive, ensure you have a stable connection).
  • Basic knowledge of navigating file menus and saving files.

Step-by-Step

  1. Close all other applications. The most immediate cause of this error is that other programs are consuming the available RAM on your computer. Before opening Excel, press Ctrl + Shift + Esc to open the Task Manager. Click on the “Processes” tab and look for any applications that are using a high amount of CPU or memory. Select the ones you are not actively using and click “End Task.” This frees up the RAM required for Excel to run.
  2. Restart Excel and the computer. Simply closing and reopening Excel may not clear the memory block if the application has become unstable. Close Excel completely. If the error persists, restart your computer. This clears all temporary memory allocations and refreshes your system's resources, giving Excel a clean slate to work with.
  3. Check for hidden objects and formatting. Large amounts of formatting can cause memory bloat. Go to the “Home” tab on the ribbon and click the small arrow in the bottom right corner of the “Font” or “Alignment” groups to open the Format Cells dialog. Look for any excessive borders, cell fills, or merged cells that do not need to be there. Removing these can significantly reduce memory usage.
  4. Remove empty rows and columns. Often, workbooks contain hundreds or thousands of empty rows or columns that are not being used. These invisible cells still consume memory. Select the range of empty rows or columns (e.g., click the row numbers to the left of the sheet to select all rows, or the column letters at the top) and right-click to delete. Ensure you are not deleting data you need.
  5. Use the “Delete Unused Rows and Columns” tool. For large files, manually selecting empty rows is tedious. You can use a built-in tool to do this automatically. Click on the top-left corner of your sheet (between the row 1 header and column A header) to select the entire sheet. Go to the “Home” tab and click “Find & Select” in the Editing group, then choose “Go To Special.” In the dialog, select “Constants” and ensure only “Numbers” is checked (or choose “Formulas” if you want to clear formulas). Click OK. This will select all non-empty cells, leaving the empty ones behind. Now, right-click the selected empty cells and choose “Delete” to remove them all at once.
  6. Convert ranges to Excel Tables. If your data is in a simple range of cells, converting it to an Excel Table (Ctrl + T) can improve performance. Tables are optimized for handling large datasets. They also allow you to filter and sort data more efficiently. To do this, select your data range and press Ctrl + T. Ensure the “My table has headers” checkbox is checked and click OK.
  7. Split large workbooks. If your file contains multiple sheets with heavy data, consider splitting them into separate files. A single file with multiple complex sheets can exceed memory limits. Go to the “Data” tab and use the “Move or Copy” command (found in the “Workbooks in Workbook” group) to copy specific sheets into a new workbook. Save the new workbook under a different name.
  8. Check for external links. External links to other workbooks can cause memory issues if the linked files are large or located on a slow network. Go to the “Data” tab and click “Edit Links.” Review the list of sources. If you see links to files that are no longer needed or that are too large, you can break these links by selecting them and clicking “Break Link.” Alternatively, if the links are necessary, ensure the source files are closed or located locally rather than on a network drive.
  9. Adjust Excel memory limits. If you are working with exceptionally large files, you may need to increase the memory allocation for Excel. Go to the “File” tab and select “Options.” In the Excel Options dialog, click “Advanced.” Scroll down to the “General” section and look for the option labeled “Disable hardware graphics acceleration.” Uncheck this box. This forces Excel to use software rendering instead of your computer’s graphics card, which can sometimes be more memory-efficient, though it may reduce visual performance.
  10. Save as a newer file format. If your file was created in an older version of Excel, it may contain legacy data structures that consume more memory. Go to “File” > “Save As.” Choose Excel Workbook (*.xlsx) from the dropdown menu. This format is more efficient than the older binary format (.xls). Note that macros (written in VBA) cannot be saved in the .xlsx format; if your file contains macros, you will need to keep the .xlsm format but still try the other optimization steps.
  11. Use the Compatibility Checker. Before saving as a newer format, run the Compatibility Checker to see if there are any features in your file that might cause issues in different versions of Excel. Go to “File” > “Info” > “Check for Issues” > “Compatibility Checker.” Review the results and address any warnings that might indicate heavy data usage.
  12. Close the workbook and reopen it. After making the changes above, close the workbook completely. Go to the “File” tab and select “Open.” Browse to your file and open it again. This reloads the file with the optimized structure and cleared memory.

Common Mistakes

  • Leaving the file open for days. Keeping an Excel file open for extended periods can lead to memory fragmentation and performance degradation. Over time, the file may become unstable and result in the “not enough memory” error. It is a good practice to close files when you are finished working on them, especially if they are large.
  • Ignoring the “Save” prompt. If Excel prompts you to save your work during a heavy operation, do not ignore it. Saving frequently ensures that your data is secure and that the file is not left in an inconsistent state that could lead to memory errors.
  • Using too many array formulas. Complex array formulas can consume a significant amount of memory. If you have a worksheet filled with these, consider simplifying the formulas or breaking them down into smaller, more manageable chunks.
  • Not restarting the computer. While closing other applications helps, it does not clear the operating system's memory cache. Restarting the computer is the most effective way to ensure a clean slate for heavy applications like Excel.

Tips

  • Work on a local drive instead of a network drive. Network drives are slower and have more latency than local drives. Opening a file from a network drive can strain both your computer's memory and the network connection, increasing the likelihood of errors.
  • Use Power Query for data analysis. If you are importing large amounts of data, use Power Query (found in the “Data” tab) instead of simple copy-pasting. Power Query loads data in a more efficient way and allows you to transform data without loading it all into memory at once.
  • Limit the number of open worksheets. Having too many sheets open at once can increase memory usage. Try to keep only the sheets you are currently working on open.
  • Use the “Inspect Document” feature. Go to “File” > “Info” > “Inspect Document” to check for hidden text, notes, or other metadata that might be cluttering your file and increasing its size.

Troubleshooting

If you have followed the steps above and are still encountering the “There isn’t enough memory” error, try the following troubleshooting steps in order:

  • Check your computer’s available RAM. Open Task Manager and go to the Performance tab. Look at the “Memory” section. If you are running low on available memory (less than 10-15% free), you may need to upgrade your computer’s RAM to handle larger Excel files.
  • Update Excel. Outdated versions of Excel may have memory leaks or inefficient resource management. Go to “File” > “Account” > “Update Options” > “Update Now” to ensure you have the latest version.
  • Repair the Office installation. If the issue is with the Excel application itself, you can try repairing the Office installation. Go to “Control Panel” > “Programs and Features.” Find Microsoft Office (or Microsoft 365) in the list, right-click it, and select “Change.” Choose “Quick Repair” and follow the prompts.
  • Save the file in CSV format. If you absolutely cannot open the file in Excel, you can try saving it as a CSV (Comma Separated Values) file. This format is extremely lightweight and contains only the raw text data. However, be aware that CSV files do not support formulas, charts, or multiple sheets. You would need to re-create those elements manually.
  • Use the 64-bit version of Excel. If you are using the 32-bit version of Excel, consider switching to the 64-bit version. The 64-bit version can address much more memory (up to 2 terabytes) than the 32-bit version (limited to 2-4 GB). This is particularly useful for users with large datasets.

Frequently Asked Questions

Does deleting empty rows really help?

Yes, Excel stores data for every single cell, even if it is empty. Removing unused rows and columns eliminates this wasted storage and reduces the amount of data Excel has to process, which directly lowers memory usage.

Why does this error happen even if I have a lot of RAM?

The error often refers to the application's internal memory allocation rather than the total amount of RAM on your computer. If Excel is trying to allocate a specific block of memory that exceeds its limit, or if the file itself is simply too large for the version of Excel you are using (32-bit), the error will occur regardless of how much free RAM you have left.

Can I increase the memory limit in Excel settings?

No, there is no built-in setting in Excel to arbitrarily increase the memory limit. The limit is determined by the version of Excel (32-bit vs 64-bit) and the operating system's capabilities. To increase the limit, you must upgrade to the 64-bit version of Excel.

Is it safe to save a large file as a CSV?

It is safe, but you will lose functionality. Saving as CSV converts the file to a text format. All formulas, charts, conditional formatting, and multiple sheets will be lost. You will be left with only the raw data values.

Does having too many open tabs in a web browser cause Excel memory errors?

Yes. Web browsers are notorious for consuming large amounts of memory. If you have many tabs open, they will compete with Excel for resources. It is best to close unnecessary tabs before working on large Excel files.

Why does the error happen when I try to save the file?

When saving, Excel must create a temporary copy of the file in the background. If the file is too large, or if the disk space is full, this temporary copy process can fail and trigger the memory error. Ensure you have sufficient free disk space and that the folder you are saving to is not a network drive with limited write speed.