Most people use Google Sheets as a simple table. A small set of formulas turns it into a tool that adds, looks up, cleans and summarizes data for you. This guide covers ten formulas that handle most everyday jobs, such as budgets, sales lists, class marks and task trackers. Each one comes with a small example you can copy into a blank sheet and test in two minutes.

The sample data
All examples use this small order list. Type it into a blank sheet starting at cell A1.
The columns are Product (A), Region (B), Units (C) and Price (D). Rows 2 to 7 hold six orders: Laptop, Phone, Tablet, Laptop, Phone and Tablet. The regions are North, South and North again, then South, North and South. Units are 3, 5, 2, 4, 6 and 1. Prices are 800, 500, 300, 800, 500 and 300.
1. SUM: add numbers
=SUM(C2:C7) adds every value from C2 to C7. With the sample data the result is 21 (3+5+2+4+6+1). Use it for totals of any column. You can also select a range and read the total in the bottom right corner of Sheets without writing a formula.
2. AVERAGE: find the typical value
=AVERAGE(D2:D7) returns the mean of the prices: (800+500+300+800+500+300) / 6 = 533.33. It ignores empty cells, which is useful when your list is still growing.
3. COUNT and COUNTA: count entries
=COUNT(C2:C7) counts cells that contain numbers (6 here). =COUNTA(A2:A7) counts any non-empty cell, including text (also 6). Use COUNTA to count names, and COUNT to count numeric values.
4. IF: make a decision
=IF(C2>=5,"High","Low") checks whether the units in C2 are at least 5. For the first row (3 units) it shows Low. Drag the formula down and rows with 5 or 6 units show High. The structure is always: condition, value if true, value if false.
5. SUMIF: add only what matches
=SUMIF(B2:B7,"North",C2:C7) adds the units only for rows where the region is North. The North rows are 3, 2 and 6, so the answer is 11. This replaces a lot of manual filtering.
6. COUNTIF: count only what matches
=COUNTIF(A2:A7,"Laptop") counts how many times Laptop appears, which is 2. It works with numbers too, for example =COUNTIF(C2:C7,">3") returns 3, because 5, 4 and 6 are above 3.
7. VLOOKUP: find a value in a table
Suppose you keep a price list in F2:G4 with product names in F and prices in G. =VLOOKUP("Phone",F2:G4,2,FALSE) finds Phone in the first column and returns the value from column 2 of that range. FALSE means exact match, which is what you want almost every time. If you get a #N/A error, the product name does not match exactly, often because of an extra space.
8. XLOOKUP: a simpler lookup
Google Sheets also supports =XLOOKUP("Phone",F2:F4,G2:G4). You give it the value to find, the column to search, and the column to return. It can look to the left, which VLOOKUP cannot, and the arguments are easier to read. Use whichever you find clearer.
9. ARRAYFORMULA: apply one formula to a whole column
Instead of copying a formula down every row, put one formula at the top. For example, in E1 type "Total" and in E2 type =ARRAYFORMULA(C2:C7*D2:D7). Sheets fills E2 to E7 with each row's units times price: 2400, 2500, 600, 3200, 3000 and 300. Add new rows and extend the range, or use a larger range such as C2:C1000 with an IF to skip blanks.
10. TEXT cleanup with TRIM and PROPER
Copied data often has extra spaces and mixed capitals. =TRIM(A2) removes spaces at the start, end and doubled spaces in the middle. =PROPER(A2) turns "lAPtop" into "Laptop". Combine them as =PROPER(TRIM(A2)) to clean a column in one step before you use lookups.
Common mistakes and how to fix them
- #NAME? means Sheets does not recognize something, usually a typo in the function name or text without quotation marks.
- #N/A from a lookup means the value was not found. Check spelling and spaces with TRIM.
- #DIV/0! means you divided by zero or by an empty cell. Wrap it as
=IFERROR(A1/B1,0). - Numbers stored as text are left-aligned and will not add up. Select the column and use Format, Number, Number.
- Relative references move when you copy. Use dollar signs, such as $F$2:$G$4, to keep a lookup table fixed.
A small practice exercise
Using the sample data, add three cells below the table: total units with SUM, total revenue with =SUMPRODUCT(C2:C7,D2:D7), and units sold in the South with SUMIF. The revenue total is 12,000 (2400+2500+600+3200+3000+300), and South units are 5, 4 and 1, which add up to 10. If your numbers match, you have used the main ideas in this guide.
Frequently asked questions
Do these formulas also work in Excel?
SUM, AVERAGE, COUNT, COUNTA, IF, SUMIF, COUNTIF, VLOOKUP, TRIM and PROPER work the same way in Excel. ARRAYFORMULA is specific to Google Sheets, and Excel handles that with dynamic arrays.
Which formula should I learn first?
Start with SUM, IF and SUMIF. They cover totals and simple decisions. Then learn VLOOKUP or XLOOKUP when you need to join two lists.
How do I stop formulas from breaking when I sort?
Keep each row's data together, select the full range before you sort, and use absolute references (with dollar signs) for lookup tables.
Official documentation for each function is in the Google Docs Editors Help function list.
Common mistakes and how to avoid them
Most formula problems come from a small set of habits. Knowing them saves more time than learning one more function.
- Numbers stored as text. If SUM returns 0 or ignores a cell, the cell may hold text that looks like a number. Left-aligned values are a clue. Retype the value or use the VALUE function to convert it.
- Ranges that stop too early. A formula such as =SUM(C2:C7) will not include row 8. Use a whole-column range like C2:C when the list will keep growing.
- Typing values inside formulas. If you write the tax rate directly in ten formulas, you must change all ten later. Put it in one cell and refer to it with an absolute reference such as $F$1.
- Extra spaces. A lookup fails when "Laptop " does not match "Laptop". Wrap the source column with TRIM before you look anything up.
- Merged cells. Merged cells break sorting and filtering. Use "Center across selection" style formatting or keep headers in single cells.
A ten-minute practice exercise
Practice makes the formulas stick. Try this on the sample data.
- Add a column E named Revenue and fill it with =C2*D2 for every row. Then use ARRAYFORMULA to do the same in one cell.
- Below the table, use SUM to show total revenue and AVERAGE to show the average order value.
- Use SUMIF to show the total revenue for one region, then COUNTIF to count how many orders came from that region.
- Add a column F named Size with an IF formula that returns "Large" when revenue is above a limit you choose and "Small" otherwise.
- Make a second small table of product names and cost prices, then use VLOOKUP to pull the cost into the main table.
If every step works, you already cover most of what everyday spreadsheet jobs need. When something returns an error such as #N/A or #REF!, click the cell and read the hint that Google Sheets shows. It usually names the exact problem.