Excel SUMIFS

SUMIFS adds the numbers in one column, but only on rows where every condition you list is true.

A sales analyst gets the same request every Monday: revenue for one region, then one product inside that region, then only the larger orders. Filtering and reading the status bar works once, but the number is gone when the data changes. SUMIFS turns each of those questions into a formula that stays correct when new rows arrive.

Practice it now

How to write it

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
sum_range
The numbers to add.
criteria_range1
The column to test.
criteria1
The condition that column must meet.
criteria_range2, criteria2
Optional extra pairs. A row must pass all of them.

Watch it work

F2fx 
ABCDEFG
1RegionProductChannelRevenue
2NorthLaptopOnline4200
3SouthPhoneStore1800
4NorthPhoneOnline2100
5WestLaptopStore3900
6NorthLaptopStore2600
7SouthLaptopOnline3100
8
1

Three rows are North, so 4,200 + 2,100 + 2,600 are added.

Examples

Total revenue for North

=SUMIFS(D2:D7,A2:A7,"North")8,900

Three rows are North, so 4,200 + 2,100 + 2,600 are added.

North revenue from laptops only

=SUMIFS(D2:D7,A2:A7,"North",B2:B7,"Laptop")6,800

The North phone row now fails the second condition.

Online orders above 3,000

=SUMIFS(D2:D7,C2:C7,"Online",D2:D7,">3000")7,300

A column can be both the sum range and a test. Comparisons go inside quotes.

Your turn

Add up the revenue from laptops sold in a Store. Type your formula in F2.

ABCDEF
1RegionProductChannelRevenue
2NorthLaptopOnline4200
3SouthPhoneStore1800
4NorthPhoneOnline2100
5WestLaptopStore3900
6NorthLaptopStore2600
7SouthLaptopOnline3100
8

Common mistakes

Putting the sum range last, as you would in SUMIF.

In SUMIFS the numbers always come first.

Ranges of different heights, such as D2:D7 with A2:A6.

Excel returns #VALUE!. Every range must cover the same rows.

Writing >3000 without quotes.

Comparison conditions are text, so write ">3000". To use a cell, write ">"&F1.

Good to know

  • Put each condition in its own cell and refer to it, so one formula can power a whole summary table.
  • All conditions are AND logic. For OR, add two SUMIFS together.
  • SUMIFS or SUMIF? SUMIF handles exactly one condition and has its sum range last. SUMIFS handles one or many, so it is the safer habit.