Google Sheets Formula Parse Error: Fixes and Copy-Ready Examples
Fix Formula parse error in Google Sheets. Learn comma vs semicolon locales, broken quotes, missing brackets, array literals and QUERY/FILTER syntax with clear examples.
Contents
- Fix a Formula Parse Error in 60 seconds
- Common causes: broken formula → corrected formula
- 1. Commas vs semicolons: check the file locale
- 2. Fix smart quotes, parentheses and sheet names
- 3. FILTER and QUERY: two different places formulas fail
- 4. Array literals: commas, semicolons and backslashes are not interchangeable
- 5. Not every Sheets error is a Formula parse error
- A practical method for fixing long formulas
- Do you need screenshots?
- Frequently asked questions
- Why does the formula work in one spreadsheet but fail in another?
- Should I switch the whole file to United States to make commas work?
- Why does a QUERY formula say it cannot parse the query string?
- Related guide and reliable references
Contents
- Fix a Formula Parse Error in 60 seconds
- Common causes: broken formula → corrected formula
- 1. Commas vs semicolons: check the file locale
- 2. Fix smart quotes, parentheses and sheet names
- 3. FILTER and QUERY: two different places formulas fail
- 4. Array literals: commas, semicolons and backslashes are not interchangeable
- 5. Not every Sheets error is a Formula parse error
- A practical method for fixing long formulas
- Do you need screenshots?
- Frequently asked questions
- Why does the formula work in one spreadsheet but fail in another?
- Should I switch the whole file to United States to make commas work?
- Why does a QUERY formula say it cannot parse the query string?
- Related guide and reliable references

