How to use SUMIF

SUMIF adds up only the rows that match, such as the sales of one rep or one customer. Learn its three parts.

EasyPremium8 min
Task 1Add up only the rows that match5 questions

SUMIF adds the numbers on the rows that pass a test. It has three parts, split by commas.

Range to test
the cells that are checked, such as C2:C7
Test
what to look for, such as "Asha"
Range to add
the cells that are added up, such as D2:D7

=SUMIF(C2:C7,"Asha",D2:D7) reads: where column C says Asha, add the amount in column D.

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 2A test with a number, and a test kept in a cell3 questions