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
- Retype the formula in a new cell, and check each opening and closing bracket and each pair of quotation marks.
- Check the locale if the formula uses commas where your example uses semicolons, or the other way round.
- When you type a function name, use the autocomplete hint to check the argument order.
- Build the formula in parts. Test the inside first, then add the outside.
- 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.