Sheet Clinic

Formula parse error in Google Sheets: 6 causes and fixes

Formula parse error means Sheets cannot read the formula text. Fix curly quotes, a missing comma or quote, 1,5 for 1.5, or an unquoted tab name.

Sheet Clinic editorsPublished
D4=B4*C4*1,5

Before Broken tab

ABCDE
1NameHoursRateResultCause
2Emily3818#ERROR!Curly quotes
3Jacob4420#ERROR!Missing comma
4Olivia4117.5#ERROR!Comma as decimal point
5Michael3522#ERROR!Missing quote
6Sarah4019#ERROR!Tab name not in quotes
7David4521=A7&" worked "&B7&& at the end

What changed

  1. D2:D6 retyped
  2. D7 finished with &" hours"

After Fixed tab

ABCDE
1NameHoursRateResultCause
2Emily3818RegularCurly quotes
3Jacob4420OvertimeMissing comma
4Olivia4117.51076.25Comma as decimal point
5Michael3522RegularMissing quote
6Sarah40191Tab name not in quotes
7David4521David worked 45 hours& at the end
Figure 1. Six formulas over the same six rows. Five were saved and show #ERROR!, and one was never accepted as a formula at all.

Formula parse error. That one line is all the red box says, and the cell shows #ERROR!. It means Sheets could not read the formula as a formula, so it stopped before looking at any cell, and checking the numbers in the cells won't turn anything up. The repair is in the typed characters of the formula: retype curly quotes as straight quotes, put back a missing comma or closing quote, write decimals with a period, wrap a tab name that contains a space in single quotes, and finish a formula that stops on an operator such as &.

Some slips never reach the cell. Sheets refuses the formula and opens a box titled There was a problem. With one closing parenthesis too many, the box reads: It looks like your formula is missing one or more open parentheses. If you don't want to enter a formula, begin your text with an apostrophe ('). Delete the closing parenthesis that has no partner. A formula that ends on & gets the same box with a different first sentence, covered further down.

The take-home sheet has each of those slips. It is a small payroll log for six employees, with names in column A, this week's hours in B and the hourly rate in C, and every formula in D2:D7 went in with something Sheets could not read. Take D4, the cell in the formula line above. It is meant to be Olivia's overtime pay, 41 hours times her 17.5 rate times 1.5, which comes to 1076.25. Her hours are fine and so is her rate. The formula is =B4*C4*1,5, and the comma in 1,5 was meant as a decimal point. Typed as =B4*C4*1.5, it returns 1076.25.

We typed every formula on the Broken tab by hand into a sheet set to the United States locale, and Sheets did not treat them alike. Some it saved and marked with #ERROR!, one it refused to save, and two it quietly rewrote into formulas that work, one of them wrongly.

Eight mistyped formulas, what Sheets did on Enter, and the corrected version of each

Each formula below went into an empty cell and got the Enter key. In each row the first line is what was typed, the second line is the version that works, and the sentence under them is what happened in the next second. Find the row that looks like your formula and compare its two lines character by character.

