π Lesson 2.2: Everyday Functions β SUM, AVERAGE, COUNT, IF, ROUND & TODAY
Last lesson you did math by hand with operators. That's powerful, but nobody wants to write
=A2+A3+A4+β¦+A100. Functions are the shortcut: named, pre-built mini-programs that do common
jobs for you in a few keystrokes. Today you'll meet the handful you'll use almost every day β adding,
averaging, counting, rounding, dating, and even letting your sheet make a decision with
IF.
π What You'll Learn
By the end of this lesson, you will be able to:
- Explain what a function is and read its anatomy:
=NAME(arguments) - Use the core math family β
SUM,AVERAGE,MIN,MAXβ over a range - Tell
COUNT,COUNTA, andCOUNTBLANKapart and avoid the classic counting gotcha - Write an
IFformula that labels each row based on a logical test - Round money correctly with
ROUNDand stamp dates withTODAYandNOW
β±οΈ Estimated Time: 50 minutes
π― Project: Take the dataset from Module 1 and add a summary block β a SUM total, an AVERAGE, a count of entries (COUNT vs COUNTA), a rounded value, today's date with TODAY, and an IF that labels each row "Over budget" or "OK".
In This Lesson
What a Function Is
A function is a named, pre-built formula that Google has already written for you. You
supply the inputs; it does the work. Where last lesson you might have written
=A2+A3+A4+A5, a function lets you write =SUM(A2:A5) β shorter, clearer, and it
still works if you add more rows to the range. Sheets ships with hundreds of these, but you'll do 80% of
your work with the dozen or so we cover in this module.
Every function has the same shape, and once you can read it, you can read them all:
=NAME(argument1, argument2, β¦)
- The
=β same as any formula; it says "calculate this." - The NAME β what the function does, like
SUMorAVERAGE. Not case-sensitive;sumandSUMboth work. - The parentheses β every function has them, even ones that take nothing inside, like
=TODAY(). - The arguments β the inputs you feed it, inside the parentheses, separated by commas. An argument can be a number, a cell, a range, or even another formula.
π Definition
Argument: a piece of input you hand to a function inside its parentheses. In
=SUM(A2:A10), the single argument is the range A2:A10. In
=ROUND(3.14159, 2), there are two arguments: the number and how many decimal places to
keep. Commas separate arguments β that comma is doing real work, so don't confuse it with the colon
that makes a range.
Let the autocomplete helper guide you
You don't have to memorize function names or the order of their arguments. Start typing
=SU in a cell and Sheets pops up a suggestion list; keep going and it shows a
little tooltip describing the function and naming each argument as you type it. This
helper is your always-on cheat sheet β read it, and it tells you exactly what to put where. Press
Tab to accept a suggested function name.
β Pro Tip
When the tooltip appears, look for which argument is shown in bold β that's the one Sheets expects you to type next. If the tooltip ever disappears and you want it back, click into the formula and it returns. Getting comfortable reading this helper is a skill in itself: it means you can use functions you've never seen before, just by following its prompts.
The Core Math Family
These four are the workhorses. All of them take a range (remember the colon from last
lesson: A2:A10 means A2 through A10) and boil it down to a single number.
| Function | What it does | Example |
|---|---|---|
SUM | Adds all the numbers in a range | =SUM(B2:B10) |
AVERAGE | The mean β the total divided by how many numbers | =AVERAGE(B2:B10) |
MIN | The smallest number in the range | =MIN(B2:B10) |
MAX | The largest number in the range | =MAX(B2:B10) |
The star of the group is SUM, and there's a lovely shortcut for it. Click an empty cell
just below a column of numbers and press Alt+= (if that shortcut doesn't respond in your browser or keyboard layout, use the Ξ£
Functions toolbar button, or Insert β Function β SUM). Sheets guesses the range above and writes the SUM for you β
press Enter to accept. It's the fastest way to total a column.
You can also mix in multiple ranges or single cells with commas:
=SUM(B2:B10, D2:D10) adds two separate columns, and =SUM(B2:B10, 100) adds a
flat 100 to the total. But the everyday form β one clean range β is what you'll reach for most.
β οΈ Important Note: These math functions quietly skip empty cells and text.
=AVERAGE(B2:B10) averages only the cells that actually hold numbers β a blank row won't
drag your average down to zero. That's usually helpful, but it means you should know how many values
you're really averaging, which is exactly why counting (next section) matters.
Counting β COUNT vs COUNTA
"How many entries do I have?" sounds trivial until you realize there are three different counting functions and picking the wrong one is one of the most common beginner mistakes. Here's the honest breakdown:
| Function | Counts⦠| Ignores⦠|
|---|---|---|
COUNT | Cells that contain numbers only | Text, dates-as-text, and blanks |
COUNTA | Cells that contain anything (numbers, text, dates) | Only truly empty cells |
COUNTBLANK | Cells that are empty | Any cell with content |
Here's the gotcha in a sentence: COUNT only counts numbers. If you point
=COUNT(A2:A100) at a column of names, it returns 0 β because names
aren't numbers β and beginners conclude the function is broken. It isn't; it's doing exactly its job. To
count a list of names (or any non-empty cells), you want =COUNTA(A2:A100). The letter A stands
for "all types."
β οΈ Watch Out
Reach for COUNT when you're counting numeric things β how many test scores,
how many prices were entered. Reach for COUNTA when you're counting records β how
many people, how many tasks, how many rows of data. A quick rule of thumb: counting numbers
use COUNT; counting rows/entries use COUNTA. And COUNTBLANK is handy for finding
gaps β "how many cells did I forget to fill in?"
A tiny worked example. Suppose A2:A6 holds: 12, "Pending", 8,
(blank), 5. Then =COUNT(A2:A6) is 3 (only the three numbers),
=COUNTA(A2:A6) is 4 (three numbers plus the word "Pending"), and
=COUNTBLANK(A2:A6) is 1 (the empty cell). Same range, three different
answers β that's why choosing the right one matters.
IF β Making the Sheet Decide
So far our functions crunch numbers. IF does something new: it lets your sheet
make a decision and put different results in a cell depending on the answer. This is the
gateway to spreadsheets that feel smart β flagging problems, labeling categories, applying rules.
An IF takes exactly three arguments, in this order:
=IF(logical test, value if true, value if false)
- Logical test β a true/false question, built with the comparison operators from last lesson (
>,<,=, and friends). For exampleB2>100. - Value if true β what to show if the test is true.
- Value if false β what to show if the test is false.
A concrete example. You have spending amounts in column B and a budget of 100 per row. You want each row labeled "Over budget" or "OK":
=IF(B2>100, "Over budget", "OK")
Read it as a sentence: "IF the value in B2 is greater than 100, show Over budget, otherwise
show OK." Note two things. First, text results go in double quotes β
"Over budget" β while numbers and cell references don't. Second, copy this down the column and
the relative reference B2 shifts to each row, so every row gets judged against its own value.
Here's the decision as a flow:
is B2 greater than 100"} B -->|"yes, true"| C["value if true
show Over budget"] B -->|"no, false"| D["value if false
show OK"] C --> E["Label appears in the cell"] D --> E
π‘ Nesting β a teaser
What if you need three or more outcomes β "Over budget", "Close", "OK"? You can put an
IF inside another IF (called nesting), but it gets hard to read fast.
There's a cleaner function built for exactly this β IFS β and we give it proper treatment
in Lesson 4.3. For now, master the single, three-part IF; it handles the
vast majority of real decisions.
β οΈ Important Note: The most commonIFmistakes are forgetting the quotes around text results, and mixing up the comma order. If yourIFwon't accept, count three parts separated by two commas, and check every piece of text is quoted. The autocomplete tooltip bolds the argument you're on β lean on it.
Rounding & Dates
Rounding β especially for money
Divide 10 by 3 and you get 3.33333333β¦ trailing off forever. On screen a cell might display a
tidy 3.33, but underneath it still stores the long value β and that can make totals look a penny off.
ROUND actually changes the stored number to a set number of decimal places:
=ROUND(3.14159, 2) β 3.14
=ROUND(2.5, 0) β 3
=ROUND(B2, 2) β B2 rounded to 2 decimals (cents)
The second argument is how many decimal places to keep β 2 for money (cents),
0 for whole numbers. There are two cousins for when you always want to go one direction:
ROUNDUP always rounds away from zero, and ROUNDDOWN always rounds toward zero.
Use plain ROUND for money and most everyday needs.
β Pro Tip
There's a real difference between rounding a value and merely formatting it to
show two decimals. Formatting changes only what you see; the underlying number stays long.
ROUND changes the number itself. For displayed prices, formatting is usually enough; but
when a rounded number feeds further calculations (like tax on a rounded price), use
ROUND so the math matches what people see.
Dates β TODAY and NOW
Two functions put the current date and time into your sheet. Both take no arguments β but you still write the empty parentheses:
=TODAY()β today's date (no time). Great for "as of" labels and for date math like days remaining.=NOW()β the current date and time.
These are called volatile functions: they don't freeze at the moment you type them.
They recalculate β TODAY() rolls over to the new date each day, and both refresh
whenever the sheet recalculates. That's perfect for a live "Last updated" stamp, but if you need a
permanent timestamp that never changes, type the date by hand or paste it as a value instead. We
dig into how dates really work β they're secretly just numbers β in Lesson 2.3.
β οΈ Watch Out
Because TODAY() and NOW() change on their own, don't use them where you
meant to record "the day this actually happened." A cell that says =TODAY() will always
say today β tomorrow it'll say tomorrow. For a fixed record (an order date, a birthday), enter
the date directly.
π― Project: A Summary Block
Let's turn a plain list of data into something that summarizes itself. Open the dataset you built in
Module 1 (or make a quick one: a column of expense amounts with a category and description). You'll add a
small "summary block" of the functions from this lesson, plus an IF label on each row. By the
end, changing any number will ripple through every summary line β the living-model feeling again, now
powered by functions.
ποΈ Build the summary block
Objective: Add a total, average, count, rounded value, today's date, and a per-row "Over budget / OK" label to an existing dataset.
Instructions (about 20 minutes):
- (2 min) Open your Module 1 sheet (or create one with headers
Item,Category,Amountand 6β10 rows of data). Make sure amounts are numbers. Reusing the Module 1 budget (Date, Category, Description, Amount)? Your amounts are in column D, so use D wherever the steps below say C β e.g.=SUM(D2:D8). - (3 min) Below the data, in its own labeled area, add a Total:
=SUM(C2:C11)(adjust the range to your rows). Try the Alt+= shortcut (or the Ξ£ toolbar button). - (2 min) Add an Average:
=AVERAGE(C2:C11). Add a Highest with=MAX(C2:C11)if you like. - (4 min) Add two counts side by side: Count of amounts
=COUNT(C2:C11)and Count of entries=COUNTA(A2:A11). Compare them and note why they might differ. - (2 min) Add a Rounded average:
=ROUND(AVERAGE(C2:C11), 2)β a function inside a function, rounded to cents. - (2 min) Add a "Last updated" cell:
=TODAY(). Notice it shows today's date. - (4 min) Add a new column Status next to your data. In its first row write
=IF(C2>100, "Over budget", "OK")(pick a threshold that fits your numbers), then copy it down the whole column. - (1 min) The experiment: change one amount to push it over your threshold and watch its Status flip, and the Total, Average, and rounded average all update.
π‘ Hint β the summary formulas
Total =SUM(C2:C11)
Average =AVERAGE(C2:C11)
Highest =MAX(C2:C11)
Count of amounts =COUNT(C2:C11)
Count of entries =COUNTA(A2:A11)
Rounded average =ROUND(AVERAGE(C2:C11), 2)
Last updated =TODAY()
Status column (row 2, then copy down)
=IF(C2>100, "Over budget", "OK")
If COUNT returns 0, you probably pointed it at a text column β point it at the
numeric Amount column, or use COUNTA to count entries. If IF won't
accept, check for three parts, two commas, and quotes around the text.
β Project Completion Checklist
- A working
SUMtotal over the correct range - An
AVERAGE(bonus: aMINorMAX) - Both a
COUNTand aCOUNTA, and you can explain any difference - A
ROUNDapplied to a value (ideally the average, to 2 decimals) - A
TODAY()"last updated" cell - An
IF-based Status column copied down, labeling each row - Changing a number updates every summary line automatically
π― Quick Quiz
Question 1: You point =COUNT(A2:A20) at a column of customer names and it returns 0. What's going on?
Question 2: Which formula labels a row "Over budget" when the amount in B2 is more than 100, and "OK" otherwise?
Best Practices with Functions
β Do's
- Let autocomplete teach you. Read the tooltip; it names each argument so you never have to memorize argument order.
- Match the count function to the data. Numbers β
COUNT; entries of any kind βCOUNTA; gaps βCOUNTBLANK. - Round money on purpose. Use
ROUND(β¦, 2)when a value feeds further math, so the numbers match what people see. - Read
IFas a sentence. "If test, then this, else that" β three parts, two commas.
β Don'ts
- Don't forget the parentheses. Even zero-argument functions need them:
=TODAY(), not=TODAY. - Don't leave text unquoted in
IF."Over budget"needs its quotes; a bare word errors out. - Don't use
TODAY()for a fixed date. It changes daily β type the date by hand when you need a permanent record.
π‘ Pro Tips
- Alt+= below a column instantly writes a
SUMfor you. - You can nest functions:
=ROUND(AVERAGE(B2:B10), 2)averages, then rounds, in one cell.
π Learning Journal
Keep a learning journal as you work through this course β a document, a note, or even a tab in your own spreadsheet. After each lesson, take a few minutes to write down:
- Key concepts you learned
- Techniques that clicked for you
- Questions or confusion points to revisit
- Ideas you want to try in your own sheets
- Your progress and feelings about learning this β including where your confidence grew
βοΈ This lesson's prompt: Which function do you think you'll use the most in your
own sheet, and why? Write out one IF statement in plain English first ("if ___ then ___
otherwise ___"), then as a formula. Did the difference between COUNT and
COUNTA surprise you? Note any function you'd like to explore beyond the ones covered
here.
π Lesson Summary
π Key Takeaways
- A function is a named, pre-built formula shaped
=NAME(arguments); the autocomplete tooltip tells you what each argument should be. - The math family β
SUM,AVERAGE,MIN,MAXβ reduces a range to one number and skips blanks and text. COUNTcounts numbers only;COUNTAcounts any non-empty cell;COUNTBLANKcounts empties. Match the tool to the data.IF(test, value if true, value if false)lets the sheet decide β quote text results; nest or useIFS(Lesson 4.3) for more outcomes.ROUNDchanges the stored number (great for money);TODAY()andNOW()are volatile and refresh themselves.
π What You've Accomplished
Your dataset now summarizes itself: it totals, averages, counts, rounds, stamps the date, and judges
each row with a rule you wrote. You've gone from typing arithmetic to commanding a toolkit of functions β
and you met IF, the first step toward sheets that reason. That's a genuinely big leap in
capability.
β Common Questions at This Stage
How do I know which function to use β there are hundreds?
You only need a handful for everyday work, and this module covers them. When you do need something new, describe what you want in the search box under Insert β Function, or start typing and let the autocomplete tooltip explain your options. The full reference is Google's function list. Don't memorize β recognize the shape and look the rest up.
Why does my AVERAGE not match "total divided by number of rows"?
AVERAGE divides by the count of cells that actually contain numbers, not the
number of rows. If some cells are blank or hold text, they're skipped. Compare
COUNT (numbers) with COUNTA (entries) to see how many values are really in
play.
My IF keeps showing an error. What's the usual culprit?
Almost always one of two things: text that isn't in double quotes (Over budget instead
of "Over budget"), or the wrong number of commas. An IF is exactly three
parts separated by two commas. Lean on the autocomplete tooltip, which bolds the argument you're
currently typing.
π Looking Ahead
In the next lesson β Lesson 2.3: Text & Date Functions β TEXTJOIN, LEFT/RIGHT/MID & Working with Dates β we turn to messy text and to how dates really work under the hood (spoiler: a date is secretly just a number). You'll clean, split, and combine names and contact data with formulas instead of retyping.
β Before the Next Lesson
- Confirm your summary block updates when you change a data value
- Make sure you can explain the difference between
COUNTandCOUNTA - Write your Learning Journal entry, including one plain-English
IF
π Additional Resources
- Google Sheets function list (Google Support)
- SUM function reference (Google Support)
- Explore functions in your own sheet
- sheets.google.com β practice with your data
π Encouragement for the Journey
You just added a real toolbox to your belt β and taught a spreadsheet to make decisions. Every one of these functions will show up again and again, so the effort you spent today pays compound interest for the rest of the course. Give your self-summarizing sheet a proud look, then let's go wrangle some messy text. π