Unpaid invoices: nested IFs & IFS
Flag unpaid invoices and calculate the balance due using logical tests, a nested IF and the IFS function — 10 guided steps, write each formula then fill it down.
Write the formula in cell D2
1 / 10
Test: is the invoice unpaid?
=C2=""
2 / 10
Fill down the test (column D)
=C10=""
Write the formula in cell E2
3 / 10
Test: amount paid = invoiced amount?
=B2=C2
4 / 10
Fill down the test (column E)
=B10=C10
Write the formula in cell F2
5 / 10
IF: "KO" if unpaid, otherwise empty
=IF(C2="","KO","")
6 / 10
Fill down the IF (column F)
=IF(C10="","KO","")
Write the formula in cell G2
7 / 10
Nested IFs: KO / difference / empty
=IF(C2="","KO",IF(B2<>C2,B2-C2,""))
8 / 10
Fill down the nested IFs (column G)
=IF(C10="","KO",IF(B10<>C10,B10-C10,""))
Write the formula in cell H2
9 / 10
Same result with IFS
=IFS(C2="","KO",B2<>C2,B2-C2,TRUE,"")
10 / 10
Fill down IFS (column H)
=IFS(C10="","KO",B10<>C10,B10-C10,TRUE,"")
Your score is
Restart