A Google Sheets Formula parse error means Sheets cannot interpret the formula as written. Check the spreadsheet’s argument separator first (comma or semicolon), then look for curly quotes, missing parentheses, an unquoted tab name, or incorrect array punctuation. You usually do not need to change the data or reinstall anything.
Fastest test: In an empty cell, enter =IF(TRUE,4,5). If it returns 4, your sheet uses commas between function arguments. If it fails, try =IF(TRUE;4;5). If that returns 4, your sheet uses semicolons. Use the version your sheet accepts; do not globally replace commas inside decimal values or quoted text. See Google’s spreadsheet locale settings.
Fix a Formula Parse Error in 60 seconds
- Click or hover over the error cell. Confirm the message specifically says
Formula parse error(often shown with#ERROR!). - Try the simple
IFseparator test above in a blank cell. Then check File → Settings → General → Locale on a computer. - Replace smart quotes
“ ”with regular straight quotes"; close every opening parenthesis and quotation mark. - If referencing a tab with spaces, use
=SUM('Sales Data'!B2:B8), not an unquoted sheet name. - Press Enter. If the message changes to #NAME?, #REF!, #VALUE!, or #N/A, the formula may now be readable; investigate that different error instead.
Common causes: broken formula → corrected formula
| Cause | Example that may fail | Correct syntax / action |
|---|---|---|
| Wrong function separator (semicolon locale) | =IF(A2>100,"High","Low") | =IF(A2>100;"High";"Low") |
| Curly quotes copied from a page | =IF(A2>100,“High”,“Low”) | =IF(A2>100,"High","Low") |
| Unclosed parenthesis | =SUM(A2:A9 | =SUM(A2:A9) |
| Tab name contains a space | =SUM(Sales Data!B2:B8) | =SUM('Sales Data'!B2:B8) |
| Array column separator (comma-decimal locale) | ={A2,B2} | ={A2\B2} |
| QUERY text not in quotes | =QUERY(A1:B10,select A,1) | =QUERY(A1:B10,"select A",1) |
Important: These are syntax examples, not a promise that every incorrectly typed formula triggers the same message. Sheets can autocorrect some entries; a valid formula can also produce a different error during evaluation. The examples assume referenced tabs and cells exist.
1. Commas vs semicolons: check the file locale
In Google Sheets on a computer, open File → Settings → General and inspect Locale. Google states that locale changes default number, currency, and date formats for everyone using the file. For sheets configured to use semicolons between arguments, converting only the argument separators is often safer than changing the whole spreadsheet’s locale.
For example, both of the following mean “return High when A2 is greater than 100; otherwise Low,” but each is for a different separator convention. Official syntax examples use commas: Google IF documentation.
Comma-separator version (such as US locale)
=IF(A2>100,"High","Low")Semicolon-separator version (commonly used with comma-decimal locales)
=IF(A2>100;"High";"Low")Note: Changing the Google Account language does not necessarily change an individual spreadsheet’s locale. Google Sheets can also display localized function names, a separate setting. Google settings guide.
2. Fix smart quotes, parentheses and sheet names
Text arguments need straight double quotes ", not curly quotation marks “ and ” copied from a word processor. Count opening and closing ( / ); for nested formulas, begin with the innermost function. When a sheet tab contains spaces, surround the tab name with single quotes.
Reference a tab named Sales Data:
=SUM('Sales Data'!B2:B8)Nested formula that uses balanced parentheses (comma locale):
=IF(A2>100,SUM(B2:B8),0)3. FILTER and QUERY: two different places formulas fail
FILTER syntax: FILTER(range, condition1, ...) uses the separator appropriate to your locale. Example: =FILTER(A2:C20,C2:C20="Paid") returns rows whose column C says “Paid”. If the filter finds no matches, Google documents a #N/A result—not a formula parse error. FILTER function reference.
FILTER in a comma-separator sheet:
=FILTER(A2:C20,C2:C20="Paid")FILTER in a semicolon-separator sheet:
=FILTER(A2:C20;C2:C20="Paid")QUERY has two layers: The overall function needs correct argument separators, while the query statement must be quoted as text. If QUERY itself says “Unable to parse query string,” you are dealing with its query language; that is not necessarily the same as a Google Sheets Formula parse error. QUERY function reference.
Valid QUERY structure in a comma-separator sheet:
=QUERY(A1:B10,"select A where B > 10",1)The query above expects numbers in column B and one header row. If the range or data types differ, the query may be readable but return another error or unexpected results.
4. Array literals: commas, semicolons and backslashes are not interchangeable
Curly braces { } create an inline array. In a locale using commas as decimal separators, Google instructs you to use a backslash for a horizontal (column) separator instead of a comma. A semicolon inside an array separates rows, not columns. Google’s guide to arrays.
Two columns side by side (US-style locale):
={1,2}Two columns side by side (comma-decimal locale):
={1\2}Two rows, one column (both examples use a semicolon inside the array):
={1;2}If you replace an array comma with a semicolon when you wanted two columns, you may create the wrong shape even when the formula parses. A formula that parses but cannot expand because occupied cells block the result is a separate issue, commonly reported as #REF!.
5. Not every Sheets error is a Formula parse error
#ERROR!+ “Formula parse error”: Check formula punctuation, quoting and locale separators first.#NAME?: A function or name cannot be recognized—for example, a misspelled function or missing text quotes.#REF!: Check deleted/invalid references or array output blocked by other cells; do not randomly change commas.#VALUE!: Inspect expected data types or, for QUERY, the query-string message.#N/A: Often means no matching result, such as a FILTER with no matched rows.
Wrapping an invalid expression in IFERROR(...) does not fix its grammar. Resolve a parse error before deciding whether error handling is appropriate. Use the official Google Sheets function list to check syntax and function names.
A practical method for fixing long formulas
- Duplicate the sheet or work in an unused cell before changing an important report.
- Check whether basic components work separately. For example, evaluate =SUM(B2:B8), then =A2>100, before combining them.
- Rebuild one function layer at a time. After each step, confirm the result or the exact new error message.
- Check quotes and parentheses from the inside outward. Keep the correct locale separator throughout function arguments.
- If you copied a formula from a website, paste it as plain text into a note and retype quotation marks and punctuation manually.
Do you need screenshots?
For the actual location of the Locale control, use Google’s current Settings instructions. For genuine user-posted examples, see this Google Sheets locale screenshot and explanation and this genuine “Formula parse error” screenshot. These are third-party screenshots, not screenshots produced or tested for this article; Google’s interface may look different today.
Frequently asked questions
Why does the formula work in one spreadsheet but fail in another?
Different spreadsheet locales can require different separators. Check File → Settings → Locale in both files; do not assume your account display language controls the formula separator.
Should I switch the whole file to United States to make commas work?
Only if the entire file should use US date, number and currency conventions. A locale change affects formatting for all collaborators, so changing argument separators in an individual formula can be the lower-risk fix.
Why does a QUERY formula say it cannot parse the query string?
First check that the query text is inside quotation marks. Then review the query language itself (column references, operators, quote characters and value types). This is a different error stage from Sheets being unable to read the overall formula.
Related guide and reliable references
If your formula returns a number but the percentage looks wrong, read our guide to incorrect percentage calculations or try the Horus Valley percentage calculator. These address arithmetic interpretation rather than formula punctuation.
- Google Docs Editors Help — Locale and calculation settings
- Google Docs Editors Help — IF function
- Google Docs Editors Help — Using arrays
- Google Docs Editors Help — FILTER function
- Google Docs Editors Help — QUERY function
Editorial note: Syntax examples are based on Google’s published documentation and are intended as copy-and-adapt examples. They were not represented as live tests on your Google account. The featured image is an editorial illustration, not a real Google Sheets screenshot.
