How to use SUMIFS and COUNTIFS with two conditions

SUMIFS and COUNTIFS add or count only the rows that pass every test, such as one rep's sales to one customer. Learn the order of their parts.

MediumPremium9 min
Task 1SUMIFS adds the rows that pass every test3 questions

SUMIF takes one test. SUMIFS takes as many tests as you need, and adds a row only when it passes all of them.

Range to add
comes first in SUMIFS, such as D2:D7
A range and its test
written as a pair, such as C2:C7,"Asha"
More pairs
one pair for each extra test

Watch the order. In SUMIF the range to add comes last, and in SUMIFS it comes first. Both work the same way in Excel and Google Sheets.

Larkhill Stationery, sales list
ABCD
1InvoiceCustomerRepAmount
22101Quay DentalAsha240.00
32102Hollin SchoolBen412.50
42103Quay DentalBen95.00
52104Moss Lane VetsAsha130.25
62105Hollin SchoolAsha320.00
72106Quay DentalAsha75.50
Task 2COUNTIFS, and tests on figures3 questions

You work out a figure and sort items into the right place.