Twelve Excel functions cover most office work
Excel has more than 400 functions, but the ones an office uses every month number about ten. This article explains those twelve by "when do I use it?". Situation first, syntax second. Every example refers to a simple table like this one.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Date | Department | Item | Amount |
| 2 | 2026-11-03 | Sales | Copy paper | 24,000 |
| 3 | 2026-11-05 | Facilities | Toner | 89,000 |
| 4 | 2026-11-12 | Sales | Ballpoint pens | 6,500 |
| 5 | … | … | … | … |
Group 1. Adding and counting
SUM — the total of a range. =SUM(D2:D100). The most used function, and also the most often wrong. The usual mistake is a subtotal row inside the range, so values are added twice.
AVERAGE / COUNT / COUNTA — the mean, the number of numeric cells, the number of non-empty cells. COUNT counts only numbers; COUNTA counts text too. Count "respondents" with COUNT and the text answers go missing.
SUBTOTAL — calculates only the visible rows when a filter is on. In =SUBTOTAL(9, D2:D100), the 9 means sum. Totalling a filtered list with SUM includes the hidden rows and gives the wrong answer.
Group 2. Conditions
IF — a different value depending on a test. =IF(D2>=50000, "High", "Normal"). With three or more conditions, IFS is easier to read.
SUMIF / COUNTIF — add or count only what matches a condition. "Total for Sales" is =SUMIF(B:B, "Sales", D:D). For two or more conditions use SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2). The common mistake is that the argument order differs from SUMIF.
IFERROR — show something else instead of an error. =IFERROR(VLOOKUP(...), "Not found"). It stops #N/A from landing in the report as is.
Group 3. Looking things up
VLOOKUP — fetch a value from another table. =VLOOKUP(lookup_value, table_range, column_number, FALSE). Leave off the final FALSE and it quietly returns an approximate match. The lookup value must be in the first column of the table, which is its main limitation.
XLOOKUP — the newer function without that limitation. =XLOOKUP(lookup_value, lookup_range, return_range, "Not found"). It can look to the left, and the fourth argument sets the value for a miss directly. If your version has it, use this one.
INDEX / MATCH — the combination that does the same job in older versions without XLOOKUP. =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)).
Group 4. Working with text
TEXT — turn a number or date into text in the shape you want. =TEXT(A2, "yyyy-mm") builds a key for monthly totals; =TEXT(D2, "#,##0") puts an amount inside a sentence.
LEFT / RIGHT / MID, TRIM — cut text and remove spaces. The first four characters of an ID are =LEFT(A2, 4). When a VLOOKUP fails because of leading or trailing spaces in imported data, clean it with TRIM first.
Group 5. Dates
TODAY / EOMONTH — today's date, and the last day of the month a date falls in. For deadlines, =EOMONTH(A2, 0) (end of this month) and =EOMONTH(A2, 1) (end of next month). Dates are numbers inside Excel, so =B2-A2 gives the difference in days directly.
Three habits that matter more than the functions
- Keep raw data and calculations apart. No formulas on the raw-data sheet; functions only on the summary sheet. Refreshing the raw data then never breaks the summary.
- Prefer a table (
Ctrl+T) to whole-column ranges (D:D). A table's range grows with the rows automatically. - Don't be stingy with helper columns. Two extra columns are kinder to your future self than five functions nested in one cell.
With these twelve in your hands, you look like "the Excel person". The other 388 can be searched for when needed.