Not Enough Memory to Complete This Action in Excel – How to Fix?

Sometimes when we carry out an operation in Excel, for example, running VBA and inserting columns, Excel stops working and returns a warning message indicating there isn’t enough memory to complete the action, as the one below: 

message box showing there isn't enough memory to complete this action prompt

The error of “not enough memory” usually happens when our workbook is large or contains many features, such as charts, VLOOKUP formulas, and PivotTables.

The issue of Excel not having enough memory to complete an action can be caused by several reasons.

This tutorial enumerates ten potential causes of the “There isn’t enough memory to complete this action” problem and explains possible solutions.

Cause #1: Insufficient System Resources

Microsoft recommends 2 GB RAM for a 32-bit version of Excel and 4 GB for a 64-bit version.

However, for optimal performance, Microsoft recommends 4 GB of RAM for a 32-bit version of Excel and 8 GB of RAM for a 64-bit version.

Consequently, if our computer’s hardware is inadequate or outdated, it may not have enough memory to run Excel optimally. 

How to Fix?

Upgrade the computer’s physical RAM or replace the computer with one that has adequate system resources to run Excel optimally.

Cause #2: Too Many Applications are Running Simultaneously

Suppose we open too many workbooks and applications, and they are running simultaneously.

In that case, they hog the computer’s memory resulting in Excel not having sufficient memory to complete what we want it to do.

How to Fix?

Close all unnecessary workbooks and applications and try the operation you were doing again before the error occurred.

Closing applications removes them from memory, making more memory resources available to Excel.

Also read: Excel Not Responding – How To Fix It!

Cause #3: Large File Size

If we are working with a large Excel file that has many worksheets and features, it may require more memory than what is available on our computer. 

How to Fix?

Reduce the file size by deleting any unused or unnecessary worksheets and data. Additionally, we can split the workbook into smaller workbooks. 

We can split a workbook into different workbooks by using the steps below:

  1. Select the tabs of the worksheets we want to move to a new workbook, right-click the selection and choose Move or Copy on the shortcut menu that appears:
click on the move or copy option
  1. On the Move or Copy dialog box, open the To book drop-down, select (new book), and click OK.
move the sheet to a new workbook

We have moved the selected worksheets to the new workbook.

We can repeat steps 1 and 2 if we want to push other worksheets to other new workbooks. 

Also read: Can’t Push Objects Off the Sheet in Excel – How to Fix!

Cause #4: Insufficient Virtual Memory

Virtual memory is the area on the hard drive used as additional memory when the computer’s RAM is full.

If virtual memory is incorrectly set up or runs too low, it can trigger the “not enough memory to complete this action” error.

How to Fix?

Increase the virtual memory using the steps below:

  1. Click the Start button and choose Settings on the pop-up menu.
click on the settings option
  1. On the Settings window, select the System option. 
click on the system option
  1. Click the About option on the left sidebar of the extended Settings window.
click on the about option
  1. Click on the Advanced system settings option on the right panel of the Settings window.
click on advanced system settings
  1. On the Advanced tab of the System Properties feature, click Settings on the Performance group, and click OK
click on the settings button in the system properties dialog box
  1. On the Advanced tab of the Performance Options feature, click the Change button on the Virtual memory group and click OK.
click on the change button in the performance options dialog box
  1. On the Virtual Memory feature, uncheck the Automatically manage paging file size for all drives, select the Custom size option, and type in the required values in the Initial size (MB) box and the Maximum size (MB) box (the rule of thumb is that the initial size be one and half times the available RAM and the maximum size be three times the available RAM). Finally, click the Set button and click OK.
steps to take in the virtual memory dialog box
  1. Restart the computer for the changes to take effect.
  2. Open the Excel file you were working on and try the operation you were doing again before the error occurred.
Also read: Copy-Paste is Not Working in Excel – How to Fix?

Cause #5: Corrupt Excel Installation

A corrupt Excel installation can sometimes cause the “Not enough memory to complete this action” error. 

How to Fix?

Repair the Excel installation or uninstall and reinstall Excel.

Cause #6: Outdated or Conflicting Add-ins

Excel add-ins such as Analysis ToolPak and Stock Connector add new features or capabilities to Excel.

However, if the add-ins are outdated, they can cause the “Not enough memory” error.

How to Fix?

