What is Google Sheets formula syntax?

Every formula starts with = followed by a function name and arguments in parentheses. Ranges use A1 notation, text sits in quotes, and operators like + and & combine values. Sheets recalculates when inputs change, so syntax errors show as #NAME? or #ERROR! in the cell.

When to use it

Use solid syntax habits when you build models, share workbooks with teammates, or debug imported Excel formulas that behave differently in Sheets.

When to skip it

Skip memorizing every function when the built-in help panel or formula generator can draft the structure. Not every task needs a formula; filters and pivot tables are valid choices.

How it works

  1. 1

    Type = and pick a function from the help dropdown or write the name and opening parenthesis.

  2. 2

    Separate arguments with commas (or semicolons in locales that use comma as decimal separator).

  3. 3

    Reference cells as A1, ranges as A1:B10, other tabs as Sheet1!A1, other files with IMPORTRANGE.

  4. 4

    Wrap text in double quotes; escape quotes inside strings by doubling them.

  5. 5

    Use $A$1 to lock references when copying formulas across rows and columns intentionally.

  6. 6

    Close every parenthesis and match array braces when using ARRAYFORMULA or curly array literals.

Examples in Google Sheets

Basic sum

=SUM(B2:B100) adds numeric cells. Non-numeric cells in the range are ignored by SUM.

Conditional text

=IF(C2>0, "Profit", "Loss") returns readable labels for a dashboard without conditional formatting.

Combine name fields

=TRIM(A2 & " " & B2) joins first and last name with a space and trims extra gaps.

Build this without starting from a blank cell

Use a Better Sheets tool for Google Sheets formula syntax, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Using straight quotes from word processors that Sheets does not recognize as string delimiters.
  • Mixing locale separators so commas inside functions parse as decimal points incorrectly.
  • Referencing entire columns A:A inside every row formula, slowing large sheets unnecessarily.
  • Forgetting @ before legacy array functions after the dynamic array update in some workbooks.
  • Nesting fifty functions deep with no intermediate helper columns, making debug painful.

Frequently asked questions

Why does my formula show as text?
The cell may be formatted as Plain text or you forgot the leading equals sign.
Absolute vs relative references?
Relative references shift when you copy. Dollar signs lock row, column, or both.
Named ranges in formulas?
Define names in Data > Named ranges, then use the name instead of A1 notation for clarity.
Array formula syntax?
ARRAYFORMULA wraps a formula so one entry fills a spill range. Some functions spill automatically now.
Error types meaning?
#REF! is bad reference, #VALUE! wrong type, #N/A no match, #DIV/0! divide by zero. Click the cell for details.
Comment inside a formula?
Sheets has no inline comments in formulas. Use a nearby note or helper column documentation.
Semicolon vs comma?
Depends on locale. If SUM(A1;A10) works for you, your region uses semicolon as the argument separator.
Syntax vs functions?
Syntax is the grammar (equals, parentheses, quotes). Functions are the named operations inside.

Related Tutorials

Watch how Google Sheets formula syntax works

Browse more tutorials
Hardest Formula: SumIF | Addition Based on Dates / Values

Hardest Formula: SumIF | Addition Based on Dates / Values

Demystifying the SumIF Formula. Add up your values based on a condition,...
Google Sheet Basics - The Absolute Basics

Google Sheet Basics - The Absolute Basics

Let's start at the basics of Google Sheets. Where every beginner spreads...
Move Cells to New Row with Formula

Move Cells to New Row with Formula

Move a range, or a set of cells, to a new area with a simple formula tha...
Your First Formula

Your First Formula

Learn how to use Formulas in Google Sheets. Use the Equal sign "=" to un...
Learn Google Sheet Formulas The Hard Way

Learn Google Sheet Formulas The Hard Way

One weird way to learn more about what Google Sheets can do. https://bet...
Ultimate Checklist in Google Sheets

Ultimate Checklist in Google Sheets

how to create and customize checklists using Google Sheets. I show you h...

Related blog posts

Guides that explain Google Sheets formula syntax in more depth.

Browse the blog

Related glossary terms

Done reading about Google Sheets formula syntax?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.