SUM, AVERAGE and Friends
A function is a ready-made formula. You give it cells in brackets and it gives back an answer.
Functions save you from writing long formulas. Adding 500 cells with + would be impossible to type, but =SUM(B2:B501) does it instantly. Excel has hundreds of functions for maths, text, dates, lookups and finance. A handful of them - SUM, AVERAGE, COUNT, MIN, MAX, IF and the lookups - cover most daily work.
Every function has the same shape: name, opening bracket, the inputs (called arguments) separated by commas, closing bracket. As you type a function name, Excel shows a hint with the arguments it expects.
Prices in B2:B4 are 20, 60, 900
=SUM(B2:B4) → 980 (add them up)
=AVERAGE(B2:B4) → 326.67 (shown to 2 decimals)
=MIN(B2:B4) → 20 (smallest)
=MAX(B2:B4) → 900 (largest)
=COUNT(B2:B4) → 3 (how many numbers)
=ROUND(326.666, 1) → 326.7COUNTAcounts cells that are not empty (text too).AutoSum(the Σ button on the Home tab) writes a SUM for you.- Select some numbers and look at the bottom bar: Excel shows their sum and average without a formula.
Counting and adding with a condition
Conditional functions answer questions like "how much did we sell in the Stationery category?" or "how many orders came from Delhi?" without filtering by hand. COUNTIF counts the rows that match, SUMIF adds up matching rows, and SUMIFS / COUNTIFS allow several conditions at once.
A B
1 Category Price
2 Stationery 20
3 Stationery 60
4 Bags 900
=COUNTIF(A2:A4, "Stationery") → 2
=SUMIF(A2:A4, "Stationery", B2:B4) → 80
=SUMIF(B2:B4, ">50") → 960- Functions are ready-made formulas:
=NAME(arguments). - SUM, AVERAGE, MIN, MAX, COUNT, COUNTA cover basic summaries.
- SUMIF / COUNTIF add or count with a condition.