Get updated add-ins or remove or disable add-ins that are not essential.

You can also try disabling the add-ins one-by-one, and check after which add-in disablement the error prompt goes away. This will help you identify the add-in that is causing the problem.

Also, try re-enabling the add-in after disabling it once. If re-enabling the add-ins continues to show the “There isn’t enough memory to complete this action” message prompt, you can be sure that this is the problem with this add-in, and it will continue as long as this add-in is enabled. 

Also read: How to Create and Use an Excel Add-in

Cause #7: Memory Leaks

Software bugs or programming errors can cause Excel to leak memory leading to the “not enough memory” error.

How to Fix?

Restart Excel or the computer to clear the memory leak.

Cause #8: Limitation of a 32-bit Version of Excel

A 32-bit version of Excel can only utilize a maximum of 4 GB of RAM because the maximum memory addressable by a 32-bit operating system is limited to 2^32 bytes (4 GB).

Consequently, the sizes of workbooks in a 32-bit version must be smaller than 4 GB of RAM. Otherwise, we get the “not enough memory” error.

How to Fix?

Upgrade to a 64-bit version of Excel that runs on a 64-bit system which can address significantly more memory and provide better performance for memory-intensive applications like Excel. 

How to Upgrade to a 64-bit version of Excel

If we have a 32-bit version of Excel, we can use the following steps to upgrade to the 64-bit version:

  1. Check if our computer is running a 64-bit version of Windows by doing the following:
  • Click Start and open Settings.
click on the settings option
  • Select the System option on the Settings window.
select the systems option in the control panel
  • Click About on the left sidebar of the Settings window.
click on the about option in the settings window
  • Check the System type under Device specifications.
check the system type option in the settings dialog box
  1. If you have a 64-bit version of Windows, we can download and install the 64-bit version of Excel from the Microsoft website. After the installation, you may need to activate your copy of Excel by supplying a valid license key.

Cause #9: Automatic Calculation Mode

By default, Excel is set to automatic calculation mode, automatically updating calculations whenever we change the worksheet’s data.

However, working with large or complex spreadsheets in automatic calculation mode can slow the performance of Excel and even result in the “not enough memory” error.

How to Fix?

Set Excel to manual calculation mode so Excel only updates calculations in the worksheet once we command it by pressing F9 or clicking the Calculate Now button in the Calculation group on the Formulas tab.

Setting Excel to manual calculation mode speeds up the performance of Excel by reducing the amount of calculation done in the background.

To set Excel to manual calculation mode, we use the following steps:

  1. Click the File tab to open the Excel Backstage window.
click the file option
  1. Click Options on the left sidebar of the Backstage window.
click on options
  1. On the Excel Options dialog box, select Formulas on the left sidebar, select the Manual option under the Calculations options on the right, and click OK.
select manual to recalculate workbook before saving option

Once we have set Excel to manual calculation, we can update calculations in our worksheet by pressing F9 or clicking the Calculate Now button in the Calculation group on the Formulas tab.

calculate now option in the ribbon

Cause #10: Not Updating Windows and Excel

Not updating Windows and Excel can result in various potential issues, such as performance problems, compatibility issues, and “not enough memory” errors.

How to Fix?

Regularly update Windows and Excel.

Windows, by default, automatically updates, but sometimes you may need to check for and install updates manually by doing the following:

  1. Click the Start button and open Settings.
click on the start option and then click on settings
  1. Click Windows Update on the left sidebar of the Settings window and click the Check for updates button on the right.
check for updates in windows

Regarding newer versions of Excel, updates are automatically downloaded and installed.

However, sometimes you  may need to manually check for and install updates by doing the following:

  1. Click the File tab to open the Excel Backstage window.
click the file option
  1. Click Account on the left sidebar of the Backstage window.
click on the account option
  1. Under Product Information on the right, open the Update Options drop-down and choose Update Now.
click on update now option in the update options Drop-down

This tutorial explained ten possible causes of the “not enough memory to complete this action” issue in Excel and described ten solutions to the error.

We hope you found the tutorial helpful.

Other Excel articles you may also like:

I am a huge fan of Microsoft Excel and love sharing my knowledge through articles and tutorials. I work as a business analyst and use Microsoft Excel extensively in my daily tasks. My aim is to help you unleash the full potential of Excel and become a data-slaying wizard yourself.

Leave a Comment