10 Google Sheets formulas beginners can copy
Learn SUM, AVERAGE, COUNTIF, IF and 6 more Sheets formulas on a fictional stock list. With expected results. And checks for typical errors.

This guide will utilize google sheet formulas (google's docs). There are 10 formulas used with made up stock data. The answers provided are intended to be the answers to the data provided. (not real tests). Even if you supply incorrect cell ranges, you may receive a credible answer. You must be logged into a google account. (Open google sheet with no data). This must be done on a computer. Data is in A1:C4. A1 is Item. B1 is Quantity. C1 is Category. (Row 1). A2 is Pens. B2 is 12. C2 is Stationery. (Row 2). A3 is Notebooks. B3 is 8. C3 is Stationery. (Row 3). A4 is Folders. B4 is 10. C4 is Storage. (Row 4) For each example, there is an empty cell (not in A1:C4) to enter your answer. The reader is advised to choose that empty cell and copy and paste the whole formula (including = at the beginning) and press enter. B2:B4 refers to the 3 cells B2, B3, B4.
Google and Google Sheets are trademarks of Google LLC. HoldMyTwist is not affiliated with or endorsed by Google.
1. Add quantities with SUM
SUM exercise
exact formula given =SUM(B2:B4)
three values involved are 12, 8, 10
add them to get 30.
expected formula output = 30
cell containing formula is an empty result cell
a reader may check the result by doing 12 + 8 + 10
2. Find the average with AVERAGE
AVERAGE exact formula =AVERAGE(B2:B4)
B2:B4 = 12 8 10 sum =30 3 numbers. Avg is 10 It is what you will get if you put your formula into empty result cell. Will not take care of texts in the range. Zero is still a number to be considered for average.
3. Find the smallest quantity with MIN
MIN example. OK. In that case, just use this exact formula in an empty result cell: =MIN(B2:B4) This should be the result for this stock list ? 8 should be the result.
4. Find the largest quantity with MAX
MAX example.
Place correct formula (i.e. =MAX(B2:B4)) into empty result cell.
In stock list example result would be 12.
5. Count numeric entries with COUNT
- =COUNT(B2:B4)
- You'll have 3. (Number of numbers.) Use SUM to add them up.
Watch out
The reader validates the range which is highlighted before believing the formula result. SUM will add up the values in the range. COUNT will count the numeric items. The sample results given are for the rows provided in this exercise. The reader verifies the result from the formula by calculating it manually before swapping in new data.
6. Count filled entries with COUNTA
For the COUNTA exercise...
Same formula as given. =COUNTA(A2:A4)
Put that formula into a blank result cell.
A2, A3 and A4 all contain a name of the item. The answer should be 3.
COUNTA will count a cell with one or more spaces in it.
COUNTA will count a cell which contains a formula which produces an empty text string.
COUNTA doesn't care whether what it's counting is useful or not.
7. Count a category with COUNTIF
COUNTIF. please take this exact formula and paste it into a blank result cell: =COUNTIF(C2:C4,"Stationery") c2 & c3 has Stationery c4 has Storage. result is correct. 2. what we've got is double quotes around category word (stationery) in formula.
8. Add one category with SUMIF
- =SUMIF(C2:C4, "Stationery", B2:B4)
- 20). The total qty of Pens and Notebooks.
In your case you have a category in the first range and quantity in the last range. Make sure these rows are the same.
9. Choose a label with IF
IF exercise A blank output cell where you use the exact formula =IF(B2<10, "Restock", "Enough") So test for: test is to test for the value in B2 <10 For this particular IF exercise we use a arbitrary restock value (10) If the value in B2 < 10: restock Else: enough For B2 value of 12. (Not less than 10) So it should be "Enough" Change test to your task rule needed for actual task.
10. Remove extra spaces with TRIM
- Enter =TRIM(" Demo data ") (with spaces in quotes)
- You'll get Demo data. One space between Demo and data.
TRIM does not remove non-breaking spaces.
You have to remember the spaces in the quotes.
If the answer looks wrong
= (use beginning of every formula like this) and place in blank result cell (not within your input range that you're referencing). While you debug: don't forget about sign, quotes, highlighted range. (I use English function names. I use comma as separator for argument). When you get Formula parse error, you may want to compare argument separators with function help (visible in spreadsheet). If the function help shows that you should use semicolons, then example of category is =COUNTIF(C2:C4; "Stationery") and you should get result of 2 again. Only change is in argument separators. Nothing changes in quotes with text. (For computers: to find Locale, go to File > Settings. Locale means default currency/date/number formats of your spreadsheet which all users will have. It does not define language for your functions. See google for details of their locale and function language settings (opens in a new tab). You may have Always use English function names (if available). If you want to use English function names like I use in here, try to keep this on, if you can.)
Sources: Google's formula entry instructions (opens in a new tab) and function reference (opens in a new tab), including COUNTA (opens in a new tab), SUMIF (opens in a new tab) and TRIM (opens in a new tab).
Share this post
From holdmytwist.com/blog/google-sheets-formulas-beginners/


