Excel interview case study — one workbook, end to end (with answers)
A hiring-style case: clean a messy sales export, look up reps, flag deals, and total by region and month—with formulas, answers, and links into live drills.
Interviewers rarely ask you to recite function lists. They drop a messy sheet and watch whether you clean keys, look up attributes, flag rows, and summarize without breaking on fill-down. This case study is one story you can rehearse out loud in 15–20 minutes, then practice each skill in a live drill.
Pair with: Excel interview questions · one-week prep plan · placement test · practice hub.
The brief (say this back)
> “Here is a sales export. Clean the rep IDs, pull each rep’s region from a staff table, flag deals under $500 as Review, and tell me East hardware total for March—and Q1 overall.”
You will build four columns and two KPI cells. Narrate as you go: *trim → lookup → IF → SUMIFS*.
Sheet setup
Staff table (Staff!A1:C5)
| RepID | Name | Region |
|---|---|---|
| R01 | Ava | East |
| R02 | Ben | West |
| R03 | Chen | East |
| R04 | Diya | North |
Sales export (Sales!A1:E9) — messy on purpose
| Date | RepID | Product | Amount | Notes |
|---|---|---|---|---|
| 8-Jan-2025 | R01 | Hardware | 620 | |
| 15-Jan-2025 | R02 | Software | 410 | trailing space on ID |
| 22-Jan-2025 | r03 | Hardware | 280 | wrong case |
| 5-Feb-2025 | R01 | Software | 900 | |
| 18-Feb-2025 | R04 | Hardware | 150 | |
| 3-Mar-2025 | R03 | Hardware | 540 | |
| 12-Mar-2025 | R02 | Hardware | 330 | |
| 25-Mar-2025 | R01 | Hardware | 480 |
Use real dates in column A.
Step 1 — Clean the lookup key
In Sales!F2 (header CleanID):
=TRIM(UPPER(B2))
Fill down → R01, R02, R03, …
Why interviewers care: #N/A on lookups is often spaces or case, not a “broken VLOOKUP.” Deep dive: text cleanup before lookups · data prep practice · lab: data-prep-lab.
Check: row 3 CleanID is R02; row 4 is R03.
Step 2 — Look up Region
In Sales!G2 (header Region), prefer XLOOKUP if allowed:
=XLOOKUP(F2, Staff!$A$2:$A$5, Staff!$C$2:$C$5, "Missing")
INDEX/MATCH alternative:
=IFNA(INDEX(Staff!$C$2:$C$5, MATCH(F2, Staff!$A$2:$A$5, 0)), "Missing")
Lock the staff ranges with $ before fill-down. Compare approaches: XLOOKUP vs INDEX MATCH · drills: XLOOKUP · INDEX MATCH.
Answers after fill-down (G2:G9): East, West, East, East, North, East, West, East.
Step 3 — Flag small deals
In Sales!H2 (header Flag):
=IF(D2<500, "Review", "OK")
Fill down.
Answers (H2:H9): OK, Review, Review, OK, Review, OK, Review, Review.
Practice: IF exercises · IF lesson.
Step 4 — KPI: East Hardware in March 2025
On a Dashboard sheet (or below the table):
=SUMIFS(Sales!D2:D9, Sales!G2:G9, "East", Sales!C2:C9, "Hardware", Sales!A2:A9, ">="&DATE(2025,3,1), Sales!A2:A9, "<"&DATE(2025,4,1))
Answer → 1020 (540 + 480).
Date patterns: SUMIFS with dates · general: SUMIFS problems · drill: SUMIFS practice · worksheet: expenses.
Step 5 — KPI: Q1 total Amount
=SUMIFS(Sales!D2:D9, Sales!A2:A9, ">="&DATE(2025,1,1), Sales!A2:A9, "<"&DATE(2025,4,1))
Answer → 3710 (all eight rows fall in Q1).
Step 6 — Bonus they often add live
Count of Review rows
=COUNTIF(Sales!H2:H9, "Review") → 5
West Software total
=SUMIFS(Sales!D2:D9, Sales!G2:G9, "West", Sales!C2:C9, "Software") → 410
COUNTIF practice: COUNTIF exercises.
How to narrate in the interview (45 seconds)
- “I’d clean the ID with
TRIM/UPPERso the lookup key matches the staff table.” - “Then XLOOKUP—or INDEX/MATCH on older Excel—to bring Region, with locked ranges.”
- “An
IFflags deals under 500 for review.” - “SUMIFS with a half-open date range totals East hardware for March without month-length bugs.”
If they ask “what would you do in production?” mention a proper Table (Ctrl+T), data validation on RepID, and a pivot for exploration: pivot practice.
Full answer key (quick)
| Row | CleanID | Region | Flag |
|---|---|---|---|
| 2 | R01 | East | OK |
| 3 | R02 | West | Review |
| 4 | R03 | East | Review |
| 5 | R01 | East | OK |
| 6 | R04 | North | Review |
| 7 | R03 | East | OK |
| 8 | R02 | West | Review |
| 9 | R01 | East | Review |
KPIs: East Hardware March = 1020 · Q1 total = 3710 · Review count = 5.
Practice path after this case
- Beginners path if lookups still feel slow.
- Placement test for a level band.
- Timed drills: daily challenge · interview Q bank above.
- Desktop pack: free worksheets.
When you can rebuild this workbook cold in under 15 minutes, you are ready for the screen share.