How to track invoices and payments in Excel

The three invoices are a sample ledger. The sheet does not write a legal invoice, and it does not set terms for a real client.

Northline Studio, invoice 1041, was issued October 1, 2026 for $1,200 and is paid in full. Harbor Co, invoice 1042, was issued October 15 for $800, with $300 paid and $500 open. Northline Studio, invoice 1043, was issued November 3 for $450, and nothing has been paid. The as-of date in the aging picture is November 17, 2026.

The workbook with a longer list is the invoice and payment tracker.

Due one month later

EDATE returns the date a number of months before or after a start. One month after each issue date is the due date on this sheet.

EDATE
=EDATE(A2,1)
=EDATE(A2,1)B2
Due one month later
AB
1IssuedDue
210/01/202611/01/2026
310/15/202611/15/2026
411/03/202612/03/2026
A picture of the due dates. One month after October 1, 2026 is November 1. One month after October 15 is November 15. One month after November 3 is December 3.
=EDATE(DATE(2026,10,1), 1)
=EDATE(DATE(2026,10,15), 1)
=EDATE(DATE(2026,11,3), 1)

Those results are November 1, November 15, and December 3.

October 1 plus one month is November 1, which is 31 days later. October has 31 days. A due date of the issue date plus 30 would be October 31. This sheet uses EDATE, so the day of the month stays 1. October 15 stays the 15th. November 3 stays the 3rd. November has 30 days, so November 3 plus 30 days is also December 3. The October 1 row is the one that shows the difference.

The EDATE page uses a date that does not exist in the next month. January 31, 2026 plus one month is February 28, 2026, because 2026 is not a leap year. The 1st, the 15th, and the 3rd all exist in the following month, so none of these three rows moves to the last day of the month.

Who still owes

The balance is the amount minus what has been paid. 1,200 − 1,200 = 0. 800 − 300 = 500. 450 − 0 = 450.

SUMIFS
=SUMIFS(D2:D4,A2:A4,"Harbor Co")
=SUMIFS(D2:D4,A2:A4,"Harbor Co")D6
What is still open
ABCD
1ClientAmountPaidBalance
2Northline Studio120012000
3Harbor Co800300500
4Northline Studio4500450
5Billed24501500950
6Harbor open500
7Northline open450
8Open invoices2
A picture of three invoices. Balances are 0, 500, and 450. Billed is 2,450. Collected is 1,500. Open is 950. Harbor Co is the 500 only. Two balances are above zero.
=SUM(B2:B4)
=SUM(C2:C4)
=SUM(D2:D4)
=SUMIFS(D2:D4, A2:A4, "Harbor Co")
=SUMIFS(D2:D4, A2:A4, "Northline Studio")
=COUNTIFS(D2:D4, ">0")

SUMIFS adds the balance column where the client is Harbor Co. That is the $500 on invoice 1042. Northline Studio has two rows. The paid invoice contributes 0, and invoice 1043 contributes 450, so the name totals $450. The three balances are 0 + 500 + 450 = 950. Billed is 1,200 + 800 + 450 = 2,450. Collected is 1,200 + 300 + 0 = 1,500.

COUNTIFS of balances greater than 0 is 2. The paid invoice is the row that fails the test.

Collected over billed is 1,500 / 2,450. That ratio is 0.612244…, and a percent format shows 61.22%. The cell keeps the division. It does not store 61.22 as a number that still needs to be divided by 100.

How many days past November 17

The counts below use November 17, 2026, so they stay put on this page. In a file you keep open, that cell is:

=TODAY()

TODAY takes no arguments, and the parentheses are required. It is volatile. Tomorrow’s recalculation changes the day counts. The TODAY page uses a different stand-in, November 11, 2026, and counts 34 days until December 15, 2026. This sheet’s as-of date is November 17, 2026.

DAYS puts the later date first. Here the as-of date is first, and a due date in the future comes back negative.

DAYS
=DAYS($B$1,B4)
=DAYS($B$1,B4)C4
As of November 17, 2026
ABCDE
1As of11/17/2026
2InvoiceDueDaysBucketOpen
3104111/01/2026161-300
4104211/15/202621-30500
5104312/03/2026-16Current450
6Labels in 1-302
7Owed in 1-301500
A picture of the as-of date in B1. Invoice 1041 is 16 days past November 1 and the balance is 0, so the label is 1-30 and the dollars in that bucket stay $500. Invoice 1042 is 2 days past due. Invoice 1043 is not due for 16 days. The 1-30 label is on two rows. The 1-30 count with a balance above zero is 1.
=DAYS(DATE(2026,11,17), DATE(2026,11,1))
=DAYS(DATE(2026,11,17), DATE(2026,11,15))
=DAYS(DATE(2026,11,17), DATE(2026,12,3))

