Skip to content

Array literal { } parse error in Google Sheets (comma vs backslash, locale)

Updated

{A2,B2} that worked on a US sheet is #ERROR! after File > Settings > Locale. The tooltip says Formula parse error. The braces are fine. The comma inside them is not.

This page is the separators inside { }. Function arguments (VLOOKUP commas vs semicolons) are locale parse error. Do not apply that fix inside an array literal.

  1. Open a new blank spreadsheet. File > Settings > Locale → Germany (or Deutsch / Germany). Reload the spreadsheet so the locale actually applies.
File menu open to Settings. Settings dialog in English. Locale dropdown shows Germany selected. Time zone is Berlin. Always use English function names is checked.
File menu open to Settings. Settings dialog in English. Locale dropdown shows Germany selected. Time zone is Berlin. Always use English function names is checked.
  1. In A2 type 101. B2 Widget.
  2. In D2 paste exactly ={A2,B2} with a comma inside the braces. The cell shows #ERROR!. The tooltip is Formula parse error.
D2 selected. Formula bar shows ={A2,B2}. D2 is #ERROR! with tooltip Formula parse error. A2 is 101. B2 is Widget.
D2 selected. Formula bar shows ={A2,B2}. D2 is #ERROR! with tooltip Formula parse error. A2 is 101. B2 is Widget.

Leave D2 as the broken formula.

Wrong semicolon. In E2 enter ={A2;B2} with a semicolon. The cell spills 101 then Widget down a column. That parsed. It is not the same shape as {A2,B2} on a US sheet (two columns, one row).

E2 selected. Formula bar shows ={A2;B2}. E2 is 101 and E3 is Widget — a one-column spill. D2 is still #ERROR!.
E2 selected. Formula bar shows ={A2;B2}. E2 is 101 and E3 is Widget — a one-column spill. D2 is still #ERROR!.
  • Inside { }, the column separator follows this spreadsheet’s locale. US and UK use a comma between columns. Locales that use a comma as the decimal mark (Germany, France, Brazil) use a backslash (\) between columns.
  • The row separator is a semicolon in both groups: {A2;A3} stacks two rows. That is why E2 parsed and D2 did not.
  • Changing locale does not rewrite formulas. {A2,B2} copied from a US tutorial, or left over after you switched this file to Germany, is still a comma. Sheets now reads that comma as a decimal mark. Parse error.
  • Replacing the comma with a semicolon copies the VLOOKUP argument fix. Inside braces that changes columns into rows.

This is not ARRAYFORMULA printing 0 on empty rows. See empty-row zeros. The formula here never ran.

This is not an array that would overwrite a cell. That is #REF!. See SORT / UNIQUE spill.

Leave D2 as the broken formula so the parse error stays on the sheet.

In F2 enter ={A2\B2} with a backslash between the two cells. The spill is 101 in F2 and Widget in G2 — one row, two columns.

F2 selected. Formula bar shows ={A2\B2}. F2 is 101 and G2 is Widget — a two-column spill. D2 is still #ERROR!.
F2 selected. Formula bar shows ={A2\B2}. F2 is 101 and G2 is Widget — a two-column spill. D2 is still #ERROR!.

A 2×2 uses both separators. On this German sheet: ={1\2;3\4}. On a US sheet that same grid is ={1,2;3,4}.

Do not change your Google account language. Do not wrap D2 in IFERROR. The only settings change for the recreate is this spreadsheet: File > Settings > Locale, then reload. For a sheet you will keep, type the separators this locale expects.