Excel test prep · Lesson 9 of 9
Practical Excel test: 8 interview tasks with model answers
A hands-on Excel interview case: one sales dataset and 8 tasks (SUMIFS, COUNTIFS, XLOOKUP, ranking, flags, monthly totals) with model answers.
Many interviews end with a practical exercise: you get a small dataset and a list of tasks, and the interviewer either watches you work or collects the file after 30 to 60 minutes. This page simulates that. It has one dataset and 8 tasks of increasing difficulty, each with a model answer and the result you should get. Allow about 45 minutes, and try every task yourself in Excel before reading the answer.
Reviewers in these exercises look for three things: correct numbers, formulas they can follow, and a tidy layout that does not change the original data. Where there is a modern Microsoft 365 formula and an older one, both are shown, because you may not know which version the interviewer's laptop runs. For the general format of tests, see How Excel tests for jobs work (and how to prepare).
The dataset
Type or paste this table into a new sheet starting at A1. Column B holds real dates; enter them as dates, not text. It is a sales log for one quarter: one row per order, with the units sold and the unit price.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Order | Date | Region | Rep | Units | Price |
| 2 | S-101 | 2026-01-08 | North | Ana | 12 | 25 |
| 3 | S-102 | 2026-01-15 | South | Ben | 5 | 40 |
| 4 | S-103 | 2026-01-22 | North | Cara | 8 | 25 |
| 5 | S-104 | 2026-02-04 | East | Ana | 20 | 15 |
| 6 | S-105 | 2026-02-11 | South | Ben | 7 | 40 |
| 7 | S-106 | 2026-02-19 | North | Ana | 3 | 60 |
| 8 | S-107 | 2026-03-03 | East | Dev | 10 | 25 |
| 9 | S-108 | 2026-03-10 | South | Cara | 15 | 15 |
| 10 | S-109 | 2026-03-17 | North | Dev | 6 | 40 |
| 11 | S-110 | 2026-03-24 | East | Ben | 9 | 60 |
Sales log in A1:F11. Ten orders from January to March 2026.
Ctrl+T to make the data a table. Formulas then expand automatically if the interviewer adds rows, which is a common follow-up question. The model answers below use normal cell references so you can follow them either way. See Excel tables and structured references.Task 1: Add a Sales column and the total
Task. Add a column G called Sales (units times price) and show total sales for the quarter.
Model answer. In G1 type Sales. In G2 enter the formula below and double-click the fill handle to copy it to G11. Then put the total under the column or in a summary area.
=E2*F2
=SUM(G2:G11)| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Region | Rep | Units | Price | Sales |
| 2 | S-101 | 2026-01-08 | North | Ana | 12 | 25 | 300 |
| 3 | S-102 | 2026-01-15 | South | Ben | 5 | 40 | 200 |
| 4 | S-103 | 2026-01-22 | North | Cara | 8 | 25 | 200 |
| 5 | S-104 | 2026-02-04 | East | Ana | 20 | 15 | 300 |
| 6 | S-105 | 2026-02-11 | South | Ben | 7 | 40 | 280 |
| 7 | S-106 | 2026-02-19 | North | Ana | 3 | 60 | 180 |
| 8 | S-107 | 2026-03-03 | East | Dev | 10 | 25 | 250 |
| 9 | S-108 | 2026-03-10 | South | Cara | 15 | 15 | 225 |
| 10 | S-109 | 2026-03-17 | North | Dev | 6 | 40 | 240 |
| 11 | S-110 | 2026-03-24 | East | Ben | 9 | 60 | 540 |
| 12 | 2715 |
Column G holds =E2*F2 copied down. The total in G12 is the sum of the ten orders.
Result: 2715
Result. G2 is 300 (12 x 25) and the quarter total is 2,715. If you use a table, the formula reads =[@Units]*[@Price] and fills the column by itself.
Task 2: Total sales for one region
Task. What are the total sales for the North region?
Model answer. A conditional sum with SUMIFS, which keeps working if more conditions are added later. Better still, type North in a cell such as I2 and refer to it, so the interviewer can change the region.
=SUMIFS(G2:G11,C2:C11,"North")
=SUMIFS(G2:G11,C2:C11,I2)Result. North orders are S-101 (300), S-103 (200), S-106 (180) and S-109 (240): 920. Learn more in Counting and summing with criteria: COUNTIFS, SUMIFS, SUMPRODUCT.
Task 3: Count orders with two conditions
Task. How many orders did Ana take in February 2026?
Model answer. COUNTIFS with the rep and a date range. Use two date conditions (on or after the first day, on or before the last day) rather than a text month, because the dates are real numbers.
=COUNTIFS(D2:D11,"Ana",B2:B11,">="&DATE(2026,2,1),B2:B11,"<="&EOMONTH(DATE(2026,2,1),0))Result. 2 (S-104 on 4 February and S-106 on 19 February). Her January order is excluded. EOMONTH with 0 returns the last day of the same month, so the formula is correct for months of any length.
Task 4: Look up an order
Task. Next to an order number typed in I5, show the rep who handled it. Test it with S-107.
Model answer. XLOOKUP in Microsoft 365 or Excel 2021 and later; INDEX with MATCH in any version. VLOOKUP works too here because the order number is the first column, but it breaks if a column is inserted.
=XLOOKUP(I5,A2:A11,D2:D11,"Not found")
=INDEX(D2:D11,MATCH(I5,A2:A11,0))Result. Dev. With an unknown order such as S-199, the XLOOKUP version shows Not found instead of #N/A. See Lookup guide: VLOOKUP vs INDEX/MATCH vs XLOOKUP.
Task 5: Best rep by sales
Task. Which rep has the highest total sales, and how much?
Model answer. The quickest robust answer is a pivot table (Rep in Rows, Sum of Sales in Values, sorted largest to smallest). With formulas in Microsoft 365, build a small ranked summary that spills:
=LET(r,UNIQUE(D2:D11),t,SUMIFS(G2:G11,D2:D11,r),SORTBY(HSTACK(r,t),t,-1))| Rep | Sales |
|---|---|
| Ben | 1,020 |
| Ana | 780 |
| Dev | 490 |
| Cara | 425 |
Result. Ben, 1,020 (S-102, S-105 and S-110). In older versions, list the reps once (Data > Remove Duplicates on a copy), use =SUMIFS($G$2:$G$11,$D$2:$D$11,I2) next to each name, then sort. See UNIQUE, SORTBY and PivotTables: summarise thousands of rows in seconds.
Task 6: Flag large orders
Task. Add a column H that says Big when the order's sales are 300 or more and Normal otherwise, then count the big orders.
=IF(G2>=300,"Big","Normal")
=COUNTIF(H2:H11,"Big")Result. S-101 (300), S-104 (300) and S-110 (540) are Big, so the count is 3. Note the >=: two orders are exactly 300, and a strict > would miss them. Putting 300 in its own input cell is even better. =COUNTIF(G2:G11,">=300") gives the same count without the helper column. See IF and logical formulas: AND, OR, NOT, IFS and SWITCH.
Task 7: Monthly totals
Task. Show total sales for each month of the quarter.
Model answer. Either a pivot table with Date in Rows grouped by Months, or a small formula table. Put the first day of each month in I9:I11 (1-Jan-2026, 1-Feb-2026, 1-Mar-2026) formatted as mmm yyyy, and in J9:
=SUMIFS($G$2:$G$11,$B$2:$B$11,">="&I9,$B$2:$B$11,"<="&EOMONTH(I9,0))| Month | Sales |
|---|---|
| Jan 2026 | 700 |
| Feb 2026 | 760 |
| Mar 2026 | 1,255 |
Result. January 700, February 760, March 1,255; together 2,715, which matches Task 1. Checking that the parts add up to the total is a habit interviewers notice. See Dates and times: serial numbers, date math and working days.
Task 8: Weighted average price
Task. What is the average price per unit actually achieved in the South region?
Model answer. Divide South sales by South units. A plain AVERAGEIFS on the Price column would weight every order equally, no matter how many units it had.
=SUMIFS(G2:G11,C2:C11,"South")/SUMIFS(E2:E11,C2:C11,"South")
=ROUND(SUMIFS(G2:G11,C2:C11,"South")/SUMIFS(E2:E11,C2:C11,"South"),2)Result. 705 / 27 = 26.11. The unweighted =AVERAGEIFS(F2:F11,C2:C11,"South") gives 31.67, which is misleading because the largest South order (15 units) had the lowest price. Explaining this difference out loud is worth as much as the number. See SUMPRODUCT for another way to weight.
How the exercise is judged
- Correct results, checked against the reviewer's own totals.
- Live formulas, not typed values, and inputs (like 300 or
North) in cells rather than buried in formulas. - Original data untouched: helper columns and summaries sit beside it or on a new sheet.
- Clear labels and formats: currency or thousands separators on money, month names instead of serial numbers.
- A sanity check, such as monthly totals adding up to the grand total.
Check yourself
1. In Task 6, why does =IF(G2>300,"Big","Normal") give the wrong count?
The task says "300 or more", which is >=. S-101 and S-104 are exactly 300, so a strict > returns 1 instead of 3.
2. In Task 3, why use two date conditions instead of "February"?
A real date is a serial number; it never equals the text February. Comparing with the first and last day of the month counts every date in between. TEXT with a helper column is an alternative.
3. In Task 8, which statement about the South average price is correct?
Sales divided by units weights each price by how many units were sold. A simple average of three prices treats a 5-unit order the same as a 15-unit order.
4. The interviewer adds an 11th order in row 12 after you finish. What makes your answers update automatically?
Ranges such as G2:G11 stop at row 11. A table grows with new rows, and formulas that refer to its columns grow with it; pivot tables need a Refresh. See Excel tables and structured references.