Google Sheets has over 400 functions. You need about 25 of them. This cheat sheet lists exactly those 25 — the formulas a beginner will actually use in the first month — grouped by what they do, each with its exact syntax and one worked example.
Every syntax string below was verified against Google's official Sheets function list on 9 November 2026, so you can trust the commas, the brackets and the argument order. Every example uses the same small table, so you can copy it and follow along.
Photo by Mikael Blomkvist on Pexels
The sample table — copy this first
Type this into a blank sheet. Everything below refers to it.
| A — Name | B — Subject | C — Score | D — Date | |
|---|---|---|---|---|
| Row 2 | Ayesha | Maths | 92 | 2026-11-02 |
| Row 3 | Bilal | English | 74 | 2026-11-03 |
| Row 4 | Chen | Maths | 88 | 2026-11-04 |
| Row 5 | Daniyal | Science | 65 | 2026-11-05 |
| Row 6 | Emma | Maths | 81 | 2026-11-06 |
The five scores are 92, 74, 88, 65 and 81. Their total is 400 and their average is 80 — remember those two numbers, because several examples below should give them back.
Three rules before you start
- Every formula starts with
=. Type=SUM(C2:C6), notSUM(C2:C6). - Arguments are separated by commas in most locales. If your Sheets uses semicolons instead (some European locales do), swap every comma in the examples for a semicolon — the argument order stays the same.
- Square brackets mean optional. In
ROUND(value, [places]), the[places]argument can be left out. Arguments without brackets are required.
1. Maths — add, average, count
1. SUM — add numbers
=SUM(value1, [value2, ...])
Example: =SUM(C2:C6) adds the five scores. Result: 400.
Use it for totals: marks, expenses, hours, quantities. You can also add separate cells: =SUM(C2, C4, C6).
2. AVERAGE — the mean
=AVERAGE(value1, [value2, ...])
Example: =AVERAGE(C2:C6) gives the mean score. Result: 80. Text in the range is ignored, so an empty cell or a word does not drag the average down.
3. MIN — the smallest number
=MIN(value1, [value2, ...])
Example: =MIN(C2:C6) finds the lowest score. Result: 65.
4. MAX — the largest number
=MAX(value1, [value2, ...])
Example: =MAX(C2:C6) finds the highest score. Result: 92. MIN and MAX together give you the range of any column in two keystrokes.
5. COUNT — how many numbers
=COUNT(value1, [value2, ...])
Example: =COUNT(C2:C6) counts the numeric scores. Result: 5. It counts numbers only — text and blanks are skipped.
6. COUNTA — how many cells are filled
=COUNTA(value1, [value2, ...])
Example: =COUNTA(A2:A6) counts the names. Result: 5. Unlike COUNT, COUNTA counts text too, so it tells you how many entries a column actually has. If a name is missing, COUNTA drops to 4 and you know a row is incomplete.
7. ROUND — tidy a number
=ROUND(value, [places])
Example: =ROUND(AVERAGE(C2:C6), 1) rounds the average to one decimal place. Result: 80. Change the 1 to 0 for a whole number, or to 2 for two decimals. ROUND follows standard rules: 80.45 rounds to 80.5 at one decimal, 80.44 rounds to 80.4.
2. Conditional maths — only the rows that match
These five are the workhorses of real spreadsheets. Watch the argument order: SUMIF puts the range first, SUMIFS puts the sum range first. That difference catches everyone once.
8. COUNTIF — count rows that match one condition
=COUNTIF(range, criterion)
Example: =COUNTIF(C2:C6, ">=80") counts scores of 80 or more. Result: 3 (92, 88 and 81). The criterion goes in quotes: ">=80", "Maths", "<>0".
9. COUNTIFS — count rows that match several conditions
=COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])
Example: =COUNTIFS(B2:B6, "Maths", C2:C6, ">=80") counts Maths scores of 80 or more. Result: 3 (Ayesha 92, Chen 88, Emma 81). Add more pairs for more conditions.
10. SUMIF — add only the rows that match
=SUMIF(range, criterion, [sum_range])
Example: =SUMIF(B2:B6, "Maths", C2:C6) adds the scores where the subject is Maths. Result: 261 (92 + 88 + 81). If you leave out the sum range, SUMIF adds the range itself.
11. SUMIFS — add rows that match several conditions
=SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
Example: =SUMIFS(C2:C6, B2:B6, "Maths", C2:C6, ">=80") adds Maths scores of 80 or more. Result: 261. Note the order: the range to add comes first here, unlike SUMIF.
12. AVERAGEIF — average only the rows that match
=AVERAGEIF(criteria_range, criterion, [average_range])
Example: =AVERAGEIF(B2:B6, "Maths", C2:C6) averages the Maths scores. Result: 87 (261 ÷ 3). This is the formula behind "average marks in Maths" in a class register.
3. Logic — decisions and safety nets
13. IF — the decision formula
=IF(logical_expression, value_if_true, value_if_false)
Example: =IF(C2>=50, "Pass", "Fail") in row 2. Result: "Pass" (Ayesha scored 92). Copy it down the column and every student gets a Pass or Fail. The text results go in quotes; numbers do not.
14. IFS — several conditions without nesting
=IFS(condition1, value1, [condition2, value2], …)
Example: =IFS(C2>=90, "A", C2>=80, "B", C2>=70, "C", TRUE, "D"). Result: "A" (92 is 90 or more). IFS checks each condition in order and returns the first one that is true. The final TRUE, "D" is the catch-all — without it, a score below 70 would return an error instead of "D". Use IFS instead of IF inside IF inside IF: it is far easier to read.
15. IFERROR — hide the ugly errors
=IFERROR(value, [value_if_error])
Example: =IFERROR(VLOOKUP("Zara", A2:C6, 3, FALSE), "Not found"). Zara is not in the table, so VLOOKUP would return #N/A — IFERROR catches it. Result: "Not found". Use it around any lookup or division that might fail, so your sheet shows a word instead of an error code.
4. Lookup — find a value in a table
16. VLOOKUP — the classic lookup
=VLOOKUP(search_key, range, index, [is_sorted])
Example: =VLOOKUP("Ayesha", A2:C6, 3, FALSE) searches the first column for Ayesha and returns the value from column 3 of the range. Result: 92. The FALSE at the end means "exact match" — use it almost always. With TRUE (or left out), VLOOKUP expects the first column sorted and returns the nearest match below your key, which is rarely what a beginner wants.
17. XLOOKUP — the modern replacement
=XLOOKUP(search_key, lookup_range, result_range, missing_value, [match_mode], [search_mode])
Example: =XLOOKUP("Ayesha", A2:A6, C2:C6, "Not found") does the same lookup as the VLOOKUP above. Result: 92. XLOOKUP is simpler than VLOOKUP because the lookup column and the result column are separate arguments — no counting columns, and it works when the lookup column is not first. If the name is missing, it returns your missing_value text instead of an error. Learn XLOOKUP if you are starting fresh; learn VLOOKUP as well, because older sheets and older colleagues still use it.
18. INDEX — get a cell by its position
=INDEX(reference, [row], [column])
Example: =INDEX(C2:C6, 3) returns the third value in the score column. Result: 88 (Chen's score). INDEX on its own is simple; its real power shows in the next formula.
19. MATCH — find a value's position
=MATCH(search_key, range, [search_type])
Example: =MATCH("Ayesha", A2:A6, 0) returns Ayesha's row position in the list. Result: 1. The 0 means exact match. Combine the two: =INDEX(C2:C6, MATCH("Emma", A2:A6, 0)) finds Emma's position (5) and returns her score. Result: 81. INDEX + MATCH does everything VLOOKUP does, and it keeps working if someone inserts a column in the middle of your table.
Photo by Artem Podrez on Pexels
5. Text — clean and combine words
20. LEFT — characters from the start
=LEFT(string, [number_of_characters])
Example: =LEFT(A2, 3) takes the first three letters of Ayesha. Result: "Aye". Useful for codes: the first three letters of a name, or the first two digits of a student ID.
21. RIGHT — characters from the end
=RIGHT(string, [number_of_characters])
Example: =RIGHT(A2, 4) takes the last four letters. Result: "esha". LEFT and RIGHT are most useful together — for example, splitting a code like "MAT-2026" into its parts.
22. LEN — how long is this text
=LEN(text)
Example: =LEN(A2) counts the letters in Ayesha. Result: 6. Pair it with IF to flag entries that are too short or too long: =IF(LEN(A2)<3, "Too short", "OK").
23. TRIM — remove extra spaces
=TRIM(text)
Example: =TRIM(" Ayesha ") removes the leading and trailing spaces. Result: "Ayesha". TRIM also collapses double spaces inside text to single spaces. This is the first formula to try when a VLOOKUP says "not found" for a value you can see with your own eyes — the value usually has an invisible space at the end.
24. TEXTJOIN — join cells with a separator
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)
Example: =TEXTJOIN(", ", TRUE, A2:A4) joins the first three names with a comma and a space. Result: "Ayesha, Bilal, Chen". The TRUE means empty cells are skipped. TEXTJOIN replaces the old habit of =A2&", "&A3&", "&A4, and it works on a whole range at once.
6. Dates — today and counting days
25. TODAY — today's date
=TODAY()
Example: =TODAY() returns the current date as a date value. The result depends on the day you open the sheet, so there is no fixed number to print here — if you open it on 1 December 2026, it returns 1 December 2026. Combine it with subtraction to count days: =TODAY()-D6 gives the number of days since Emma's date (6 November 2026). TODAY() recalculates every time the sheet opens, so a "days since" column stays correct without you touching it.
The full 25 at a glance
| # | Formula | What it does |
|---|---|---|
| 1 | SUM | Add numbers |
| 2 | AVERAGE | Mean of numbers |
| 3 | MIN | Smallest number |
| 4 | MAX | Largest number |
| 5 | COUNT | How many numbers |
| 6 | COUNTA | How many filled cells |
| 7 | ROUND | Round to a set number of decimals |
| 8 | COUNTIF | Count rows matching one condition |
| 9 | COUNTIFS | Count rows matching several conditions |
| 10 | SUMIF | Add rows matching one condition |
| 11 | SUMIFS | Add rows matching several conditions |
| 12 | AVERAGEIF | Average rows matching one condition |
| 13 | IF | One value if true, another if false |
| 14 | IFS | First true condition wins |
| 15 | IFERROR | Show a word instead of an error |
| 16 | VLOOKUP | Find a value down a column |
| 17 | XLOOKUP | Find a value, with a built-in fallback |
| 18 | INDEX | Get a cell by position |
| 19 | MATCH | Find a value's position |
| 20 | LEFT | Characters from the start |
| 21 | RIGHT | Characters from the end |
| 22 | LEN | Length of text |
| 23 | TRIM | Remove extra spaces |
| 24 | TEXTJOIN | Join cells with a separator |
| 25 | TODAY | Today's date |
When a formula breaks — the four errors you will see
| Error | What it usually means | Fix |
|---|---|---|
| #N/A | A lookup did not find its key | Check the spelling, or wrap the lookup in IFERROR; check for hidden spaces with TRIM |
| #DIV/0! | Division by zero or by an empty cell | Wrap the division in IFERROR, or check the divisor cell is filled |
| #VALUE! | Wrong type of value — text where a number was expected | Check that the cells really contain numbers, not text that looks like numbers |
| #REF! | A formula points at a deleted cell | Undo the deletion, or re-point the formula at the right range |
Five more to learn next
Once these 25 feel easy, these are the next five — all confirmed on Google's official function list:
- FILTER —
FILTER(range, condition1, [condition2]): returns only the rows that meet your conditions, as a live list. - SORT —
SORT(range, sort_column, is_ascending, ...): sorts a range by one or more columns. - UNIQUE —
UNIQUE(range): returns each distinct value once, dropping duplicates. - DATEDIF —
DATEDIF(start_date, end_date, unit): the number of days, months or years between two dates. - QUERY — the most powerful of all: it lets you write SQL-like queries against a sheet. It has a learning curve, so leave it until the other 25 are second nature.
Frequently asked questions
Do I need to memorise all 25?
No. Memorise SUM, AVERAGE, COUNTIF, IF and VLOOKUP (or XLOOKUP) — those five cover most everyday work. Keep this page bookmarked for the rest, and look them up until they stick.
Why does my VLOOKUP return #N/A when the value is right there?
Almost always one of three things: a spelling difference, an extra space (fix with TRIM), or the search key is a number while the column holds text (or the reverse). Check those before anything else.
What is the difference between COUNT and COUNTA?
COUNT counts numbers only; COUNTA counts every non-empty cell, including text. To count how many students are listed, use COUNTA on the name column. To count how many scores exist, use COUNT on the score column.
Should I learn VLOOKUP or XLOOKUP?
Learn XLOOKUP if you are starting now — it is simpler and safer. Learn VLOOKUP too, because most existing sheets use it and you will need to read and fix them.
Where do I go from here?
Formulas are the core skill behind data work. If you want to turn spreadsheet skills into a career, our data analyst roadmap shows the path from Excel and Sheets through SQL to Power BI and Python — and our 60 SQL interview questions are the natural next practice set. If you are a teacher tracking marks, our statistics notes for TLT, ECT, PST and JEST use the same kind of tables this cheat sheet works on.
Photo by Kindel Media on Pexels
All 25 syntax strings in this cheat sheet were verified against Google's official Sheets function list (support.google.com/docs/table/25273) on 9 November 2026. Google Sheets changes over time, so if a function behaves differently, check the official list — it is the final authority, not this page.


