LightClub.
Menu
Explore the blog

Google Sheets Formula Parse Error: Commas, Semicolons and Locale

A formula can work in one spreadsheet but fail in another. Learn which separators to use without accidentally changing decimal numbers or shared file settings.

lightclub_owner5 min read
US and German SUM formulas for diagnosing a Google Sheets formula parse error, with argument and decimal separators labeled.

A Google Sheets formula parse error can appear when a formula uses separators from a different spreadsheet locale. Check the file’s settings before changing commas, semicolons or decimal numbers.

Example verification: These are synthetic examples with expected results. The steps have been reviewed against documentation but not yet tested in Google Sheets.

A quick test can identify the difference without changing the entire spreadsheet.

Step 1: Try a two-argument formula

In an empty cell, try this formula:

=SUM(10,20)

For a US-locale spreadsheet using English function names, the expected result is 30. In a locale that interprets the comma as a decimal separator, the same expression can instead represent a single decimal number. So check the result, not just whether an error appears.

Now try:

=SUM(10;20)

For a semicolon-argument locale, such as Germany, the expected result is 30. A formula containing only one argument, such as =SUM(A1:A5), is not useful for diagnosing argument separators.

You can also compare these IF formulas. With A2 set to 75, the expected result is Pass:

US-style:

=IF(A2>=50,"Pass","Retry")

Semicolon-style:

=IF(A2>=50;"Pass";"Retry")

Use the version that matches the actual spreadsheet locale and function language.

Step 2: Find the spreadsheet locale

In the desktop browser, open File > Settings. Look for the Locale setting on the General tab [1]. It belongs to the spreadsheet, not just to the browser or the device you are using. Two files opened on the same computer may therefore require different formula separators.

Here are two illustrative configurations using English function names:

SettingUnited StatesGermany
Argument separatorcomma (,)semicolon (;)
Decimal separatordot (.)comma (,)
Formula adding two decimal numbers=SUM(1.5,2.5)=SUM(1,5;2,5)
Expected numeric result44

Google’s German-language SUM reference illustrates semicolon-separated arguments [2]. These examples assume English function names remain enabled. Verify the configuration of your own file before adapting formulas.

Step 3: Change the formula before changing the locale

If the sheet belongs to an existing project or is shared with colleagues, adapting the formula is usually the safer choice. A spreadsheet-wide locale change also affects default currency, date and numeric formatting [1]. It is not simply a switch for formula punctuation.

Avoid replacing every comma in a formula with a semicolon. For example, the comma inside the quoted text in =IF(A2=1,”Yes, continue”,”Stop”) is part of the displayed message. It must remain a comma. Change only the argument separators, and adapt numeric literals separately when necessary. Array-literal syntax may need additional changes; do not assume the same replacement rule works inside braces.

If you do decide to change a file’s locale, work on a copy first and compare calculations, displayed dates, and currency formats with the original. Do not change the time zone just to fix formula punctuation.

Step 4: Check the function language too

The file may use localized function names rather than English names. The settings include an option to use English function names, where available [1]. Locale and function language are related practical considerations, but they are not the same setting.

Keep the intended function language when fixing a formula, especially if other users maintain the spreadsheet.

Other Causes of a Google Sheets Formula Parse Error

Check these common syntax problems:

  • Missing or extra parentheses.
  • Unclosed quotation marks, or curly quotation marks copied from formatted text.
  • A mistyped function name or reference.
  • A separator in the wrong position within a nested function.

Try a minimal valid formula and add parts back one at a time. A formula that parses but returns #N/A, #REF! or #VALUE! requires a different diagnosis. Changing locale is not a general solution to those errors.

Rebuild a copied formula from the inside out

Work in an unused cell on a copy of the sheet. First type the simplest function with two small numbers. If its result agrees with the expected total, use the same argument separator in the copied formula. Next type just the inner function from the original expression and check its result. Only then put it back inside the outer function. Google’s function help in the editor shows the arguments for the function you are entering. [3]

For example, place 10 and 20 in A2 and A3. Start with =SUM(A2:A3), which uses a single range and should return 30. Next try the appropriate two-argument version from the first step. Finally, reuse the range inside an IF test that returns Pass when the total crosses a threshold you already know. If only that last step fails, inspect the separator between the IF arguments, the quotation marks and the final parentheses. This isolates a Google Sheets formula parse error without changing the original formula or file settings.

A2:A3   10 and 20. SUM(A2:A3)   30. Add the outer function last.
Start with one range, confirm its value and then test punctuation.

Separate syntax problems from wrong answers

A valid formula can still calculate the wrong amount. In a decimal-comma locale, inspect whether the argument you meant as two numbers was interpreted as one decimal literal. In text arguments, leave the commas in the message as written. Check cell references by selecting the intended range while editing. If values are easy to calculate by hand, use that result to distinguish a repaired formula from a formula that simply stopped reporting an error.

When a formula works in a new sheet but fails in a shared file, compare the two files’ locale and function-language settings first. Adapt the one expression on a copy and leave the shared file alone if teammates depend on its formatting. When the same expression fails in both files, inspect its smallest failing part. A pasted typographic quote or unbalanced parenthesis can follow the same text across locales. [1, 3]

Make one edit at a time and record the smallest expression that fails. That gives a colleague a reproducible question with harmless inputs instead of requiring access to the full spreadsheet. For a locale issue, include the two-number test and the result you expect. For a reference or value error after parsing succeeds, include the input range and identify which argument now receives the unexpected value.

Parse error   Inspect syntax. Wrong total  Check literals. Value error   Inspect inputs.
Use the symptom to choose the next check.

Sources

[1] Google Docs Editors Help, Spreadsheet location and calculation settings: https://support.google.com/docs/answer/58515?hl=en

[2] Google Docs Editors Help, SUM (German-language reference): https://support.google.com/docs/answer/3093669?hl=de

[3] Google Docs Editors Help, Add formulas and functions: https://support.google.com/docs/answer/46977?hl=en

Keep your curiosity switched on.

Explore more practical guides and ideas from LightClub.

About LightClub

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading.

All articles