Typed, then corrected, then what Sheets did after Enter
=IF(B2>40, “Overtime”, “Regular”)
=IF(B2>40, "Overtime", "Regular")
Saved it as typed. The cell shows #ERROR!
=IF(B3>40 "Overtime", "Regular")
=IF(B3>40, "Overtime", "Regular")
Saved it as typed. The cell shows #ERROR!
=B4*C4*1,5
=B4*C4*1.5
Saved it as typed. The cell shows #ERROR!
=IF(B5>40, "Overtime, "Regular")
=IF(B5>40, "Overtime", "Regular")
Added a quote and a parenthesis, then saved it. The cell shows #ERROR!
=B6-Last week!B6
=B6-'Last week'!B6
Saved it as typed. The cell shows #ERROR!
=A7&" worked "&B7&
=A7&" worked "&B7&" hours"
Opened a dialog and saved nothing new in the cell
=ROUND(SUM(B2:B7, 2)
=ROUND(SUM(B2:B7), 2)
Added one parenthesis at the end. The cell shows 245 and no error
=IF(B3>40; "Overtime"; "Regular")
Swapped each semicolon for a comma. The cell shows Overtime, so nothing needs correcting

The first five rows are the ones the red box talks about. Sheets keeps the broken text in the cell, so you can open it later and fix it in place. The & row is different. Sheets won't accept that one at all, and nothing gets written to the cell until the formula is fixed or turned into plain text.

The last two rows never show an error. In the semicolon row the rewrite was exactly what was meant. In the ROUND row it was not, and the total there is off by 2.

None of the eight came from another program. A formula imported from an Excel file can show the same message when it points at a second workbook, which is covered in what breaks when an Excel file is opened in Sheets.

Fixing curly quotes, a missing comma, and 1,5 typed for 1.5

Emily's row asks a plain question. If her hours in B2 are over 40, say Overtime, otherwise Regular. The formula in D2 is =IF(B2>40, “Overtime”, “Regular”).

Those quote marks are the curly kind. Sheets only accepts the straight double quote, the one on the key next to Enter, as the start and end of a piece of text. The curly pair is just two more characters to it, which leaves Overtime as a bare word in the middle of the formula.

In the formula bar, text between straight quotes turns green. In D2 the two words stayed gray. Delete each curly mark, type the quote again from the keyboard, and Emily's 38 hours return Regular.

Google Sheets with D2 selected on the Broken tab. The formula bar shows =IF(B2>40, “Overtime”, “Regular”) with gray text, D2 shows #ERROR!, and a box next to it reads Error, Formula parse error.
Figure 2. D2 on the Broken tab. The words inside the curly quotes are gray in the formula bar.

Jacob's row in D3 uses straight quotes and still fails. =IF(B3>40 "Overtime", "Regular") has no comma after B3>40, so the condition runs straight into the text Overtime. Sheets did not add the comma on Enter, the way it adds a missing parenthesis. Put it back and his 44 hours return Overtime.

Olivia's D4 is the one from the top of the page. In this sheet's locale the comma has one job inside a formula, separating arguments, and =B4*C4*1,5 has no function around it for a comma to separate. Writing the number as 1.5 gives the figure the row was meant to show. The locale is set per spreadsheet under File, then Settings, as Google's page on locale and time zone describes, and this copy is set to United States.

InputOlivia, 41 hours at 17.5 in B4:C4
Formula=B4*C4*1.5
Expected1076.25
Sheets returned1076.25 Matches expected
Checked2026-11-11, free personal account

A missing closing quote, and a tab name with a space that needs single quotes

In D5 we left out the closing quote after Overtime and typed =IF(B5>40, "Overtime, "Regular"). On Enter, Sheets closed the open quote at the very end of the formula, then closed the parenthesis, and saved =IF(B5>40, "Overtime, "Regular")"). The quote it added sits in the wrong place, so the formula is still unreadable and the cell shows the same #ERROR!.

When the formula bar ends in a run of quotes and parentheses you did not type, look for the first piece of text that runs into the next comma. Here that is "Overtime, with nothing to close it. With the quote in place and the extra characters at the end removed, Michael's 35 hours return Regular.

Sarah's row compares her hours with the week before. Last week's numbers are on their own tab, called Last week, and D6 reads B6 there. Google's page on referencing data from other sheets says a sheet name that contains spaces or other non-alphanumeric symbols needs single quotes around it. Without them, D6 shows the same red box as D2.

The fixed formula is =B6-'Last week'!B6, and it returns 1, since Sarah worked 40 hours this week and 39 the week before. Tab names with no spaces or symbols, such as Broken or Fixed, don't need them.

The Broken tab with D6 selected. The formula bar shows =B6-Last week!B6, D6 shows #ERROR!, and the box next to it reads Error, Formula parse error.
Figure 3. D6 refers to the Last week tab without single quotes.

A formula ending in & is refused with a There was a problem dialog

David's row should read David worked 45 hours. The formula was typed as =A7&" worked "&B7& and stopped after the last &, with nothing on its right. Pressing Enter did not produce #ERROR!. A box titled There was a problem opened in the middle of the screen with this message.

It looks like your formula has an error. If you don't want to enter a formula, begin your text with an apostrophe (').

Google Sheets with a dialog titled There was a problem. It reads: It looks like your formula has an error. If you don't want to enter a formula, begin your text with an apostrophe ('). The cell behind it holds =A7&" worked "&B7&.
Figure 4. The dialog after Enter on a formula that ends in &.

That is why D7 on the Broken tab holds the formula as text. It starts with the apostrophe the dialog suggests, which was the only way to keep the broken version in a cell. Finish the formula with " hours" and the Fixed tab shows David worked 45 hours.

One extra closing parenthesis gets its own wording. =SUM(B2:B7)) brought up the same box with the missing open parentheses message quoted near the top of this page. In both cases the fix is to the end of the formula, either finishing what the last operator started or removing the parenthesis that has no partner.

A missing parenthesis that Sheets closed in the wrong place, with no error shown

Two rows at the bottom of the Broken tab, under the label Typed one way, stored another, show the opposite problem. Sheets accepted these formulas and changed them on the way in.

D12 was typed as =IF(B3>40; "Overtime"; "Regular"), with semicolons between the arguments. In this US-locale copy, Sheets swapped each semicolon for a comma and returned Overtime for Jacob. So in this sheet, semicolons on their own did not cause the parse error.

D11 is the one to watch. The goal was the total of the six hours, rounded to two places, =ROUND(SUM(B2:B7), 2). The formula was typed one parenthesis short, as =ROUND(SUM(B2:B7, 2). Sheets added the missing parenthesis at the very end and saved =ROUND(SUM(B2:B7, 2)). That moves the 2 inside SUM, where it is counted as one more number to add. The cell shows 245 with no red corner and no note. The Fixed tab, with the parenthesis right after B2:B7, shows 243.

Sheets flags the five saved mistakes with #ERROR! and a red corner. D11 gets neither, so after any formula with nested parentheses, click the cell and read where Sheets put the last one.

The Broken tab with D11 selected. The formula bar shows =ROUND(SUM(B2:B7, 2)) and D11 shows 245.
Figure 5. D11 after Sheets closed the parenthesis. The 2 ended up inside SUM.

When the only missing parenthesis belongs at the very end, as in a single ROUND around a product, the same repair gives the formula you meant. In D11 the parenthesis left out belonged to the inner SUM, and Sheets has no way to tell that from the text.

The Try it yourself tab is a second copy of the Broken tab. Retype D2 through D7 and D11 with the corrected versions from the table near the top, and the tab should match Fixed cell for cell.

Take-home copy. Four tabs: Broken, Fixed, Try it yourself, Last week. It opens as a copy in your own Drive.

Copy the sheet