Functions are pre-built formulas that do the heavy lifting. A handful of them cover most day-to-day analysis. This chapter is the core maths-and-stats toolkit and how to combine functions — the vocabulary the rest of the course assumes.
Function anatomy
A function is a name plus arguments in parentheses: =FUNCTION(arg1, arg2, …). Arguments can be values, cell references or ranges, and functions can nest inside each other:
=SUM(A1:A10) a range argument=ROUND(AVERAGE(B1:B10), 2) one function inside another=SUM(A1:A10, C1:C10) several arguments
Aggregates
| Function | Returns |
|---|---|
SUM(range) | Total |
AVERAGE(range) | Mean |
MIN / MAX(range) | Smallest / largest |
MEDIAN(range) | Middle value |
PRODUCT(range) | Multiply all together |
Counting
=COUNT(A1:A10) counts NUMBERS only=COUNTA(A1:A10) counts non-empty cells (text + numbers)=COUNTBLANK(A1:A10) counts empty cells
Rounding
=ROUND(3.14159, 2) → 3.14 (round to 2 decimals)=ROUNDUP(3.1, 0) → 4=ROUNDDOWN(3.9, 0) → 3=INT(3.9) → 3 (drop the decimal)=MOD(17, 5) → 2 (remainder)
Practice
On a sales column, compute the total (SUM), average, min, max and count of entries. Round the average to two decimals with a nested ROUND(AVERAGE(...)), and use COUNTA to count how many rows have any data.
Key takeaways
- 01A function is =NAME(arguments); arguments can be values, cells or ranges, and functions nest.
- 02Aggregates: SUM, AVERAGE, MIN, MAX, MEDIAN.
- 03COUNT counts numbers only; COUNTA counts any non-empty cell; COUNTBLANK counts empties.
- 04ROUND/ROUNDUP/ROUNDDOWN/INT control decimals; MOD gives a remainder.
- 05ROUND changes the value; number formatting only changes the display — use ROUND for money.
