That Google Sheets Comma May Be a Decimal Mark

A tutorial formula can throw a parse error because the file locale uses a comma as a decimal mark. Semicolons separate arguments in that case, and a backslash starts a new column inside an array.

Overview

You paste =IF(A2>=10, "Reorder", "OK") into Google Sheets, and the cell answers with a formula parse error. The test is fine. In this file, the comma may not be a separator at all. It may be the decimal mark, the same character you would use to write 10,5 instead of 10.5.

Google Sheets stores that choice on the file, under File, then Settings, then Locale. A tutorial written for a United States file will use commas between arguments. A file whose locale uses a decimal comma expects semicolons there, and a backslash where an array needs a new column. Check the locale before you rebuild the logic. The steps below are for a computer. Google’s own help for this setting starts with “On your computer,” and the phone apps do not show the same File, then Settings path.

What the locale changes, and what it does not

Google’s help page says you can change a spreadsheet’s locale, time zone, calculation settings, and function language. A change applies to the entire spreadsheet. Everyone who opens the file sees it, wherever they are sitting.

The official description of locale and time zone is about default currency, date, and number formatting. Changing the locale does not change your Google Account language. Function names are a second switch, covered below. A community guide by Google Docs product expert Mr Shane goes further on punctuation: the file locale determines the formula argument separator, which can be a comma, a semicolon, or a backslash, and it also sets the thousands mark and the decimal mark. That guide is a community document, not the short help page. Use it for the separator, and use the help page for the menu and for the warning that the whole file changes.

You do not have to guess the country from memory. Open File, then Settings, and read the Locale name. Then type a number in a blank cell. If 1.5 is accepted as one and a half, the file is using a decimal point. If you have to type 1,5 to get that number, the file is using a decimal comma. Finland, Norway, and Sweden are called out in the community guide as using a space for thousands and a comma for decimals. Denmark and Italy are called out as using a dot for thousands and a comma for decimals. The country name in Settings is the authority for the file in front of you.

The same reorder check in two locales

Here is one small stock check. Column A holds the quantity on hand. You want the word Reorder when the quantity is at least 10, and OK otherwise. Nothing below was captured from a private sheet. The punctuation follows Google’s published syntax.

In a United States locale, decimal points and comma separators, the formula is:

=IF(A2>=10, "Reorder", "OK")

Google’s German function list names that function WENN and separates the arguments with semicolons: WENN(Wahrheitswert; Wert_falls_wahr; Wert_falls_falsch). In a Germany locale, with German function names turned on, the same check is:

=WENN(A2>=10; "Reorder"; "OK")

The comparison did not change. The comma became a semicolon, and IF became WENN. If your file still shows English function names, keep IF and change only the separators:

=IF(A2>=10; "Reorder"; "OK")

Google’s German help page for this function shows that mixed form. The examples are written as IF, with semicolons. That is what you get when the locale wants semicolons and the “Always use English function names” box is still checked.

Illustration comparing an English Google Sheets IF formula that uses commas with a German WENN formula that uses semicolons. Not a screenshot.
Illustration of the punctuation difference. Not a screenshot of Google Sheets.

Arrays add one more mark. Google’s array help says a comma starts a new column and a semicolon starts a new row, as in ={1, 2} and ={1; 2}. The same page says that in countries which use commas as decimal separators, for example €1,00, those column commas are replaced by backslashes. A label and a number on one row become:

={"Pen" \ 12}

A semicolon still means “next row” in that array. In a comma-decimal file, the semicolon is doing two jobs: next argument inside WENN or IF, and next row inside curly braces. That is why a pasted tutorial can look broken in the middle. Sheets stops coloring the range as a range, and the parse error appears at the first comma it cannot treat as a separator.

