Google Sheets Formula Category Cheat Sheet
In this article
This cheat sheet groups the most useful Google Sheets formulas into categories so you can quickly find the right function for the job. No need to memorize hundreds of functions—just identify what you want to do (sum, look up, clean text, etc.) and pick the formula listed. You'll need a Google account and a spreadsheet open; formulas work the same in the browser and the mobile app, though menu labels can differ slightly by version and device.
What You'll Need
- A Google account (free) and a Google Sheet open.
- Basic familiarity with typing formulas: start with
=in a cell, then the function name and parentheses. - For most formulas, your data should be in rows or columns with headers in the first row.
Step-by-Step
- Identify the category of task you need. The main categories are: Math & Stats, Lookup & Reference, Text, Date & Time, Logical, and Database/Array. Below are the most common formulas in each.
- Math & Stats – use these for sums, averages, counts, and rounding.
=SUM(A1:A10)– adds numbers in a range.
=AVERAGE(A1:A10)– mean of the range.
=COUNT(A1:A10)– counts numeric cells.
=COUNTA(A1:A10)– counts non-empty cells (text + numbers).
=ROUND(A1, 2)– rounds to 2 decimal places.
=MAX(A1:A10)/=MIN(A1:A10)– largest/smallest value. - Lookup & Reference – find values based on a key.
=VLOOKUP("apple", A:B, 2, FALSE)– looks for "apple" in column A and returns the value in column B (2nd column). UseFALSEfor exact match.
=HLOOKUP("price", A1:C2, 2, FALSE)– same but searches across rows.
=INDEX(A1:B10, 2, 1)– returns the value at row 2, column 1 of the range.
=MATCH("apple", A1:A10, 0)– returns the position (row number) of "apple" in the range.
=XLOOKUP("apple", A1:A10, B1:B10)– newer, more flexible lookup (available in most current versions). - Text – clean, combine, or extract text.
=CONCATENATE(A1, " ", B1)or=A1 & " " & B1– joins text.
=LEFT(A1, 3)– first 3 characters.
=RIGHT(A1, 3)– last 3 characters.
=MID(A1, 2, 4)– 4 characters starting at position 2.
=LEN(A1)– character count.
=UPPER(A1)/=LOWER(A1)/=PROPER(A1)– change case.
=TRIM(A1)– removes extra spaces.
=SUBSTITUTE(A1, "old", "new")– replace text. - Date & Time – work with dates and durations.
=TODAY()– current date (updates daily).
=NOW()– current date and time.
=YEAR(A1)/=MONTH(A1)/=DAY(A1)– extract parts.
=DATE(2025, 12, 31)– creates a date from numbers.
=DATEDIF(A1, B1, "d")– days between two dates (use "m" for months, "y" for years).
=EDATE(A1, 3)– adds 3 months to a date. - Logical – make decisions in formulas.
=IF(A1 > 10, "High", "Low")– returns one value if true, another if false.
=IFERROR(A1/B1, "Error")– shows "Error" if the calculation fails (e.g., division by zero).
=AND(A1 > 0, B1 > 0)– returns TRUE if both conditions are true.
=OR(A1 > 0, B1 > 0)– returns TRUE if at least one is true.
=NOT(A1 > 0)– reverses the logical value. - Database / Array – advanced but powerful.
=FILTER(A1:B10, B1:B10 > 100)– returns rows where column B > 100.
=SORT(A1:B10, 2, TRUE)– sorts by column 2 ascending.
=UNIQUE(A1:A10)– lists unique values.
=SUMIF(A1:A10, ">10", B1:B10)– sums B values where A meets the condition.
=COUNTIF(A1:A10, "yes")– counts cells that equal "yes".
=ARRAYFORMULA(A1:A10 * B1:B10)– applies a formula to a whole range at once. - Combine categories for complex tasks. For example, to sum sales only for a specific product:
=SUMIF(A2:A100, "Widget", B2:B100). - Use the formula autocomplete. When you type
=and the first letters, Sheets suggests functions. Press Tab to accept, then fill in the arguments. - Test on a small range first. Put your formula in a cell and check the result against a manual calculation before applying to a large dataset.
Common Mistakes
- Mixing up row/column order in VLOOKUP. VLOOKUP always searches the first column of the range, not the column you specify.
- Forgetting the
FALSEin VLOOKUP. If you omit it, you get approximate match, which can return wrong values. UseFALSEfor exact matches. - Using
COUNTon text cells.COUNTonly counts numbers; useCOUNTAfor text. - Not locking ranges with
$when copying formulas. If you drag a formula down, relative references change. Use$A$1to keep a cell constant. - Mismatched parentheses. Every opening parenthesis needs a closing one. Sheets will often show a red error if mismatched.
- Using
DATEDIFwith the wrong order. The first date must be earlier than the second, or you'll get a negative or error.
Tips
- Use named ranges (Data > Named ranges) to make formulas readable, e.g.,
=SUM(Sales)instead of=SUM(A2:A100). - Press Ctrl+Enter (Windows) or Cmd+Enter (Mac) to fill a formula into multiple selected cells at once.
- Use IFERROR around formulas that might fail (like divisions) to keep your sheet clean.
- For quick sums, select a range and look at the bottom-right status bar—it shows the sum, average, and count without a formula.
- Access the full function list via Insert > Function or the Σ (sigma) icon in the toolbar.
Troubleshooting
- #NAME? error – The function name is misspelled or not recognized. Check spelling.
- #VALUE! error – A formula expects a number but got text, or vice versa. Check the cell types.
- #REF! error – A reference is invalid, often because you deleted a row/column used in the formula.
- #DIV/0! – Division by zero. Wrap with IFERROR or check the denominator.
- #N/A in VLOOKUP – The lookup value isn't found exactly. Double-check spelling and that the range includes the correct column.
- Formula not recalculating – Go to File > Settings > Calculation and set to "On change and every minute" if needed, or press Ctrl+Shift+F9 (Windows) / Cmd+Shift+F9 (Mac) to force recalculation.
- If a formula works in one cell but not when copied – Check the relative references; add
$to lock cells that should stay constant.
Frequently Asked Questions
Can I use multiple categories in one formula?
Yes, you can nest functions, e.g., =IF(SUM(A1:A10)>100, "High", "Low"). Just ensure parentheses are balanced.
What's the difference between VLOOKUP and XLOOKUP?
VLOOKUP searches only the first column of a range and returns a value to the right. XLOOKUP lets you specify any lookup column and any return column, and it handles arrays better. XLOOKUP is available in most current Google Sheets.
How do I count cells that contain specific text?
Use =COUNTIF(A1:A10, "*apple*") – the asterisks act as wildcards for any characters before/after.
Why does my DATE formula show a number instead of a date?
The cell is formatted as a number. Go to Format > Number > Date to change the display.
Can I use these formulas on mobile?
Yes, the Google Sheets mobile app supports all standard formulas. You type them the same way, though the interface is smaller.
What's the fastest way to learn a new function?
Type = and the function name, then press Ctrl+Space (Windows) or Cmd+Space (Mac) to see the argument help. Or click the function in the autocomplete list to see a description.