AnalystPracticeGuides
DashboardSign up

SUMIF vs SUMIFS: which one do you need?

SUMIF adds up the rows that match one condition. SUMIFS adds up the rows that match all of several conditions. SUMIFS also works with a single condition, so many analysts use only SUMIFS. Just remember that the argument order is different.

Watch it solved. Task 4: sum with conditions (SUMIFS), from 3:01, in our video “Data Analyst Interview Questions and Answers: 10 SQL + Excel Tasks, Solved”. Pressing play loads the video from YouTube (privacy). Open on YouTube

What is the syntax of each?

FunctionSyntax
SUMIFSUMIF(range, criteria, [sum_range])
SUMIFSSUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, …)

In SUMIF the column you add comes last. In SUMIFS it comes first. Mixing this up is the most common SUMIFS error.

How do you sum with one condition?

Regions are in A2:A9, products in B2:B9 and sales in C2:C9. Total sales for North:

=SUMIF(A2:A9,"North",C2:C9)

=SUMIFS(C2:C9,A2:A9,"North")

Both return the same number.

How do you sum with two or more conditions?

Laptop sales in the North region:

=SUMIFS(C2:C9,A2:A9,"North",B2:B9,"Laptop")

A row counts only if it meets every condition (AND logic).

How do you use "greater than", dates and cell references?

Put the operator in quotes and join it to a number or cell with &:

=SUMIFS(C2:C9,C2:C9,">=1000")

=SUMIFS(C2:C9,D2:D9,">="&F1)

=SUMIFS(C2:C9,D2:D9,">="&DATE(2026,1,1),D2:D9,"<"&DATE(2026,2,1))

The last one adds up January 2026: on or after 1 January and before 1 February.

Common mistake: writing ">=F1". Excel then looks for the text "F1", not the value in cell F1.

How do you sum with OR, for example North or South?

SUMIFS only does AND. For OR, add two results:

=SUMIFS(C2:C9,A2:A9,"North")+SUMIFS(C2:C9,A2:A9,"South")

or give SUMIFS a list and add up its results:

=SUM(SUMIFS(C2:C9,A2:A9,{"North","South"}))

Can you use wildcards?

Yes. * means any characters and ? means one character. Everything that starts with "Lap":

=SUMIFS(C2:C9,B2:B9,"Lap*")

Other mistakes that cost points

Ranges of different sizes (C2:C9 with A2:A10) return #VALUE! in SUMIFS. Numbers stored as text in the sum column are ignored without any warning, so the total is quietly too low. A quick check is to compare the result with a filter and the status bar sum.

Try it yourself. Practise SUMIF and SUMIFS in a real spreadsheet with instant feedback.
Practise SUMIF Practise SUMIFS

← All free guides