Spreadsheets for analysts: lookups and pivot tables
Use a lookup formula to pull a value from another table, a pivot table to count and total a list, and sanity checks to prove the answer before you share it.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: The school register. A school register is a simple table of names. Each row is a pupil. You can sort it, filter it and count it. A teacher can also look up a pupil's class by finding the name and reading across the row.
A spreadsheet is a grid of cells in rows and columns, like that register. Two skills turn a plain list into answers. The first is a lookup. The second is a .
A finds a row in one table by a matching value, and returns a value from that row. Daily List is a to-do app. Its task list holds a user number but not the plan name. The user list holds both. A lookup takes the user number from each task and fetches the plan name.
A pivot table is a summary table that groups the rows of a list and counts or adds them. You choose which column makes the rows, and which makes the columns. The sheet does the counting for you.
Sam, the , uses both to answer Nina's question: "How many open tasks do free users have?"
A paper register has one writer. A spreadsheet can be changed by anyone, and a wrong change makes no noise. So every answer needs a check.
PLAIN WORDS · 1 in this section
- spreadsheet
- a grid of rows and columns holding numbers or text
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB The picture helps a newcomer remember that a lookup fetches a detail by key, a counts a list, and a check proves both.
- Clean list
- Look up the detail
- Build the pivot
- Check the total
- Share the answer
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| Finding a pupil's class from their name | A lookup formula |
| The pupil's name on the register | The key the lookup matches |
| Counting pupils by class and by day | A pivot table |
| Asking if the class total fits the number of chairs | A sanity check |
| Someone rubbing out a name on the register | A silent change to the sheet |
WHERE THIS PICTURE STOPS
- A paper register has one writer. A sheet can be changed by anyone, so checks matter more.
- A teacher notices a name that is missing. A lookup may return a near match with no warning.
- A register is small. A sheet can hold thousands of rows, so a human cannot read it all.
HOOK
Find it, count it, then check it.
REMEMBER IT THIS WAY
A contrast: two neighbours told apart by one test.
Ask whether you want one row's answer or a summary of many rows. A lookup fetches a value by key, while a groups and counts.
| In the trick | What it stands for |
|---|---|
| Lookup | Finds a row in one table by a matching value, and returns a value from that row |
| Pivot table | Groups the rows of a list and counts or adds them |
TELL A FRIEND
A lookup fetches a value from another table by key, and a groups and counts a list. A proves the total before you trust it.
OFTEN MIXED UP WITH SQL for BAs: GROUP BY and counts. That topic counts and totals rows with a query. This one does the same job with a lookup and a in a sheet.
Sources & standards — 4 sources
- Implementation-specific
VLOOKUP function (Microsoft Support) ↗ — Microsoft · Syntax/arguments, exact versus approximate matching, common problems and best practices; selected full functional reference read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Implementation-specific
XLOOKUP function (Microsoft Support) ↗ — Microsoft · Syntax, exact default, first match, missing-match and Excel 2016/2019 availability note; functional reference read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Implementation-specific
Create a PivotTable to analyze worksheet data (Microsoft Support) ↗ — Microsoft · Windows source-table expansion and refresh, value aggregation and format tips; selected sections read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Implementation-specific
Create & use pivot tables (Google Docs Editors Help) ↗ — Google · Computer instructions, source-range editing, source-cell automatic refresh and calculated fields; functional sections read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
PRACTISE AND KEEP
Sources for this topic — 14 sources
- Market practice
VLOOKUP function (Microsoft Support) ↗ — Microsoft · VLOOKUP function (Microsoft Support): the fourth argument FALSE gives an exact match, and a missing value returns #N/A (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Create a PivotTable to analyze worksheet data (Microsoft Support) ↗ — Microsoft · Create a PivotTable to analyze worksheet data (Microsoft Support): one header row, no blank rows or columns, and fields placed in Rows, Columns and Values (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Power Query: building in checks and controls, part 1 (Institute of Chartered Accountants in England and Wales) ↗ — Institute of Chartered Accountants in England and Wales · Power Query: building in checks and controls, part 1 (Institute of Chartered Accountants in England and Wales): reconcile the input total with the output total, and a match does not prove correctness (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Create & use pivot tables (Google Docs Editors Help) ↗ — Google · Create & use pivot tables (Google Docs Editors Help): each column needs a header and the table refreshes when the source cells change (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
XLOOKUP function (Microsoft Support) ↗ — Microsoft · XLOOKUP function (Microsoft Support): XLOOKUP finds an item in a table by row and is not in the oldest Excel versions (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
How to look up values to the left using INDEX MATCH or XLOOKUP (WPS guide) ↗ — WPS · How to look up values to the left using INDEX MATCH or XLOOKUP (WPS guide): INDEX with MATCH can return a column to the left of the lookup column (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, its numbers and the people are invented. Real sheets hold thousands of rows. The formulas shown work in Excel and in Google Sheets with the same text. The pivot table counts were checked with COUNTIFS formulas in LibreOffice Calc, not in a pivot table screen. The order of the checks is common practice with no single standard.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
Excel VLOOKUP not working: #N/A, #VALUE, #NAME (Ablebits) ↗ — Ablebits · Cause list from Ablebits 'VLOOKUP not working' and ONLC pages (search excerpts, pages not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Top 10 pivot table problems (MyExcelOnline) ↗ — MyExcelOnline · Causes from MyExcelOnline 'top 10 pivot table problems', Excel Campus and SimpleSheets pages (search excerpts, pages not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Remove duplicate Excel records (TechRepublic) ↗ — TechRepublic · Guidance from TechRepublic and Ablebits duplicate-removal pages (search excerpts, pages not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Implementation-specific
VLOOKUP function (Microsoft Support) ↗ — Microsoft · Syntax/arguments, exact versus approximate matching, common problems and best practices; selected full functional reference read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Implementation-specific
XLOOKUP function (Microsoft Support) ↗ — Microsoft · Syntax, exact default, first match, missing-match and Excel 2016/2019 availability note; functional reference read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Implementation-specific
Create a PivotTable to analyze worksheet data (Microsoft Support) ↗ — Microsoft · Windows source-table expansion and refresh, value aggregation and format tips; selected sections read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Implementation-specific
Create & use pivot tables (Google Docs Editors Help) ↗ — Google · Computer instructions, source-range editing, source-cell automatic refresh and calculated fields; functional sections read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.