Excel Formulas for Data Analysis
Most analysis work is three moves: find the matching row, filter to the subset you care about, aggregate it. This is the formula stack for those moves, ordered by how often you will reach for each.
The functions you will actually use
| Function | What it does in this workflow |
|---|---|
| XLOOKUP | Exact-match lookup with a built-in “not found” default — the modern replacement for VLOOKUP. |
| INDEX-MATCH | The lookup that works in every Excel version, in any direction. |
| FILTER | Return every row matching a condition as a dynamic array (Excel 365/2021). |
| UNIQUE | Distinct values from a column — the first step of any group-by. |
| SORT | Order a spilled range without touching the source data. |
| SUMIFS | Sum with multiple criteria: region + date + status in one formula. |
| COUNTIFS | Count rows meeting several conditions — the QA counterpart of SUMIFS. |
| AVERAGEIFS | Conditional averages without helper columns. |
| XMATCH | Position of a value in a list; pairs with INDEX for custom lookups. |
Worked examples (engine-computed)
=XLOOKUP("East", A2:A5, B2:B5)
=SUMIFS(B2:B6, A2:A6, "East", B2:B6, ">10000")
=COUNTA(UNIQUE(A2:A6))
FALSE, or switch to XLOOKUP, which defaults to exact match. Our VLOOKUP vs XLOOKUP comparison shows the failure case side by side.XLOOKUP or INDEX-MATCH — which should I learn first?
If you have Excel 365 or 2021, learn XLOOKUP first: one function, exact match by default, searches any direction. Learn INDEX-MATCH when you must support older versions or shared workbooks.
Does FILTER work in Excel 2016?
No. FILTER, UNIQUE and SORT are dynamic-array functions available in Excel 365 and Excel 2021+. Each of our labs states its platform support; for older Excel use helper-column patterns with SUMIFS and COUNTIFS.
Want the whole stack in one place?
Every function above has a free live lab with original benchmarks and a compatibility matrix. Start with the lookup family, then add conditional aggregation.
Browse all function labsFree practice workbook