Logical Functions
Intermediate

IF for an empty cell

Test for "" before calculating with a cell that might not be filled in yet.

Task:

Column C holds the amount received against each invoice, and stays empty until the customer pays. In D2:D6 show Unpaid when nothing has been received yet, otherwise the balance still owed (invoice minus received).

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

6 rows × 4 columns5 cells you fill in
ABCD
1InvoiceAmountReceivedBalance
2INV-31012001200
3INV-311850
4INV-31224001500
5INV-313640
6INV-314990900
What this exercise teachesMay contain the answer

Without the test, an empty Received cell counts as zero and the invoice shows its full amount as a balance, which looks exactly like a customer who paid nothing on purpose. Separating "not paid yet" from "paid zero" is the point; INV-310 correctly shows a balance of 0.