When Excel shows the error message 'Ran out of resources', it means the application has exceeded its memory or system limits while processing a large or complex workbook. This is not a bug but a protection mechanism to prevent system instability. The fix involves reducing memory usage by simplifying formulas, closing other apps, and optimizing workbook structure. No special tools are needed—just careful adjustments to your file and system setup.
What You'll Need
- A working copy of Microsoft Excel (2016 or later recommended)
- Access to Task Manager (Windows) or Activity Monitor (macOS)
- Time to save and reopen the workbook
- Optional: A secondary computer or cloud storage to test file integrity
Step-by-Step
- Save your workbook immediately. Click File > Save or press Ctrl+S (Cmd+S on macOS). This prevents data loss if Excel crashes during the fix.
- Close all other programs. Open Task Manager (Ctrl+Shift+Esc) and end tasks for browsers, video players, design apps, or any non-essential software. Excel competes for RAM and CPU; freeing up resources gives it breathing room.
- Restart Excel. Completely close the program (right-click its icon in the taskbar and select Close window), then reopen it. Do not just close the workbook—close the entire application.
- Open the problematic workbook again. If the error returns, proceed to the next steps.
- Check for volatile functions. Look for formulas like INDIRECT, OFFSET, RAND, or TODAY that recalculate every time any cell changes. Replace them with static values where possible. For example, copy a range with TODAY() and paste as Values only.
- Reduce array formulas. Select ranges with Ctrl+Shift+Enter formulas and replace them with regular SUMIFS, COUNTIFS, or FILTER (if using Excel 365). Array formulas consume far more memory than standard functions.
- Delete unused sheets and objects. Right-click sheet tabs and delete any blank or unnecessary sheets. Remove unused charts, images, shapes, or forms. Even hidden objects use memory.
- Convert ranges to simple tables. Highlight data ranges and press Ctrl+T. This helps Excel manage data more efficiently, especially for pivot tables and structured references.
- Disable automatic calculation. Go to Formulas > Calculation Options > Manual. This stops Excel from recalculating every time you edit a cell. Press F9 manually when you need updates.
- Split the workbook. Copy key data into a new file. Save it as a separate .xlsx file. Test if the smaller file opens without error. Repeat until you isolate the problematic section.
- Save as .xlsb. Go to File > Save As, choose Excel Binary Workbook (.xlsb) from the dropdown. This format compresses data and uses less memory than .xlsx.
- Update Excel. Go to File > Account > Update Options > Update Now. Older versions have known memory leaks. Ensure you're on the latest build.
- Test on a different device. Open the saved .xlsb file on another computer. If it opens cleanly, the issue was local to your machine’s memory or configuration.
Common Mistakes
- Trying to fix it by just closing and reopening the workbook without restarting Excel entirely—this does not clear cached memory.
- Ignoring hidden sheets or objects. Even sheets set to 'Very Hidden' or deleted but not purged from memory can trigger the error.
- Using entire column references like A:A in formulas. This forces Excel to scan over a million rows unnecessarily. Always use specific ranges like A1:A1000.
- Leaving conditional formatting applied to entire columns. Reduce it to only the used range; 100,000 formatted cells can overwhelm Excel.
- Assuming more RAM will solve it. While helpful, the real issue is usually inefficient formulas or bloated data, not hardware.
Tips
- Use Power Query to import and clean data instead of pasting raw CSV into sheets. It’s more memory-efficient.
- Store large lookup tables in a separate workbook and link via external references instead of embedding them.
- Use PivotTables instead of SUMIF/SUMIFS for summarizing large datasets—they’re optimized for performance.
- Keep formulas simple. Avoid nesting more than 7 functions. Break complex logic into helper columns.
- Turn off background error checking: File > Options > Formulas > uncheck 'Enable background error checking'.
- Use Excel’s Data Model (Power Pivot) for millions of rows. It runs on a separate engine and handles large data better.
Troubleshooting
If the error persists after following the steps above:
- Try opening the file in Safe Mode. Hold Ctrl while launching Excel. If it opens, an add-in is likely the culprit. Go to File > Options > Add-Ins, disable all, then re-enable one by one to find the offender.
- Repair Excel. Go to Windows Settings > Apps > Microsoft Office > Modify > Quick Repair. If that fails, choose Online Repair.
- Test with a new blank workbook. Copy data from the problematic file into a fresh one, using Paste > Values only. Save as a new .xlsb file.
- Check for corrupted cells. Select the entire sheet and press Ctrl+G > Special > Blanks. Delete any hidden or non-printing characters with Find & Replace (Ctrl+H). Search for CHAR(160) or CHAR(7) and replace with nothing.
- If you suspect a corrupted file, use Excel’s Open and Repair tool: File > Open > Browse > select file > click the arrow next to Open > choose Open and Repair.
- If none work, rebuild the workbook from scratch using only essential data and formulas. Export pivot tables and charts separately as images if needed.
Frequently Asked Questions
Why does Excel run out of resources even on a powerful computer?
Excel is a 32-bit application by default, which limits it to 2GB of memory per process—even on 64-bit systems. Complex formulas and large datasets can exhaust that limit quickly.
Can I increase Excel’s memory limit?
No. Excel’s memory cap is hardcoded. The only solution is reducing workbook size and complexity. Switching to 64-bit Excel (if available) may help slightly, but the real fix is optimization.
Does saving as .xlsb really make a difference?
Yes. .xlsb files are binary and compressed, reducing file size by 40-70% and improving load times. They also use less memory during operation than .xlsx files.
Why does the error appear only when I use a pivot table?
Pivot tables recalculate when source data changes. If the source has thousands of rows or volatile formulas, Excel may struggle. Refresh the pivot table manually, or use a static data range.
Can a corrupted font cause this error?
Yes. Rarely, corrupted or missing fonts used in cell formatting can trigger resource errors. Try applying a standard font like Calibri to all cells and restart Excel.
Should I upgrade to Excel 365 to fix this?
Not necessarily. Excel 365 has better memory handling and 64-bit support, but if your workbook is poorly structured, the error will still occur. Optimization matters more than version.