Microsoft Excel for Mac 2011 was crashing whenever I attempted to open iton a MacBook Pro laptop I use. Whenever I attempted to reopen it, I would bepresented one by one with files to reopen that had been open when it crashed.
- Not Enough Memory Excel Mac
- Not Enough Memory To Run Microsoft Excel Mac
- Not Enough Memory Excel For Mac 2011
If I chose to reopen all of the workbooks, it would display the message 'Notenough memory.' then crash again. The problem occurred even afterI closed other applications that were open and rebooted the systemto minimize the amount of memory used by other processes runningon the system.
As we already discussed that each of the Microsoft Excel versions such as Microsoft Excel 2007, Excel 2010, and Excel 2013 32-bit is set to 2 GB of memory which is also called the internal heap space. Along with the memory, each of the instances is also set to the 32,760 source cells to do a smart fill operation.
- I have Office 2008 for Mac. Prior to yesterday morning, I had no issues with Excel or Word. They are all that I use from Office. I tried to open Excel yesterday and I am getting the message 'not enough memory.' I now get it for both Excel and Word. I don't understand how this can be. I have very few documents saved to Word and Excel.
- Re: Not enough memory to run Microsoft Office Excel The purpose of setting up this Excel kill process is in case the file gets stuck in some infinite loop and/or interminable calculation (the file is large and hangs occasionally), in which case closing/reopening the workbook via a normal process doesn't work.
Whenever you attempt to reopen Excel after it has crased with files open,it may prompt you to recover changes to those files from AutoRecovery filesit created. The AutoRecovery files for Microsoft Office 2011 arestored under a user's home directory at ~/Library/ApplicationSupport/Microsoft/Office/Office 2011 AutoRecovery
. For Microsoft Office 2008 for Mac they are storedat ~Documents/Microsoft User Data/Office2008/AutoRecovery
.
The files are stored as Excel binary worksheet (BIFF12) .xlsb files, even if the original fileyou had opened was an Excel Binary File Format .xls or Office Open XML-based and macro-enabled file - seeFile formats that are supported in Excel for further information on Excel file formats. The XLSB format is alsoreferred to as BIFF12, which stands for 'binary file format for Office 12', which was introduced in Microsoft Office 2007, which was codenamed 'Office 12', and supported in Microsoft Office 2008 for Mac and later versions. An XLSBfile is a ZIP containeras are .docx filescreated by Microsoft Word. On a Mac OS X system, you can extract thecontents of a .xlsb file, if it hasn't been corrupted by an Excel crash, from a command line interface (CLI) using the Terminal application found in /Applications/Utilities
, e.g.unzip example.xlsb
.
I copied one of the files that I had edited, for which I needed the latestversion to retain changes I had made to the document in the last week, to another location, but found that it was only 171 bytes, far toosmall to contain all of the data in the spreadsheet. The originalfile name was MSGRS.xls
whereas the AutoRecovery filewas named ~$MSGRS (version 1).xlsb
. Note: if you seea '$' in the file name you will need to 'escape' its meaning witha backslash character which serves as an escape character, taking away its special meaning to a Bash shell, when copying the file with the cp command.
Note: if you are copying the file from directory where Microsoft Office stores the AutoRecovery files from a Terminal window without enclosing the path in quotes, you will also need to use the backslash character to'escape' the spaces and parentheses by placing it immediately before thosecharacters. Otherwise you will receive an 'unexpected token error message.
In this case, I couldn't extract the contents for the .xlsb file withthe unzip
utility, since it was a corrupted, incomplete file.
On a system running Apple's OS X operating system, crash reports for auser's account are stored in ~/Library/Logs/DiagnosticReports/
,so I checked on the file name for the last Excel crash report. Crash reportsare stored with a file name that begins with the application name, whichis followed by a time stamp, then the name of the system, and then a.crash
at the end of the file name.
When I checked on what was listed for the cause of the crash in the filesby looking for the line that immediately follows the 'Application SpecificInformation:' line in the files with grep -A 1 'Application SpecificInformation:
, I saw 'stack overflow' listed for the last three crashes.
I wasn't able to determine the cause of the stack overflow, but, sinceI saw several files only 171 bytes in length in the AutoRecovery directory,which meant I wouldn't actually be able to use them to recover any recentchanges, and, other than the MSGRS.xls
one, whichappeared to be unrecoverable at this point, I didn't need to recoverany of the others, I chose to reopen Excel again, but not attemptto reopen any of the previously opened files when I was promptedto reopen them. That allowed Excel to open normally without crashing.After re-entering data into the last saved version of theMSGRS.xls
spreadsheet, when I closed Excel, I saw thatthere were no longer any files in the AutoRecovery folder.
I later noticed that Excel, when itautosaves documents, willput a file with 'AutoSave' at the beginning of the file name in theAutoRecovery directory. E.g., I saw the following when I had a filenamed pending_removal.csv
open in Excel.
References:
- Microsoft Excel quit unexpectedly
Date: March 11, 2016
MoonPoint Support - New Binary File Format for Spreadsheets
By: Doug Mahugh/Microsoft
Date: August 22, 2006
Microsoft Software DeveloperNetwork (MSDN) Blogs - Determining the version of Microsoft Word used to edit a .docx Document
Date: December 31, 2104
MoonPoint Support - File formats that are supported in Excel
Microsoft Office help and training - Office Support
Note
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise. For more information about this change, read this blog post.
Symptoms
After you upgrade to Microsoft Office 2013/2016/Office 365, you experience one or more of the following symptoms:
The computer uses more memory when you open multiple Microsoft Excel 2013 workbooks, save Excel workbooks, or make calculations in Excel workbooks.
You can no longer open as many Excel workbooks in the same instance as you could before you upgraded to Excel 2013/2016.
When you insert columns in an Excel workbook, you receive an error about available memory.
When you are working with an Excel spreadsheet, you receive the following error message:
Cause
Starting in Excel 2013, improvements were made that require more system resources than earlier versions required. This article identifies areas in Excel workbooks that use lots of memory and describes how you can make your workbook files work more efficiently.
For more information about the changes that we made in Excel 2013, see Memory Usage in the 32-bit edition of Excel 2013.
Resolution
To resolve this issue, use the following methods in the order in which they are presented. If the one of these methods does not help, move on to the next method.
Note
Many Excel workbooks have several issues that can problems. After you eliminate these issues, your workbook will run more smoothly.
Formatting considerations
Formatting can cause Excel workbooks to become so large that they do not work correctly. Frequently, Excel hangs or crashes because of formatting issues.
Method 1: Eliminate excessive formatting
Excessive formatting in an Excel workbook can cause the file to grow and can cause poor performance. Formatting would be considered excessive if you formatted whole columns or rows with color or borders. This problem also occurs when formatting requires data to be copied or imported from webpages or databases. To eliminate excess formatting, use the format cleaner add-in that is available in Clean excess cell formatting on a worksheet.
If you continue to experience issues after you eliminate excess formatting, move on to method 2.
Method 2: Remove unused styles
You can use styles to standardize the formats that you use throughout workbooks. When cells are copied from one workbook to another, their styles are also copied. These styles continue to make the file grow and may eventually cause the 'Too many different cell formats' error message in Excel when you save back to older file versions.
Many utilities are available that remove unused styles. As long as you are using an XML-based Excel workbook (that is, an .xlsx file or an. xlsm file), you can use the style cleaner tool. You can find this tool here.
If you continue to experience issues after you remove any unused styles, move on to method 3.
Method 3: Remove shapes
Adding lots of shapes in a spreadsheet also requires lots of memory. A shape is defined as any object that sits on the Excel grid. Some examples are as follows:
- Charts
- Drawing shapes
- Comments
- Clip art
- SmartArt
- Pictures
- WordArt
Frequently, these objects are copied from webpages or other worksheets and are hidden or are sitting on one another. Frequently, the user is unaware that they are present.
To check for shapes, follow these steps:
- On the Home Ribbon, click Find and Select, and then click Selection Pane.
- Click The Shapes on this Sheet. Shapes are displayed in the list.
- Remove any unwanted shapes. (The eye icon indicates whether the shape is visible.)
- Repeat steps 1 through 3 for each worksheet.
If you continue to experience issues after you remove shapes, you should examine considerations that are not related to formatting.
Not Enough Memory Excel Mac
Method 4: Remove conditional formatting
Conditional formatting can cause the file to grow. This occurs when the conditional formatting in the file is corrupted. You can remove the conditional formatting, as a test to see if the problem is with corruption in the formatting. To remove conditional formatting, follow these steps:
- Save a backup of the file.
- On the Home Ribbon, click Conditional Formatting.
- Clear rules from the whole worksheet.
- Follow steps 2 and 3 for each worksheet in the workbook.
- Save the workbook by using a different name.
- See if the problem is resolved.
If removing conditional formatting resolves the issue, you can open the original workbook, remove conditional formatting, and then reapply it.
Problem remains?
If none of these methods work, you may consider moving to a 64-bit version of Excel, breaking your problem workbook into different workbooks, or contacting Support for additional troubleshooting.
Calculation considerations
In addition to formatting, calculations can also cause crashing and hanging in Excel.
Method 1: Open the workbook in the latest version of Excel
Opening an Excel workbook for the first time in a new version of Excel may take a long time if the workbook contains lots of calculations. To open the workbook for the first time, Excel has to recalculate the workbook and verify the values in the workbook. For more information, see the following articles:
If the file continues to open slowly after Excel recalculates the file completely and you save the file, move on to method 2.
Method 2: Formulas
Look through your workbook and examine the kinds of formulas that you are using. Some formulas take lots of memory. These include the following array formulas:
- LOOKUP
- INDIRECT
- OFFSETS
- INDEX
- MATCH
It's fine to use them. However, be aware of the ranges that you are referencing.
Formulas that reference whole columns could cause poor performance in .xlsx files. The grid size grew from 65,536 rows to 1,048,576 rows and from 256 (IV) columns to 16,384 (XFD) columns. A popular way to create formulas, although not a best practice, was to reference whole columns. If you were referencing just one column in the old version, you were including only 65,536 cells. In the new version, you're referencing more than 1 million columns.
Assume that you have the following VLOOKUP:
In Excel 2003 and earlier versions, this VLOOKUP was referencing a whole row that included only 655,560 cells (10 columns x 65,536 rows). However, with the new, larger grid, the same formula references almost 10.5 million cells (10 columns x 1,048,576 rows = 10,485,760).
This is fixed in Office 2016/365 version 1708 16.0.8431.2079 and later. For information on how to update Office, please see Install Office updates.
For earlier versions of Office you may need to reconstruct your formulas to reference only those cells that are required for your formulas.
Not Enough Memory To Run Microsoft Excel Mac
Note
Check your defined names to make sure that you don't have other formulas that reference whole columns or rows.
Note
This scenario will also occur if you use whole rows.
If you continue experience issues after you change your formulas to refer only to cells that are being used, move on to method 3.
Method 3: Calculating across workbooks
Limit the formulas that are doing the calculations across workbooks. This is important for two reasons:
- You are trying to open the file over the network.
- Excel is trying to calculate large amounts of data.
Instead of doing calculations across networks, contain the formula in one workbook, and then create a simple link from one workbook to another.
If you continue to experience the issue after you change your formulas to refer only to cells instead of calculating across workbooks, move on to method 4.
Method 4: Volatile functions
Limit the use of the volatile functions in a workbook. You do not have to have hundreds of cells that use the TODAY or NOW function. If you have to have the current date and time in your spreadsheet, use the function one time, and then reference the function through a defined name of a link.
If you continue to experience the issue after you limit your volatile formulas, move on to method 5.
Method 5: Array formulas
Array formulas are powerful. But they must be used correctly. It is important not to add more cells to your array than you must have. When a cell in your array has a formula that requires calculation, calculation occurs for all cells that are referenced in that formula.
For more information about how arrays work, please see Excel 2010 Performance: Tips for Optimizing Performance Obstructions.
If you continue to experience the issue after you update your array formulas, move on to method 6.
Method 6: Defined names
Defined names are used to reference cells and formulas throughout the workbook to add a 'friendly name' to your formulas. You should check for any defined names that link to other workbooks or temporary Internet files. Typically, these links are unnecessary and slow down the opening of an Excel workbook.
You can use the Name Manager tool to view hidden defined names that you can't see in the Excel interface. This tool enables you to view and delete the defined names that you don't need.
If Excel continues to crash and hang after you remove any unnecessary defined names, move on to method 7.
Method 7: Links and hyperlinks
Excel's power is in its ability to bring in live data from other spreadsheets. Take an inventory of the file and the external files to which it is linking. Excel doesn't have a limit on how many Excel workbooks can be linked, although there are several issues that you can encounter. Test the file without the links to determine whether the issue is in this file or in one of the linked files.
Moving on
These are the most common issues that cause hanging and crashing in Excel. If you are still experiencing crashing and hanging in Excel, you should consider opening a support ticket with Microsoft.
More Information
Not Enough Memory Excel For Mac 2011
If none of these methods made a difference, you should consider either moving to a 64-bit version of Excel or breaking your problem workbook into different workbooks.