Excel test prep · Lesson 4 of 9
Advanced Excel test: 24 practice questions with answers
Free advanced Excel test: 24 questions on dynamic arrays, INDEX/MATCH, SUMPRODUCT, LET, LAMBDA, Goal Seek, Power Query and the Data Model, explained.
This advanced Excel test is aimed at analyst, finance and reporting roles where "advanced Excel" is in the job description. It covers dynamic arrays, two-way lookups, SUMPRODUCT, LET and LAMBDA, what-if analysis, Power Query and the Data Model, plus a few find-the-bug questions. There are 24 questions; allow about 35 minutes.
Functions such as FILTER, UNIQUE, SORTBY, TAKE, LET, LAMBDA and GROUPBY need Microsoft 365 (most also work in Excel 2021 and later). Real advanced tests increasingly assume them. If the intermediate topics are not yet automatic, take Intermediate Excel test: 24 practice questions with answers first.
Part 1: Dynamic arrays and modern functions
Parts 1 and 2 use this quarterly sales table in A1:D8.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rep | Region | Q1 | Q2 |
| 2 | Ana | North | 120 | 150 |
| 3 | Ben | South | 90 | 80 |
| 4 | Cara | North | 200 | 170 |
| 5 | Dev | East | 60 | 110 |
| 6 | Eli | South | 140 | 130 |
| 7 | Fay | East | 100 | 95 |
| 8 | Gus | North | 75 | 85 |
Quarterly sales by rep, used in Parts 1 and 2.
1. What does =ROWS(UNIQUE(B2:B8)) return?
UNIQUE spills the distinct regions (North, South, East) and ROWS counts them. This is a common way to count distinct values in Microsoft 365. See Dynamic arrays: spill, FILTER, SORT, UNIQUE, SEQUENCE and #.
2. What does =FILTER(A2:A8,D2:D8>C2:C8) return?
FILTER keeps rows where Q2 is greater than Q1: Ana (150 > 120), Dev (110 > 60) and Gus (85 > 75). The result spills into as many cells as needed.
3. What does =TAKE(SORTBY(A2:A8,C2:C8+D2:D8,-1),1) return?
SORTBY sorts the names by total sales, largest first (-1). Cara has 200 + 170 = 370, the highest. TAKE with 1 keeps only the first row of the sorted list.
4. What does =LET(t,C2:C8+D2:D8,MAX(t)-MIN(t)) return?
LET names the array of totals t once and reuses it. The totals are 270, 170, 370, 170, 270, 195 and 160, so 370 - 160 = 210. See LET and LAMBDA: variables and your own functions.
5. What does =MAP(C2:C4,D2:D4,LAMBDA(a,b,MAX(a,b))) return?
MAP runs the LAMBDA once per row, pairing C2 with D2, C3 with D3 and so on, and returns the larger of each pair: max(120,150), max(90,80), max(200,170).
6. What does =REDUCE(0,C2:C8,LAMBDA(acc,x,IF(x>100,acc+1,acc))) return?
REDUCE walks through C2:C8 carrying an accumulator that starts at 0, adding 1 for each value above 100: 120, 200 and 140. The value 100 (Fay) is not above 100. =COUNTIF(C2:C8,">100") gives the same answer more simply.
7. A formula =SEQUENCE(4) in F2 returns #SPILL!. What is the most likely cause?
A dynamic array needs every cell of its spill range to be empty. Clear the blocking cell (Excel draws a dashed border around the range it needs). Spilling into an Excel table also causes #SPILL!. See Formula errors: what each one means and how to fix it.
Part 2: Lookups, SUMPRODUCT and multiple conditions
8. What does =SUMPRODUCT((B2:B8="North")*(C2:C8+D2:D8)) return?
The comparison returns TRUE/FALSE for each row; multiplying turns them into 1/0. Only North rows keep their Q1+Q2 totals: 270 + 370 + 160 = 800. See SUMPRODUCT.
9. What does =INDEX(C2:D8,MATCH("Eli",A2:A8,0),MATCH("Q2",C1:D1,0)) return?
The first MATCH finds Eli in row 5 of the range, the second finds Q2 in column 2. INDEX returns the value at row 5, column 2 of C2:D8. This two-way lookup works in every Excel version. See Lookup guide: VLOOKUP vs INDEX/MATCH vs XLOOKUP.
10. What does =XLOOKUP(1,(B2:B8="South")*(C2:C8>100),A2:A8) return?
Multiplying the two conditions gives 1 only where both are true. Ben is South but has 90 in Q1; Eli is South with 140. XLOOKUP looks for the first 1. This is the standard multi-condition lookup pattern.
11. Find the bug: =SUM(FILTER(D2:D8,AND(B2:B8="North",C2:C8>100))) is meant to add Q2 for North reps with Q1 above 100, but it returns an error. Why?
AND looks at all values together and returns one value, so FILTER no longer receives an include array of the right size. Multiply the conditions instead: =SUM(FILTER(D2:D8,(B2:B8="North")*(C2:C8>100))) returns 320 (Ana 150 + Cara 170). Use + for OR logic.
12. What does =GROUPBY(B2:B8,C2:C8,SUM) show next to North (Microsoft 365)?
GROUPBY lists each region once and aggregates Q1 with SUM: 120 + 200 + 75 = 395. It also adds a Total row at the bottom by default. It is a formula-based alternative to a small pivot table.
13. Which function is volatile, meaning it recalculates every time anything in the workbook changes?
OFFSET, INDIRECT, NOW, TODAY and RAND are volatile. Thousands of them slow a workbook down. INDEX can usually build the same dynamic range without being volatile.
14. A table named Sales has a column Q1. Which formula adds that column and keeps working when rows are added?
Structured references name the table and column, and they resize with the table. Sales!Q1 would point to cell Q1 on a sheet called Sales. See Excel tables and structured references.
Part 3: What-if analysis, Power Query and the Data Model
15. A loan model shows the monthly payment in B6. You want to know which interest rate in B2 gives a payment of exactly 500. Which tool is fastest?
Goal Seek changes one input until a formula cell reaches a target value. A Data Table shows many results for a list of inputs, which is better for sensitivity tables. See What-if analysis: Goal Seek, Data Tables, Scenario Manager and Solver.
16. You need a grid showing the payment for 5 interest rates (down the side) and 4 loan terms (across the top). Which tool builds it with one formula?
A two-variable Data Table recalculates the model for every combination of a row input and a column input. Scenario Manager stores a few named sets of inputs, and Goal Seek solves for one target.
17. Every month you receive a new CSV file in the same folder and need all of them stacked into one table. What is the most robust approach?
Power Query combines every file in the folder, applies the same cleaning steps, and picks up new files on Refresh. Copy-paste is slow and error-prone, and INDIRECT does not work with closed files. See Power Query basics: import, clean, append, merge, refresh.
18. You have an Orders table and a Customers table. You want a pivot table with customer segment and order totals, without adding VLOOKUP columns. What should you use?
The Data Model (Power Pivot) links tables through relationships, and one pivot table can then use fields from both. See Power Pivot and the Data Model: relationships and DAX measures.
19. In Power Query, where are the cleaning steps you apply stored?
Each transformation becomes a step written in the M language. Refreshing reruns the steps on the new data, which is why Power Query replaces repetitive manual cleaning.
Part 4: Formula engineering
20. What does =LAMBDA(x,x*1.2)(50) return?
Writing the argument in brackets straight after a LAMBDA calls it immediately with x = 50, so 50 * 1.2 = 60. Saved in Name Manager as AddVAT, it becomes =AddVAT(50). See LET and LAMBDA: variables and your own functions.
21. In F1, =SEQUENCE(3,2) spills a block. What value is in F2?
SEQUENCE fills across first, then down: row 1 holds 1 and 2, row 2 holds 3 and 4, row 3 holds 5 and 6. F2 is the first cell of row 2.
22. A workbook with 50,000 rows recalculates slowly. Which change usually helps most?
Array-style functions evaluate every cell they are given, so A:A means over a million cells per formula. SUMIFS handles whole columns efficiently, but SUMPRODUCT does not. Volatile functions such as INDIRECT make things worse.
23. F2 holds =UNIQUE(B2:B8), which spills the three regions. Which formula in G2 returns the Q1 total for every region in that list and keeps up when the list grows?
The # after a cell refers to its whole spill range, so F2# grows or shrinks with the UNIQUE list in F2. Passing it as the condition makes SUMIFS spill one total per region: East gets 60 + 100 = 160.
24. A colleague's formula =VLOOKUP(A2,Prices!A:B,2) returns wrong prices for some products, but never an error. What is the most likely bug?
Without FALSE (or 0), VLOOKUP uses approximate match, which assumes the first column is sorted and quietly returns the nearest smaller item. Always use exact match for codes and names, or use XLOOKUP, which is exact by default.
Next: Excel VBA test: 25 practice questions with answers if the role involves automation, Excel test for finance roles: 25 practice questions for finance roles, or Practical Excel test: 8 interview tasks with model answers to practise a full interview case.