Excel.Tips.Net ExcelTips (Menu Interface)

Workbook, Once Created, is Too Big for Memory

Subscriber John Hersey created a worksheet that contained lots and lots of information. In column A he placed 65534 words (rows 1 through 65534), then in columns B through Z he placed formulas to the side of all those words. When he saved the workbook and tried to reopen it, he got a "Not Enough Memory" error. Since the workbook only took 84MB on the disk, and he has 512MB in his system, the error message seemed confusing.

Comparing disk file size to RAM space is, in some respects, comparing apples to oranges. Excel doesn't store a workbook as a "memory dump." Instead, it compresses the data from memory so that the disk files are more manageable. Thus, the 84MB file will necessarily take more space once loaded into memory.

The amount of memory in your system may not be the problem, however. Different versions of Excel place different limits on the number of formulas you can have in a workbook, and this is likely the problem you ran into. (It is curious, however, that you were able to create the worksheet, use it, save it, but then not load it.)

Excel 95, 97, and 2000 are officially limited to 64MB of formula memory (heap space) for workbooks. Excel 2002 raised the limit to 128MB, and Excel 2003 raised it even further--to 1GB. Since Doug is using Excel 2000, he could theoretically open the workbook on a system that uses a later version of Excel.

If that doesn't work, or if it is not possible, then there are a few other things to try. First, try opening Excel without any add-ins or hidden workbooks. These take up memory, and by starting without them, you leave more room for the mondo workbook. Choose Run from the Start menu to display the Run dialog box. In the Open box, enter the following:

"C:\Program Files\Microsoft Office\Office\Excel.exe" /Automation

The quotes are mandatory, and you might have to change the path to reflect where Excel is installed on your system. When Excel is started, turn off automatic calculation (Tools | Options | Calculation tab), then try to open the file.

If the file can be opened, remove most of the calculations. Copy the results of the calculations, then use Edit | Paste Special | Values to paste the results over the top of the formulas. Plain results--particularly numeric results--take much less space than formulas do. If you resave the file (using Save As), you should note that the resulting disk file is much smaller than the 84MB of the existing workbook file.

If you cannot open the file, you could read the values using some of the techniques outlined for corrupt files in this Knowledge Base article:


Using these recovery methods will cause you to lose the formulas, but you can get their values. You will also find a good discussion on Excel and memory-related problems at this Web page:


As a side note, if you ever want to determine how much memory Excel is using for a particular workbook, use the following formula in any cell:


The function returns the used memory, in bytes.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2545) applies to Microsoft Excel 97, 2000, 2002, and 2003.

Related Tips:

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!


Leave your own comment:

  Notify me about new comments ONLY FOR THIS TIP
Notify me about new comments ANYWHERE ON THIS SITE
Hide my email address
*What is 5+3 (To prevent automated submissions and spam.)
           Commenting Terms

Comments for this tip:

Carlos    01 Dec 2014, 13:16
From Excel help: In previous versions of Microsoft Excel, the "memavail", "memused", and "totmem" type_text values, returned memory information. These type_text values are no longer supported and now return a #N/A error value.
Kathryn    28 Oct 2014, 07:24
How can I get this information (how much memory used) for a 2010 or 2013 workbook?
Barry    09 Jul 2014, 08:07
If you have lots of very similar formulas which essentially only vary because of the relative cell references (which is often the case). Then using a "Named" formaula can save a lot of space.

Creating Named formulas can be tricky/fiddly to set up though, and is probably a good subject for another tips.
MA Subhan    09 Jul 2014, 01:12
Thanks for sharing this information. This was very helpful.
MA Subhan
Dave Unger    25 Nov 2011, 18:52
Hi Allen,

Yes, you're absolutely right - and it does work with 2003, as you suggest. I guess I was so impressed with this tip that I failed to pay attention to the "applies to" section. My mistake, sorry.


awyatt    25 Nov 2011, 11:20

You did notice that this tip was for Excel 97 through Excel 2003, right? It may very well not work with Excel 2010.
Dave Unger    25 Nov 2011, 11:18
=INFO("memused")??? "Memused" doesn't seem to be available in the dropdown when typing in "=Info", and if I manually complete the formula I get #N/A - using Excel 2010.


Our Company

Sharon Parq Associates, Inc.

About Tips.Net

Contact Us


Advertise with Us

Our Privacy Policy

Our Sites


Beauty and Style




DriveTips (Google Drive)

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2016)



Home Improvement

Money and Finances


Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2016)

Our Products

Helpful E-books

Newsletter Archives


Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2017 Sharon Parq Associates, Inc.