November 17 minus November 1 is 16. November 17 minus November 15 is 2. November 17 minus December 3 is −16. Subtracting the serials is the same three numbers. Excel 2010 does not have DAYS. The subtraction still works there.

The bucket label uses xl.between, which is true when the value is between the ends, including the ends:

=IF(C3<=0, "Current", IF(xl.between(C3, 1, 30), "1-30", "Later"))

16 and 2 are both between 1 and 30, so invoices 1041 and 1042 are labeled 1-30. −16 fails the first test, so invoice 1043 is Current. A due date on the as-of date is 0 days, which this formula calls Current. The between page treats an end date as inside the window. A day count of 0 is not yet past due.

xl.between(45, 31, 60) is TRUE. That is the test for a 31 to 60 bucket. None of these three invoices is in it, so a sum of open balances with days from 31 to 60 is 0.

The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME?. The same test without the name is AND:

=IF(C3<=0, "Current", IF(AND(C3>=1, C3<=30), "1-30", "Later"))

Invoice 1041 is paid, and its day count is still 16, so the label is still 1-30. COUNTIFS of the label 1-30 is 2. COUNTIFS of that label and an open balance greater than 0 is 1. SUMIFS of the open amount, with both tests, is $500. The zero balance does not change a sum, and it does change the count. The Current dollars are the $450 on invoice 1043. The longer open list, with buckets through 91+, is How to make an accounts receivable aging report in Excel.

The open amounts in words

xl.number.words spells a dollar amount under $1,000,000 in the check style. The spell-out page uses 1234.56. These two amounts are the Harbor balance and the open total.

xl.number.words
=xl.number.words(A2)
=xl.number.words(A2)B2
Statement line
AB
1AmountWords
2500five hundred dollars and zero cents
3950nine hundred fifty dollars and zero cents
A picture of the spell-out. 500 is five hundred dollars and zero cents. 950 is nine hundred fifty dollars and zero cents.
=xl.number.words(500)
=xl.number.words(950)

500 is five hundred dollars and zero cents. 950 is nine hundred fifty dollars and zero cents. The cents stay in the phrase when they are zero. Five hundred is plural. The spell-out page shows the singular case, one dollar and one cent, on 1.01.

The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME?. Saving it is the same Name Manager step as the LAMBDA how-to.

A number that is not on the list

1042 is the second invoice. MATCH with 0 returns 2, and INDEX returns the second client, Harbor Co.

INDEX
=IFERROR(INDEX(B2:B4,MATCH(D2,A2:A4,0)),"No invoice")
=IFERROR(INDEX(B2:B4,MATCH(1099,A2:A4,0)),"No invoice")D4
Invoice 1099 is not in the list
ABCD
1InvoiceClientLookup
21041Northline Studio1042
31042Harbor CoHarbor Co
41043Harbor CoNo invoice
5ApproximateHarbor Co
A picture of the lookup. 1042 is the second row, Harbor Co. Exact MATCH of 1099 is #N/A, and IFERROR returns the words. Approximate MATCH of 1099 returns the last row, which is also Harbor Co, for an invoice that is not on the sheet.
=IFERROR(INDEX(B2:B4, MATCH(1042, A2:A4, 0)), "No invoice")
=IFERROR(INDEX(B2:B4, MATCH(1099, A2:A4, 0)), "No invoice")
=INDEX(B2:B4, MATCH(1099, A2:A4))

1099 is not in A2:A4. Exact MATCH returns #N/A. IFERROR turns that into the words No invoice. The same wrapper on 1042 returns Harbor Co, because a found client is not an error.

Leave the 0 off and MATCH uses an approximate match. The invoice numbers are in order: 1041, 1042, 1043. 1099 is larger than all three, so MATCH returns 3, and INDEX returns Harbor Co. That is a client name for an invoice the sheet does not contain. The XLOOKUP and INDEX/MATCH page shows the same miss on a state code. Pass 0 unless you sorted the list on purpose and an approximate match is what you want.


Template for this article

Invoice and Payment Tracker

More from the blog