LookupLab
Home › Use Cases › Excel Formulas for Data Analysis

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

FunctionWhat it does in this workflow
XLOOKUPExact-match lookup with a built-in “not found” default — the modern replacement for VLOOKUP.
INDEX-MATCHThe lookup that works in every Excel version, in any direction.
FILTERReturn every row matching a condition as a dynamic array (Excel 365/2021).
UNIQUEDistinct values from a column — the first step of any group-by.
SORTOrder a spilled range without touching the source data.
SUMIFSSum with multiple criteria: region + date + status in one formula.
COUNTIFSCount rows meeting several conditions — the QA counterpart of SUMIFS.
AVERAGEIFSConditional averages without helper columns.
XMATCHPosition of a value in a list; pairs with INDEX for custom lookups.

Worked examples (engine-computed)

Look up East region sales
=XLOOKUP("East", A2:A5, B2:B5)
Result: 12400 — computed with the same HyperFormula 3.5 engine that powers our labs, not hand-calculated.
Sum East sales above 10,000
=SUMIFS(B2:B6, A2:A6, "East", B2:B6, ">10000")
Result: 27600 — computed with the same HyperFormula 3.5 engine that powers our labs, not hand-calculated.
Count distinct regions
=COUNTA(UNIQUE(A2:A6))
Result: 3 — computed with the same HyperFormula 3.5 engine that powers our labs, not hand-calculated.
The mistake to avoid. VLOOKUP's silent default. Omit the fourth argument and VLOOKUP assumes approximate match — on unsorted data it returns a plausible-looking wrong row with no error. Always pass 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

Other use cases