A decimal inside the formula has to match the locale too. Google’s German list writes ROUND as RUNDEN(Wert; Stellen). One and one tenth, rounded to two places, is =ROUND(A2*1.1, 2) where the decimal mark is a point. Where the decimal mark is a comma, and the function name is German, it is =RUNDEN(A2*1,1; 2). The 1,1 is the number. The semicolon after it starts the next argument. If you leave the point in 1.1 inside a comma-decimal file, Sheets may split it in a way you did not mean.

Function names are a second switch

Locale does not rename IF by itself. Google’s help says you can show function names in English or in one of 21 other languages, including German, French, Spanish, Portuguese for Portugal and for Brazil, and Hindi is not on that list. The steps are on a computer:

  1. Set a non-English preferred language in the Google Account if you want local names at all.
  2. Open the spreadsheet, then File, then Settings.
  3. Under Display language, uncheck “Always use English function names” to see the local names. Leave it checked if you want IF, SUM, and ROUND even in a German interface.
  4. Save settings.

A #NAME? error usually means the function word is not valid for that switch. A parse error, with the range losing its color as soon as you type a comma, usually means the separator. Fix the one the error is actually pointing at. Translating every word when only the comma was wrong is the slow way around this file.

Do not flip a shared file just to match a tutorial

You can set the locale to United States, paste the tutorial, and watch the comma formula calculate. Google’s help says that also changes the default currency, date, and number formats for the whole spreadsheet, for every person on it. On a file other people already use, translate the separators instead. If you need to experiment, use File, then Make a copy, and change the locale on the copy.

If you do change the locale, or the time zone that sits next to it, look at one date, one currency amount, and one formula you already trusted before you close the dialog’s result. The help page says those settings change the default formats. If a date’s displayed day moved and you did not mean to change the time zone, set the time zone back and look again. This is a different failure from a part number such as 3/4 turning into a date, which is covered in what to do when Sheets has already converted the text. A separator error is still sitting in the formula bar. A converted part number is not.

How to tell the separator is right

Use a blank cell, not the reorder formula, so a bad quantity cannot confuse the test.

  1. If function names are English, type =SUM(1, 2) and press Enter.
  2. If you get a parse error, try =SUM(1; 2).
  3. If the names are German, Google’s list says the matching form is =SUMME(1; 2).
  4. If both comma and semicolon fail, try a backslash between the arguments. The community guide lists a backslash as a third argument separator in some locales. In German documentation, the argument mark is the semicolon. The backslash is the one Google’s array page assigns to a new column when the decimal mark is a comma.

Success is the number 3, not a green triangle and not a parse error. Then put the reorder formula back, with the same separator that produced 3. The word Reorder or OK should appear, and Sheets should color A2 as a reference while you are still in the formula bar.

If the cell shows 3 but the reorder formula still fails, look for a straight double quote that became a curly quote when you pasted from a web page, or for a missing parenthesis. Those are ordinary syntax problems, and the locale will not fix them. If the result is a number when you wanted a word, you are in the wrong branch of IF, which is a logic issue, not a separator issue. Duplicate order IDs are yet another check, and they have their own steps in flagging duplicate orders without deleting a row.

Conclusion

Before you rewrite a formula that a tutorial swears is correct, open File, then Settings, and read the locale. Match the decimal mark, the argument separator, and, if you turned it on, the local function name. Prove the separator with a SUM or SUMME that returns 3, then reuse that separator in the real formula. Leave a shared file’s locale alone unless everyone on the file wants the currency and date formats to change with it.

Syed Hussaini
Syed Hussaini

With over 20 years of experience, I specialize in customer support, website development (using platforms like WordPress, Joomla, and Google Sites), IT operations, and digital asset management. I've managed teams, trained staff, and created Knowledgebase and Playbook articles. I’m known for my high productivity, independence, and strong communication skills, and I have successfully worked across diverse regions, including APAC, EMEA, Eastern time and AMER.

Articles: 216

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Discover more from My Knowledge Buddy

Subscribe now to keep reading and get access to the full archive.

Continue reading