Excel is still the world's most-used analytics tool. If you can write 15 formulas well, you can solve 90% of analyst day-to-day work. This chapter is those 15.
Cell references — relative, absolute, mixed
| Reference | Behaviour when copied |
|---|---|
| A1 | both row and column shift |
| $A1 | column locked, row shifts |
| A$1 | row locked, column shifts |
| $A$1 | both locked |
Logical — IF, IFS, AND, OR
=IF(A2 >= 60, "Pass", "Fail")=IF(AND(A2>=60, B2>=60), "Pass", "Fail")-- IFS replaces nested IFs (Excel 2019+)=IFS(A2>=90, "A+",A2>=75, "A",A2>=60, "B",TRUE, "C")
Aggregates — SUMIFS, COUNTIFS, AVERAGEIFS
-- Sum revenue for North region in Q1 2026=SUMIFS(D:D, // sum rangeA:A, "North", // criteria 1B:B, ">=2026-01-01", // criteria 2B:B, "<=2026-03-31") // criteria 3-- Count orders > ₹1000 in Mumbai=COUNTIFS(C:C, "Mumbai", D:D, ">1000")-- Average order value per region=AVERAGEIFS(D:D, A:A, "South")
Lookups — XLOOKUP, INDEX/MATCH
XLOOKUP (Excel 2021+) replaces both VLOOKUP and HLOOKUP. Use it whenever you can.
-- Modern: XLOOKUP=XLOOKUP(A2, // what to findProducts[ID], // where to lookProducts[Price], // what to return"Not found" // if missing)-- Backward search — find the LAST match=XLOOKUP(A2, Products[ID], Products[Price], , 0, -1)-- Legacy systems: INDEX/MATCH=INDEX(Products[Price], MATCH(A2, Products[ID], 0))
Dynamic arrays — FILTER, UNIQUE, SORT
Excel 2021+ introduced spilling formulas. One formula → many cells.
-- All orders > ₹10,000 — spills down automatically=FILTER(Orders, Orders[Amount] > 10000)-- Distinct cities=UNIQUE(Orders[City])-- Sorted by revenue desc=SORT(Orders, 4, -1)-- Top 5 products by revenue=TAKE(SORT(Products, 2, -1), 5)
Text functions
=LEFT("Albero", 3) // "Alb"=RIGHT("Albero", 3) // "ero"=MID("Albero Academy", 8, 7) // "Academy"=LEN("Albero") // 6=UPPER("hello") / LOWER("WORLD") / PROPER("aanya kapoor")=TRIM(" spaces ") // "spaces"=TEXTSPLIT("a,b,c", ",") // {"a","b","c"}=TEXTJOIN(",", TRUE, A1:A10)
Key takeaways
- 01F4 cycles through reference types — memorise it.
- 02IFS replaces nested IFs; SWITCH handles equality chains.
- 03SUMIFS/COUNTIFS/AVERAGEIFS take ANY number of criteria.
- 04XLOOKUP > VLOOKUP — bi-directional, with a default value, no column number.
- 05Dynamic arrays (FILTER, UNIQUE, SORT) replace pivot tables for many use cases.
- 06TEXTSPLIT and TEXTJOIN make string surgery painless.
