If you freelance, you have probably had the moment where you realise a client still owes you for work you finished two months ago. Nobody decided not to pay. The invoice just fell out of everyone's memory, including yours.

An invoice tracker fixes that, and you can build a good one in a spreadsheet in about twenty minutes. This post walks through the two tabs and six formulas I would start with. Everything works the same in Google Sheets and Excel.

The layout

Invoices, one row per invoice. You type the first five columns. The rest calculate.

A B C D E F G H I J
1 Invoice # Client Invoice date Terms (days) Amount Due date Paid Balance Status Days overdue

Payments, one row per payment received: date, invoice number, amount.

Keeping payments on their own tab matters. Clients pay in parts, and a single "paid" checkbox on the invoice row cannot record that an $800 invoice has had $300 against it.

Formula 1: due date

=IF(C2="","",C2+D2) 

Dates are numbers in a spreadsheet, so invoice date plus 30 is the date 30 days later. The IF keeps empty rows empty.

Formula 2: paid so far

=SUMIFS(Payments!$C:$C, Payments!$B:$B, $A2) 

Sum the payment amounts, but only the rows whose invoice number matches this row. Two payments against one invoice simply add up.

Formula 3: balance

=E2-G2 

Formula 4: status

=IF(E2="","No amount",IF(H2<=0,"Paid",IF(TODAY()>F2,"Overdue",IF(G2>0,"Partial","Open")))) 

Read it from the outside in:

  1. No amount typed yet: say so, instead of calling a blank row "Paid".
  2. Nothing left to pay: Paid.
  3. Past the due date with money still owed: Overdue.
  4. Some money in, not yet due: Partial.
  5. Otherwise: Open.

The order matters. An invoice that is both partly paid and late should read Overdue, because that is the one you need to chase.

Formula 5: days overdue

=IF(AND(E2<>"",H2>0,TODAY()>F2),TODAY()-F2,0) 

Zero unless there is a balance and the due date has passed.

Here is what the tab looks like with a few sample rows (dates relative to 23 November):

Invoice # Client Amount Due Paid Balance Status Days overdue
INV-001 Acme 1,200 1 Oct 1,200 0 Paid 0
INV-002 Birch 800 9 Nov 300 500 Overdue 14
INV-003 Acme 1,500 10 Dec 500 1,000 Partial 0
INV-004 Cole 950 15 Aug 0 950 Overdue 100
INV-006 Dune 2,000 31 Jul 750 1,250 Overdue 115

Formula 6: aging buckets

Aging answers one question: of the money I am owed, how much is a little late and how much is seriously late? On a third tab:

1-30 days =SUMIFS(Invoices!$H:$H, Invoices!$J:$J, ">=1", Invoices!$J:$J, "<=30") 31-60 days =SUMIFS(Invoices!$H:$H, Invoices!$J:$J, ">=31", Invoices!$J:$J, "<=60") 61-90 days =SUMIFS(Invoices!$H:$H, Invoices!$J:$J, ">=61", Invoices!$J:$J, "<=90") Over 90 =SUMIFS(Invoices!$H:$H, Invoices!$J:$J, ">90") 

With the sample rows that gives $500 in the first bucket and $2,200 over 90 days. That second number is the useful one. The $500 will probably arrive by itself. The $2,200 needs a phone call this week.

The same pattern gives you a balance per client:

=SUMIFS(Invoices!$H:$H, Invoices!$B:$B, "Acme", Invoices!$H:$H, ">0") 

Things that go wrong

Invoice numbers that look like numbers. Type 0042 into a cell and the spreadsheet stores 42. A prefix such as INV-0042 keeps every invoice number as text, exactly as you typed it, on both tabs.

Overpayments. If a client pays twice, the balance goes negative. The status formula above still calls it Paid, which is fine, but the per-client formula uses ">0" so that a credit on one invoice does not hide a debt on another.

The same invoice number typed twice. Both rows will show the full payment total. Add a duplicate check with =COUNTIF($A:$A,A2)>1 and conditional formatting.

Where to take it next

From here the natural additions are a client list with each client's own payment terms, a dashboard with invoiced compared with collected per month, and a printable statement for the client who says "can you send me everything outstanding".

If you would rather start from a finished file, I sell one with those parts built in: Invoice & Payment Tracker. The six formulas above are the heart of it, and a blank sheet is enough to start with today.

Disclosure: I make and sell spreadsheet templates for small businesses at BizDocs Studio.