Skip to content

Excel & Google Sheets Errors (#SPILL!, Formula Parse)

A laptop showing analytics on screen
Most spreadsheet errors are syntax or layout problems, not broken data. Photo via Unsplash.

A formula parse error in Google Sheets and a #SPILL! error in Excel both mean the same thing in plain language: the spreadsheet could not understand or place what you asked it to calculate. This guide explains what each error means, the fix for each one, and the Outlook, OneDrive, Teams, and Word errors that usually show up in the same Microsoft 365 workflow.

A laptop showing analytics on screen
Most spreadsheet errors are syntax or layout problems, not broken data. Photo via Unsplash.

If you landed here from a browser error while working in Sheets, our Chrome errors guide covers the browser side. The errors below live inside the spreadsheets themselves.

What Is a Formula Parse Error?

A formula parse error means Google Sheets cannot interpret the instructions in your formula. It is a blanket term for a handful of syntax errors, and Sheets shows it as #ERROR! with the tooltip “Formula parse error”. The usual causes are a typo in a function name, a missing parenthesis, a wrong separator, a missing quote mark, or an operator in the wrong place.

The same idea exists in Excel, but Excel names the problem more precisely: #VALUE!, #NAME?, #REF!, #NUM!, #DIV/0!, and #N/A each describe a different fault. Google Sheets uses #ERROR! for the parse failures and the specific codes for the rest. The sections below cover each one, in both programs where they differ.

Formula Parse Error in Google Sheets: The Common Causes

Misspelled function names

Typing =VLOOKOUP instead of =VLOOKUP, or =SUMM instead of =SUM, produces a parse error or a #NAME? error. Google Sheets offers autocomplete suggestions as you type. If your function does not appear in the suggestions, the spelling is wrong. Check it against the official Google Sheets function list.

Missing or mismatched parentheses

Every opening parenthesis needs a closing one. Nested functions make this easy to get wrong, because one missing bracket at the end breaks the whole formula. Google Sheets colour-codes matching pairs as you type. Click near a parenthesis and the matching one is highlighted. If no match is highlighted, you have found the problem.

Commas versus semicolons

The argument separator belongs to the spreadsheet locale, not to whoever wrote the tutorial you copied. Sheets in the United States and the United Kingdom separate arguments with commas. Locales that use a comma as the decimal mark, such as Germany, France, and Brazil, separate arguments with semicolons. If you paste a formula from a tutorial and the cell shows #ERROR!, check File, then Settings, then Locale, and use the separator that locale expects.

Missing or extra quotation marks

Text inside a formula needs double quotes around it, and every opening quote needs a closing one. A formula such as =IF(A2=”yes”,1,0) works, while =IF(A2=yes,1,0) does not, because Sheets reads yes as a name rather than text. Remove double quotes from around cell references, because “A2” is text, not the cell A2.

Wrong operators and extra characters

Two operators side by side, such as =A2 ++ B2, are invalid syntax. A stray character at the end of a formula, often from hitting a key next to Enter, can also block the formula from being entered at all. If Sheets shows a parse error popup as you press Enter, check the end of the formula for an extra character first.

Google Sheets Error Codes: #N/A, #REF!, #VALUE!, #NAME?, #NUM!, and #DIV/0!

#N/A. The value you want is not available. This happens most often with lookup functions such as VLOOKUP when the search term is not in the table. The formula is not broken, so do not delete it. Wrap it in IFERROR to show a message such as “Not found” instead, or in IFNA if you only want to catch the #N/A case.

#REF!. The formula references a cell that no longer exists, usually because a row, column, or sheet was deleted. Undo the deletion if it was an accident, or update the formula to reference a range that still exists. In Google Sheets, #REF! also appears when an array result cannot expand because it would overwrite data, with the message “Array result was not expanded because it would overwrite data in” followed by the cell address. Clear the cells in the way.

#VALUE!. The formula received the wrong type of value, such as text where a number was expected. This happens when a number is stored as text, often after pasting data from another program. Convert the values to numbers, or use the VALUE function, and check for hidden spaces with TRIM.

#NAME?. Sheets does not recognise a name in the formula. The usual cause is a misspelled function or a reference to a named range that does not exist. Check the spelling and check that the named range exists.

#NUM!. The formula produced a number that is invalid, such as the square root of a negative number or a number too large to display. Check the inputs for negative values where the function needs positive ones.

#DIV/0!. The formula divides by zero or by an empty cell. This is not always an error in your logic: a divisor cell may simply be empty because the data has not arrived yet. Use IFERROR or an IF test to show a blank or a message until the divisor has a value.

What Is a #SPILL! Error in Excel?

A #SPILL! error means a formula returned several results, but Excel cannot place them in the cells below or beside it. In Excel for Microsoft 365 and Excel 2021 or later, a formula such as =UNIQUE(A2:A100) fills the cells next to it on its own. Microsoft calls this a dynamic array, and the block of cells it fills is the spill range. The error appears when the space Excel needs is unavailable.

Microsoft Support documents the causes as: the spill range is not blank, the range contains merged cells, the formula is inside an Excel table, the array runs past the edge of the worksheet, the size cannot be determined, or the workbook ran out of memory. The fix depends on the cause, and Excel tells you which one it is if you click the error cell and read the warning icon.

Spill range is not blank

Select the error cell. Excel draws a dashed border around the area the results need. Click the warning icon beside the cell and choose “Select Obstructing Cells” to jump to whatever is in the way. Delete it if it is not needed, or move it outside the dashed border. A cell containing only a space counts as occupied, as does a formula that returns empty text.

Merged cells in the spill range

Spilled results cannot go into merged cells, even if the merged cells are empty. Select the merged cell, go to Home, then Merge and Center, then Unmerge Cells. If you only wanted centred text, use Format Cells, then Alignment, then Center Across Selection instead of merging.

The formula is inside an Excel table

Spilled array formulas are not supported in Excel tables. Move the formula outside the table, or convert the table to a normal range with Table Design, then Convert to Range. If you need one value from a table column instead of the whole array, reference one row with the @ operator, such as [@Service].

The array runs past the edge of the worksheet

A whole-column reference such as =VLOOKUP(A:A,A:C,2,FALSE) tries to return 1,048,576 results and runs past the last row of the sheet. Microsoft documents this exact case. The fix is to reference just the values you need, such as A2:A7, or to use the @ operator for implicit intersection, such as =VLOOKUP(@A:A,A:C,2,FALSE), and copy the formula down.

The size cannot be determined

A formula that uses a volatile function such as RAND, RANDARRAY, or RANDBETWEEN can change size on every calculation pass, and if the size never settles, Excel shows #SPILL!. Replace the volatile size with a fixed range.

Excel Error Codes: #VALUE!, #NAME?, #REF!, #NUM!, #DIV/0!, and #N/A

#VALUE! error in Excel. A value error appears when a formula mixes data types, such as adding text to a number. Check the cells the formula references for text values, hidden spaces, or numbers stored as text. The IFERROR function hides the error, but finding the wrong value fixes it.

#NAME? error in Excel. Excel does not recognise a name in the formula. The usual causes are a misspelled function, a missing quote mark around text, or a reference to a name that was deleted. Check the spelling against the function list.

#REF! in Excel. A reference is invalid, usually because a cell, row, or sheet was deleted. Undo the deletion or update the formula.

#NUM! error in Excel. The formula produced an invalid number. Check for negative values in functions that need positive ones, and for numbers too large to display.

#DIV/0! error in Excel. The formula divides by zero or an empty cell. Use IFERROR to show a blank, or an IF test to check the divisor first. To hide divide-by-zero errors across a sheet, wrap the formulas in IFERROR rather than changing the data.

#N/A error in Excel. The value was not found. This is the normal result of a lookup that finds no match, and IFNA is the right wrapper when you want to show a message instead.

How to Fix a Spill Error in Excel: The Short Version

If you want the quick path, here it is. Click the #SPILL! cell and read the dashed border. Click the warning icon and choose “Select Obstructing Cells”. Clear or move what is in the way. If the range is clear, check for merged cells and unmerge them. If the formula is inside a table, move it out. If the formula references a whole column, narrow the range. That sequence clears almost every #SPILL! error, including XLOOKUP and VLOOKUP spill errors, which are the same problem in a different function.

A dashboard with charts on a laptop screen
A spill error is a layout problem: the formula is right, but the cells it needs are not empty. Photo via Unsplash.

IFERROR, IFNA, and Hiding Errors in Excel

The IFERROR function wraps a formula and returns a value you choose when the formula errors, such as =IFERROR(VLOOKUP(A2,B:C,2,FALSE),”Not found”). IFNA does the same for #N/A only, which is safer, because it does not hide real errors such as #REF! or #VALUE!. Use IFERROR when any error should show the fallback, and IFNA when only a missing lookup should.

To ignore all errors in Excel, select the cells, click the warning icon, and choose “Ignore Error”. This hides the green triangle in the corner of the cell. It does not fix the formula. The error checking button under Formulas, then Error Checking, walks through the errors in a sheet one by one and explains each. The “trace error” button shows which cells feed into the error, which is the fastest way to find a wrong reference in a long formula.

To find errors in Excel, press Ctrl + G, click Special, then Formulas, then Errors. Excel selects every cell with an error value. To count errors in a range, use =SUMPRODUCT(–ISERROR(range)).

Circular References, Compile Errors, and Other Excel Errors

Circular reference error in Excel. A formula refers to its own cell, directly or through a chain of other formulas. Excel shows a warning and the status bar names the cell. Break the chain by changing one formula in the loop to reference a different cell.

Compile error in hidden module in Excel. This appears when a macro cannot compile, usually because a library is missing or the file was made in a different version of Excel. The fix is to open the Visual Basic Editor, check the references under Tools, then References, and remove or repair the missing one.

Excel error 1004. This is a generic runtime error in macros, and it usually means the macro tried to do something the sheet does not allow, such as writing to a protected cell. Check the line the error names and the sheet protection.

Cannot run the macro error in Excel. The macro security settings block the macro, or the macro is in a file that Excel does not trust. Check the macro settings under File, then Options, then Trust Center, and check that the file is not blocked.

Errors were detected while saving in Excel. The file is damaged or the disk is full. Save a copy under a new name, check the disk space, and if the file still fails, open it with the “Open and Repair” option.

Fixed objects will move error in Excel. This appears when objects such as pictures or shapes are set to move with cells and the sheet layout changes. Change the object properties to “Don’t move or size with cells” if the objects should stay put.

Clipboard error in Excel. The clipboard is busy or the copied range is too large. Close other programs that use the clipboard, copy a smaller range, and retry.

OLE action error in Excel. The OLE action error appears when Excel cannot talk to another program, such as Word or Outlook, during an action like pasting or mailing. Close the other program and retry, or restart both programs.

Word found unreadable content error. This is a Word error, not an Excel error, but it appears in the same workflow. It means the document is damaged. Open it with “Open and Repair”, or open a backup copy.

Outlook Errors: 657RX, 7ITA9, and Send/Receive Failures

Outlook errors are the largest secondary family on this page, and they cluster around send/receive failures and account sign-in.

Outlook error 657RX and 657RX Teams error. The 657RX error appears in Outlook and Teams when the account cannot be verified or the service cannot be reached. The fix is to sign out of the account, sign back in, and check the internet connection. If the error appears in Teams as well, the account or the Microsoft 365 service is the cause, not the Outlook app.

Outlook error 7ITA9. This is a sign-in or sync error in Outlook. The fix is to remove the account from Outlook and add it again, which refreshes the authentication tokens. Before removing the account, make sure mail is synced to the server so nothing is lost.

Outlook send/receive errors. A send/receive error in Outlook usually means the mail server could not be reached or the account settings are wrong. Check the internet connection, check the account settings, and check whether the mailbox is full. The error “synchronizing subscribed folders” in Outlook means a folder cannot be synced, usually because it was deleted on the server. Unsubscribe from the folder or recreate it.

Tenant access blocked error in Outlook. This means the organisation blocks access to the tenant, usually because of a conditional access policy. The fix is on the admin side: the admin has to allow the device or the location.

Outlook error 440. This is a sign-in error that appears when the authentication token expires. Sign out and sign back in.

Outlook too many objects opened error. This appears when Outlook has too many items open at once. Close some windows and restart Outlook.

An office workspace with a laptop
Outlook, OneDrive, and Teams share one account, so a sign-in problem often hits all three at once. Photo via Unsplash.

OneDrive, SharePoint, and Teams Errors

OneDrive errors and OneDrive sync errors. A OneDrive error usually means a file cannot be synced, because the file name is too long, the file is open in another program, or the storage is full. The Personal Vault error in OneDrive appears when the vault cannot be unlocked, usually because of a sign-in problem. Sign out of OneDrive, sign back in, and check that the vault is set up with the right account.

SharePoint errors. These are usually permission or sync errors. Check that you have access to the site, and check the OneDrive sync client if the files are synced locally.

Microsoft Teams errors and Teams error. A Teams error usually means the app cannot sign in or cannot reach the service. Sign out, clear the Teams cache, and sign back in. If the error is the 657RX error, the fix is the same as in Outlook: re-authenticate the account.

A laptop used for learning and spreadsheets
Error checking in Excel walks through the errors in a sheet one by one and explains each. Photo via Unsplash.

Error Bars, Standard Errors, and the Other Meanings of “Error”

Not every mapped keyword on this page is a software error. “How to add error bars in Excel” and “error bar Excel” are about charts: error bars show the uncertainty in a chart value, and you add them from Chart Design, then Add Chart Element, then Error Bars. “Standard errors in Excel” and “errore standard excel” are about the statistical standard error, which you calculate with =STDEV(range)/SQRT(COUNT(range)). “Word error rate” is a speech recognition measure, not a Word error. “Another word for errors” and “another word for error” are thesaurus searches. These are included here so the page answers the searches mapped to it, but they are not faults to fix.

The Reinhart Rogoff Excel error is a famous historical case: a spreadsheet error in a 2010 economics paper affected its results and the austerity debate that followed. It is a reminder that a wrong formula can matter far beyond the sheet, and that checking formulas is worth the time.

A calculator on a desk
Standard error is a statistical measure, not a fault: it is the standard deviation divided by the square root of the count. Photo via Unsplash.

Video: #SPILL! Error in Excel: What It Means and 4 Fixes

The video below walks through four #SPILL! causes with a worked example: a blocked spill range, merged cells, a formula inside an Excel table, and a whole-column reference. It also covers how Google Sheets shows the same problem as #REF!.

#SPILL! Error in Excel: What It Means and 4 Fixes

Frequently Asked Questions

What does a formula parse error mean in Google Sheets?

It means Google Sheets cannot interpret your formula. The usual causes are a misspelled function, a missing parenthesis, a wrong separator for your locale, or a missing quote mark. Check the formula character by character, starting with the function name.

What is a #SPILL! error in Excel?

It means a formula returned several results but Excel cannot place them in the neighbouring cells. The spill range is blocked, merged, inside a table, or runs past the edge of the sheet. Click the error cell, choose “Select Obstructing Cells”, and clear what is in the way.

How do I fix a #VALUE! error in Excel?

A #VALUE! error means the formula received the wrong type of value, such as text where a number was expected. Check the referenced cells for text, hidden spaces, or numbers stored as text, and convert them.

What is the difference between IFERROR and IFNA?

IFERROR catches every error and shows a fallback value. IFNA catches only #N/A, so it does not hide real errors such as #REF! or #VALUE!. Use IFNA for lookups that may legitimately find no match.

How do I fix Outlook error 657RX?

Sign out of the account, sign back in, and check the internet connection. If the error also appears in Teams, the account or the Microsoft 365 service is the cause, not the Outlook app.

What is a circular reference error in Excel?

It means a formula refers to its own cell, directly or through other formulas. Excel names the cell in the status bar. Break the chain by changing one formula in the loop.

How do I ignore all errors in Excel?

Select the cells, click the warning icon, and choose “Ignore Error”. This hides the green triangle but does not fix the formula. Use IFERROR or IFNA to handle errors properly.

Does Google Sheets have a #SPILL! error?

No. Google Sheets shows the same problem as #REF!, with the message that the array result was not expanded because it would overwrite data. The fix is the same: clear the cells in the way.

Sources

8

More Errors guides

Tom Becker

Written by

Tom Becker Error Codes Writer

Tom's byline covers Windows, browser and HTTP error codes. Fixes are taken from Microsoft, browser-vendor and web-standards documentation and are ordered from quickest to most drastic. Each guide names the operating system or browser version its steps apply to.

How our articles are researched, reviewed and updated