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)

RepIDNameRegion
R01AvaEast
R02BenWest
R03ChenEast
R04DiyaNorth

Sales export (Sales!A1:E9) — messy on purpose

DateRepIDProductAmountNotes
8-Jan-2025R01Hardware620
15-Jan-2025R02 Software410trailing space on ID
22-Jan-2025r03Hardware280wrong case
5-Feb-2025R01Software900
18-Feb-2025R04Hardware150
3-Mar-2025R03Hardware540
12-Mar-2025R02Hardware330
25-Mar-2025R01Hardware480

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)

  1. “I’d clean the ID with TRIM/UPPER so the lookup key matches the staff table.”
  2. “Then XLOOKUP—or INDEX/MATCH on older Excel—to bring Region, with locked ranges.”
  3. “An IF flags deals under 500 for review.”
  4. “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)

RowCleanIDRegionFlag
2R01EastOK
3R02WestReview
4R03EastReview
5R01EastOK
6R04NorthReview
7R03EastOK
8R02WestReview
9R01EastReview

KPIs: East Hardware March = 1020 · Q1 total = 3710 · Review count = 5.

Practice path after this case

  1. Beginners path if lookups still feel slow.
  2. Placement test for a level band.
  3. Timed drills: daily challenge · interview Q bank above.
  4. Desktop pack: free worksheets.

When you can rebuild this workbook cold in under 15 minutes, you are ready for the screen share.

Excel practice hub · Free lessons · Blog