Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets Formula Cheat Sheet: Quick Reference

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

A Google Sheets formula cheat sheet is a compact reference that shows the syntax and a working example for the functions you use most, so you can build a formula without leaving your spreadsheet. You do not need to install anything: every function listed here is built into Google Sheets and works in the web app and the mobile app. The only prerequisite is a spreadsheet with a header row and a few rows of data, because every formula below refers to a range such as A2:A10 or a whole column like A:A. Labels and menu names can differ slightly by version, device and region, but the formula syntax itself is the same everywhere.

What You'll Need

  • A Google account and a spreadsheet open in Google Sheets (web or mobile app).
  • At least one column of data with a header in row 1, so ranges like A2:A10 are meaningful.
  • An empty cell where you can type a test formula without overwriting existing data.
  • Familiarity with the equals sign: every formula starts with = and pressing Enter runs it.

Step-by-Step

  1. Start every formula with =. Click an empty cell, type =, then the function name. Google Sheets shows a suggestion list as you type; press Tab to accept the highlighted function and it inserts the opening parenthesis for you.
  2. Reference a range, not individual cells, wherever possible. A2:A10 means cells A2 through A10. A:A means the whole column. Using whole-column references keeps formulas working when you add rows later.
  3. Add up numbers with SUM. Type =SUM(B2:B10) to total a column. For a quick check without a formula, select the cells and read the sum in the bottom-right status bar.
  4. Count entries with COUNTA and numbers with COUNT. =COUNTA(A2:A100) counts non-empty cells including text; =COUNT(B2:B100) counts only numeric cells. Use COUNTA for a list of names and COUNT for a column of amounts.
  5. Average and round with AVERAGE and ROUND. =AVERAGE(B2:B10) returns the mean. Wrap it as =ROUND(AVERAGE(B2:B10),2) to show two decimal places. ROUND takes the number of decimal places as its second argument.
  6. Make decisions with IF. =IF(B2>=100,"Yes","No") returns Yes when B2 is at least 100 and No otherwise. Text results must be in double quotes; numbers and cell references are not.
  7. Look up values with VLOOKUP or XLOOKUP. =VLOOKUP(D2,A2:B10,2,FALSE) finds D2 in the first column of A2:B10 and returns the matching value from column 2. The FALSE argument forces an exact match. If your sheet offers XLOOKUP, =XLOOKUP(D2,A2:A10,B2:B10) does the same job and does not require the lookup column to be first.
  8. Join text with the ampersand or CONCATENATE. =A2&" "&B2 combines first and last names with a space. =TEXTJOIN(" ",TRUE,A2:C2) joins a range and ignores empty cells when the second argument is TRUE.
  9. Clean text with TRIM, UPPER, LOWER and PROPER. =TRIM(A2) removes extra spaces, =UPPER(A2) capitalises everything, =PROPER(A2) capitalises the first letter of each word. These are useful before matching or sorting imported data.
  10. Work with dates using TODAY and DATEDIF. =TODAY() returns the current date and updates daily. =DATEDIF(A2,TODAY(),"Y") returns full years between a start date and today. Date results may display as a serial number until you format the cell as a date via Format > Number > Date.
  11. Handle errors with IFERROR. Wrap a fragile formula as =IFERROR(VLOOKUP(D2,A2:B10,2,FALSE),"Not found") so a missing match shows a readable message instead of #N/A.
  12. Test one formula before filling down. Enter the formula in the first data row, confirm the result, then drag the small square at the bottom-right of the cell (the fill handle) down the column. Relative references adjust automatically; add $ signs such as $B$1 to lock a reference so it does not shift.

Common Mistakes

  • Forgetting the leading =, which makes Sheets treat the entry as plain text.
  • Using commas as decimal separators in regions where the formula separator is a semicolon; check which separator your locale expects.
  • Leaving out the FALSE argument in VLOOKUP, which allows an approximate match and can return the wrong row.
  • Mixing text and numbers in the same column, so SUM ignores values stored as text.
  • Deleting the row or column a formula points to, which produces #REF! errors.
  • Typing quote marks around numbers, which turns them into text and breaks arithmetic.

Tips

  • Press Ctrl+` (Windows) or Cmd+` (Mac) to toggle between showing formula results and showing the formulas themselves.
  • Use named ranges (Data > Named ranges) so formulas read =SUM(Expenses) instead of =SUM(B2:B40).
  • Keep a separate tab for raw data and another for formulas, so sorting or filtering the source does not scramble results.
  • Use ARRAYFORMULA when you want one formula to fill an entire column, for example =ARRAYFORMULA(A2:A100*B2:B100).
  • Format cells as numbers or dates after writing the formula; formatting does not change the value, only how it looks.

Troubleshooting

  • #N/A: the lookup value is not found. Check for trailing spaces with TRIM and confirm the lookup column is the first column in the range for VLOOKUP.
  • #REF!: a referenced cell or sheet was deleted or moved. Undo the deletion or rewrite the reference.
  • #VALUE!: a function received text where it expected a number. Check that numeric cells are not formatted as text.
  • #DIV/0!: a division by zero or by an empty cell. Wrap the formula in IFERROR or guard the divisor with IF.
  • Formula shows as text: the cell is formatted as plain text. Set Format > Number > Automatic, then re-enter the formula.
  • Results do not update: check File > Settings > Calculation for recalculation settings, and confirm the sheet is not in a filtered or protected state.

Frequently Asked Questions

Do these formulas work in the Google Sheets mobile app?

Yes. The same functions and syntax work in the Android and iOS apps. Typing long formulas is slower on a phone, so many people build them on a computer and edit values on mobile.

What is the difference between VLOOKUP and XLOOKUP?

VLOOKUP searches the first column of a range and returns a value from a column to its right. XLOOKUP takes separate lookup and return ranges, so the return column can be on either side, and it handles exact matches by default.

Why does my formula return #N/A when the value is clearly there?

Usually a hidden space, a number stored as text, or a case or format mismatch. TRIM the source cell and confirm both sides are the same data type.

How do I stop a formula from changing when I copy it?

Add dollar signs to the parts that should stay fixed, for example $A$1 for both column and row, $A1 to lock only the column, or A$1 to lock only the row.

Can I use a formula to combine text from two columns?

Yes. =A2&" "&B2 joins them with a space, and TEXTJOIN handles larger ranges while skipping empty cells.