How to Sum Values With Multiple Criteria in Excel Using SUMIFS
Total only paid web orders, then change the channel or status without rewriting the formula. Use a four-row test to catch an incorrect total.
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
If column A holds the channel, B holds the payment status and C holds the amount, use
=SUMIFS(C2:C5,A2:A5,"Web",B2:B5,"Paid"). A row contributes to the total only when both conditions match. Put the amounts first, then add each column and its condition as a pair.
1. Enter four orders that test both conditions
Type Channel, Status and Amount across A1:C1. Enter the records below in order. Type the amounts as numbers. You can apply Currency formatting afterward. The open web order and the paid store order are useful checks because each satisfies only one of the two conditions.
| Channel | Status | Amount |
|---|---|---|
| Web | Paid | $40 |
| Web | Open | $25 |
| Web | Paid | $15 |
| Store | Paid | $90 |
2. Check the web total before adding the status
Click E2 and enter =SUMIFS(C2:C5,A2:A5,"Web"). You should see 80. That is 40 plus 25 plus 15. If the result is 170, the formula is counting every order. Check that A2:A5 is the criteria range and Web appears inside straight quotation marks.
3. Narrow the total to paid orders
In E3 enter =SUMIFS(C2:C5,A2:A5,"Web",B2:B5,"Paid"). The result should drop to 55. The $25 order is still open, and the $90 order came from the store. To verify which rows contributed, check the amounts in C2 and C4.
4. Make the report respond to two input cells
Enter Web in F2 and Paid in G2. In H2 enter =SUMIFS(C2:C5,A2:A5,F2,B2:B5,G2). Leave the cell addresses outside quotation marks so Excel reads their contents. Change F2 to Store and expect 90. Change G2 to Open while Store is selected and expect zero.
For a report that several people use, add drop-down lists to the two input cells. This keeps the labels consistent with the order list.
What to check when the total looks wrong
Each range must start and end on matching rows. If you add a sixth row, extend all three ranges through row 6. When the result is unexpectedly zero, check the spelling and trailing spaces in the labels. Use =ISNUMBER(C2) to test whether an imported amount is numeric.
Microsoft Support · SUMIFS function
Comments
Read or join the discussion.