The SUMIFS, change, lookup guide
Three steps on one sheet: SUMIFS totals each category for each month, new minus old gives the change, and INDEX with MATCH(MAX(…)) names the biggest increase. It's the kind of task Excel tests at interviews are made of.
The task
An expense log has September and October mixed together. The question is simple: which category went up the most? Getting there takes three steps, and each one has its own trap.
1. Totals: one formula for the whole block
=SUMIFS($C$2:$C$18, $A$2:$A$18, F$1, $B$2:$B$18, $E2)
Written once in F2 and filled right and down, this fills all eight totals. The log is locked both ways. The month comes from row 1, so only its row is locked: F$1. The category comes from column E, so only its column is locked: $E2. That is the same move as the mixed reference challenge.
2. Change: new minus old
=G2-F2. A positive number means the category went up. Reverse it and every increase looks like a drop.
3. Name the biggest increase
=INDEX(E2:E5, MATCH(MAX(H2:H5), H2:H5, 0))
=XLOOKUP(MAX(H2:H5), H2:H5, E2:E5)
MAX finds the largest change. The lookup returns the category on the same row. The task asks for a name, not a number.
"Changed most" vs "went up most"
In this log, Travel moves the most, but down. The biggest increase is the largest positive change. If the question were "changed most in either direction", you'd compare ABS values instead. Read the question twice: interview tests are often decided by that word.
Common mistakes
- SUMIF instead of SUMIFS. One condition adds both months together.
- Locking too much.
$F$1keeps September in both columns;$E$2repeats Travel down every row. - The log not locked. It slides as you fill and rows drop out.
- Old minus new. Increases come out negative.
- Answering with the number. MAX gives 450; the question asks which category.
FAQ
- How do I calculate month-over-month change in Excel?
- Total each month (SUMIFS works when the data is a mixed log), then subtract: new month minus old month. Divide by the old month for a percent change.
- How do I find which category has the highest value?
- Look up the label on the row of the maximum: =INDEX(E2:E5,MATCH(MAX(H2:H5),H2:H5,0)), or in Excel 365 =XLOOKUP(MAX(H2:H5),H2:H5,E2:E5).
- How do I write one SUMIFS that fills a whole table?
- Lock the data ranges completely, the criteria in the header row with a row lock (F$1) and the criteria in the label column with a column lock ($E2). Then fill right and down.
- What is variance analysis in Excel?
- Comparing two periods, or plan against actual, line by line: the difference between the two, and often the percent change, to see what moved and why.
This task is in the timed finance and advanced Excel practice tests. What Excel interview tests check






























































