Math & Statistical Functions
Navigation
Part of Excel
Aggregation Basics
| Function | Purpose |
|---|---|
SUM(range) | Total |
AVERAGE(range) | Mean |
MEDIAN(range) | Middle value |
MODE.SNGL(range) | Most frequent value |
COUNT(range) | Counts numeric cells |
COUNTA(range) | Counts non-empty cells |
COUNTBLANK(range) | Counts empty cells |
MAX(range) / MIN(range) | Largest/smallest |
MAXIFS / MINIFS | Conditional max/min (Excel 2019+) |
Conditional Aggregation
=SUMIF(range, criteria, [sum_range])
=SUMIFS(sum_range, crit_range1, crit1, crit_range2, crit2, ...)
=AVERAGEIF(range, criteria, [avg_range])
=AVERAGEIFS(avg_range, crit_range1, crit1, ...)
=COUNTIF(range, criteria)
=COUNTIFS(crit_range1, crit1, crit_range2, crit2, ...)
Criteria syntax
- Text:
"Mumbai"or"<>Mumbai"- Numbers:
">100","<=50"- Wildcards:
"Mum*"- Cell ref:
">="&A1
SUMPRODUCT
Multiplies corresponding array elements and sums the result β extremely versatile for multi-condition sums without helper columns.
=SUMPRODUCT((A2:A100="Mumbai")*(B2:B100="Active")*C2:C100)
Rounding
| Function | Behavior |
|---|---|
ROUND(num, digits) | Standard rounding |
ROUNDUP(num, digits) | Always rounds away from zero |
ROUNDDOWN(num, digits) | Always truncates toward zero |
MROUND(num, multiple) | Rounds to nearest multiple |
CEILING(num, sig) / FLOOR(num, sig) | Rounds up/down to significance |
TRUNC(num, [digits]) | Truncates without rounding |
INT(num) | Rounds down to nearest integer |
Other Common Math
=ABS(num) β absolute value
=SQRT(num) β square root
=POWER(num, power) β exponent
=MOD(num, divisor) β remainder
=GCD(n1,n2) / =LCM(n1,n2)
=RAND() β random 0β1
=RANDBETWEEN(low, high) β random integer in range
Statistical
=STDEV.S(range) β sample standard deviation
=STDEV.P(range) β population standard deviation
=VAR.S(range) / VAR.P(range)
=RANK.EQ(num, range, [order]) β rank within a set
=PERCENTILE.INC(range, k)
=QUARTILE.INC(range, quart)
=CORREL(range1, range2) β correlation coefficient
=TREND(known_y, known_x, new_x) β linear trend prediction
Unique/Distinct Counting
=SUMPRODUCT(1/COUNTIF(range, range)) β legacy distinct count
=COUNTA(UNIQUE(range)) β 365 dynamic array approach