Excel Case Take the free check

SUMIFS in a finance Excel test: worked example and the trap

By Excel Case · Updated

SUMIFS is the function finance Excel tests use most. Here is a typical question, the answer, and the mistake that makes a correct-looking total wrong.

In short: SUMIFS(sum_range, criteria_range1, criteria1, …) adds the numbers that meet every condition. In tests it is usually sales by region and period. The trap: SUMIFS silently skips numbers stored as text, so the total looks fine but is too low. In the example below it returns 7,640 when the right answer is 8,840.

The test question

Brief: "What were North's sales in Q2 2026?" The export looks like this:

Sheet: Orders
A: DateB: RegionC: ProductD: Sales
228 Mar 2026NorthDesk2,400
33 Apr 2026NorthChair1,150
411 Apr 2026SouthDesk3,200
519 Apr 2026NorthDesk2,750
62 May 2026NorthLamp1200 (stored as text)
715 May 2026SouthChair980
88 Jun 2026NorthChair1,640
930 Jun 2026NorthDesk2,100
101 Jul 2026NorthLamp900

Put the region in G1 (North), the first day of the quarter in G2 (1 Apr 2026) and the first day of the next quarter in G3 (1 Jul 2026).

The answer

=SUMIFS(D2:D10,B2:B10,G1,A2:A10,">="&G2,A2:A10,"<"&G3)

Excel returns 7,640. The correct answer is 8,840.

The trap: numbers stored as text

Row 6 holds 1200 as text, which is common in exports. SUMIFS skips it with no error and no warning. The total is 1,200 short.

How to catch it in a test:

The same silent miss happens when a region is typed North with a trailing space. If you suspect that, clean the column with =TRIM(B2) first.

Two more conditions

Desks only, North, Q2: add one more pair, C2:C10,"Desk". The answer is 4,850. Partial text works with wildcards: "*Desk*" matches "Standing Desk".

For "North or South", SUMIFS can't do OR in one go. Add two SUMIFS together, or see SUMPRODUCT.

Questions people ask

What is the difference between SUMIF and SUMIFS?

SUMIF takes one condition and puts the sum range last. SUMIFS takes one or more conditions and puts the sum range first. Use SUMIFS everywhere so you only remember one order.

Why does my SUMIFS return 0?

Usually the condition never matches: a trailing space, a typo, a date stored as text, or a condition written as >=G2 instead of ">="&G2. Check one row by hand with a simple equals test, like =B2=G1.

Can SUMIFS use whole columns?

Yes. =SUMIFS(D:D,B:B,G1) picks up new rows automatically. All ranges must be the same size, so don't mix D:D with B2:B10.

Now try one that marks itself

The free check gives you an email, a messy export and 10 minutes. It re-runs your formulas on data you haven't seen and shows what broke.

Start the free check

Keep practising