
- No. 64
- Medium
- 10 minutes
- Any spreadsheet app
Total only the unpaid invoices
Twelve invoices sit in rows 2 to 13. The amount is in column B and the status, Paid or Unpaid, is in column C. Five are unpaid, and their amounts are 120, 340, 85, 410 and 285. Write one formula that totals only the unpaid invoices, without adding by hand. What does it return?
Hint 1
Say in words what you want to add up, and under which condition.
Hint 2
Look for a function that adds a cell only when another cell passes a test.
Hint 3
It needs three things: the cells to test, the test itself and the cells to add.
Show the answer
=SUMIF(C2:C13,"Unpaid",B2:B13) returns 1,240. It checks column C for the word Unpaid and adds the matching amounts from column B.






