Formula Errors

Fixing Formula Parse Errors in Google Sheets

Google Sheets shows a formula parse error when it cannot read the structure of a formula, such as its quotes, brackets or separators. Fixes follow.

On this page
  1. Unbalanced parentheses
  2. Quote marks
  3. Separators depend on your locale
  4. Pasted characters
  5. Stray characters
  6. Function-specific syntax
  7. Steps to fix it
  8. When it isn’t a parse error

A formula parse error in Google Sheets means Sheets couldn’t read the formula at all. The problem is the way the formula is written, not the data it uses. The cell usually shows #ERROR! with the message “Formula parse error.” Fixing it means correcting the syntax.

Unbalanced parentheses

Every opening parenthesis needs a matching closing one. =SUM(A2:A10 is missing its closing bracket, so Sheets can’t read it. Count the brackets in longer formulas. If a formula is complex, move parts of it into separate cells and test each piece.

Quote marks

  • Missing quotes. Text needs a matching pair of straight quotation marks, such as ="Total". A missing closing quote breaks the formula.
  • Smart quotes. Quotes copied from a document or web page are often curly. Sheets reads them as ordinary characters, not as quotation marks, so replace them with straight quotes.
  • Quotes inside text. To include a quotation mark inside text, double it, as in ="He said ""hi""".

Separators depend on your locale

Google Sheets separates function arguments with commas in some locales and with semicolons in others. A formula copied from a tutorial written for a different locale can fail with a parse error. To check the setting, open File > Settings and look at the locale. Changing the locale also changes how numbers and dates are read, so change it with care.

Pasted characters

Dashes, minus signs and spaces copied from a website or document can look correct but aren’t. Non-breaking spaces and special dash characters can trigger the error. Retype the operator or the formula instead of pasting it.

Stray characters

A leftover comma, an extra letter, or a stray symbol at the end of a formula is enough to break it. Read the formula from the end to find characters that don’t belong.

Function-specific syntax

Some functions have their own mini-language. QUERY takes its query as text, and a mistake inside that text, such as a missing quotation mark or a wrong column letter, causes its own error. The syntax is easier to follow with the examples in query function google sheets examples.

Steps to fix it

  1. Retype the formula in a new cell, and check each opening and closing bracket and each pair of quotation marks.
  2. Check the locale if the formula uses commas where your example uses semicolons, or the other way round.
  3. When you type a function name, use the autocomplete hint to check the argument order.
  4. Build the formula in parts. Test the inside first, then add the outside.
  5. Compare with a formula you know works, and look for differences.

When it isn’t a parse error

IMPORTRANGE can show an error until you give it access to the other spreadsheet. That’s a different problem from a parse error. The setup steps are in importrange google sheets how to use.

The complete guide to formula errors

Excel Formula Error Messages Explained
Read the guide

Keep exploring

Guides from other topics

All topics →

How to Look Up Data in Excel

How lookups work in Excel, with VLOOKUP, XLOOKUP and INDEX with MATCH, how to set up your data, and how to choose the right function for the job.

Lookups 3 min read