Tabellab

The Invoice Ledger: Open Items and Balances by Customer with SUMIFS

Lesson 1 of 20Lab

All lessons
  1. The Invoice Ledger: Open Items and Balances by Customer with SUMIFSLabFree
  2. DSO Two Ways: the Simple Ratio and the Count-Back MethodLab Locked
  3. Collection Effectiveness Index (CEI): How Much of the Collectible AR Came InLab Locked
  4. Ageing Buckets and the Allowance for Doubtful Accounts: a Provision MatrixLab Locked
  5. Credit Limits and Utilisation: Over-Limit Flags and the Order-Release TestLab Locked
  6. Payment Behaviour: Average Days Late per Customer with AVERAGEIFSLab Locked
  7. The Dunning Schedule: Which Reminder Is Due Today?Lab Locked
  8. Bad-Debt Write-Off, Recovery and the Allowance Roll-Forward (Journal and Chart)Lab Locked
  9. Short Payments and Customer Deductions: Valid, Invalid and Still to ResearchLab Locked
  10. Early-Payment Discounts on the Sales Side: Earned vs Unearned Discounts and the Cost of Offering 2/10 Net 30Lab Locked
  11. Late-Payment Interest and Reminder Fees: Days Late, Daily Interest, a Minimum Charge and the JournalLab Locked
  12. Setting a New Customer's Credit Limit: Weighted Score, Risk Class and Limit FormulaLab Locked
  13. The Dispute Log: Days Open, Disputed Amount by Reason and Time to Resolve (Chart)Lab Locked
  14. Promises to Pay: Kept, Partial and Broken Promises, the Kept Rate and the Cash Promised This WeekLab Locked
  15. Best Possible DSO and Average Days Delinquent: Splitting DSO into Terms and Lateness (Chart)Lab Locked
  16. Ageing Trend: Six Month-End Ageings, Bucket Shares, Weighted Days Past Due and a Stacked Column ChartLab Locked
  17. Agency, Legal Route or Write-Off: Expected Net Recovery for Seriously Overdue AccountsLab Locked
  18. Ship or Hold? Expected Profit and Break-Even Risk of Orders on Credit HoldLab Locked
  19. The Cost of Carrying Receivables: Cash Tied Up, Cash Released by a Lower DSO and the Interest Saved (Chart)Lab Locked
  20. Final Project: the Month-End AR Dashboard for a Second DistributorLab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — CHF 9.90
Loading the spreadsheet…

Who owes us what? The question behind every collections call

It is the first working day of July. Sales had a strong quarter, but the bank balance does not look like it. The CFO asks a simple question: how much do customers owe us, and who exactly? The general ledger can only answer the first half, because it shows one accounts receivable balance. The answer to "who" lives in the invoice ledger, also called the AR sub-ledger: one line per invoice, with the customer, the date, the amount and what has been paid so far.

This free lesson is for accounts receivable clerks and credit controllers, bookkeepers who chase customer payments, finance staff in small and mid-sized distributors, and students who want to see how a real AR report is put together. You will work with the Q2 2026 ledger of Larkspur Supply Co., the fictional distributor of cleaning and hospitality supplies from the lab above. All names and numbers are illustrative.

By the end you will be able to turn a raw list of invoices into open items, total them per customer with SUMIFS, measure how concentrated the receivables are, count the open invoices with COUNTIFS, and prove that your summary ties back to the ledger. These four results are the base for everything a collections team does next: DSO, ageing, credit limits and dunning.

The core concept: from invoices to open items

When Larkspur delivers on credit it issues an invoice and records a receivable. The customer then pays, sometimes in full, sometimes in part, sometimes not yet. An invoice that is fully paid is closed and no longer part of the receivables. An invoice with any amount left is an open item, and the amount left is what the customer still owes on it:

Open amount = invoiced amount − paid to date, in Excel =D2-E2.

Partial payments are the reason this column matters. Copperfield Schools paid 4,000.00 of invoice INV-7003 for 8,940.00, so 4,940.00 is still open. If you only looked at whether an invoice was "paid" or "unpaid" you would either overstate the receivable by 4,000.00 or lose 4,940.00 from view. Real ledgers also contain credit notes and payments that have not yet been matched to an invoice; those appear as negative open items and reduce the customer's balance.

Collectors work customer by customer, not invoice by invoice. One phone call to Arbor Hotels covers all of its open invoices, so the first report everybody needs is the open balance per customer. Two more numbers make it useful: each customer's share of the open AR, which shows how much of your cash depends on a single payer, and the number of open invoices, which tells the collector how many items to go through on the call.

  • Open balance per customer: =SUMIFS($F$2:$F$15,$B$2:$B$15,A18)
  • Share of open AR: =B18/$B$24
  • Open invoices per customer: =COUNTIFS($B$2:$B$15,A18,$F$2:$F$15,">0")
  • Tie-out check: =B24-SUM(F2:F15) must return 0.

Worked example: Larkspur Supply Co., Q2 2026

Here is the ledger after step one of the lab. Columns A to E are given; column F is =D2-E2, copied down to row 15.

InvoiceCustomerDateAmountPaid to dateOpen (F)
INV-7001Arbor Hotels8 Apr 202612,480.0012,480.000.00
INV-7002Bayside Clinic15 Apr 20263,260.500.003,260.50
INV-7003Copperfield Schools22 Apr 20268,940.004,000.004,940.00
INV-7004Delta Fitness2 May 20262,115.750.002,115.75
INV-7005Arbor Hotels9 May 20269,870.000.009,870.00
INV-7006Evergreen Offices14 May 20264,420.004,420.000.00
INV-7007Foxglove Cafés20 May 20261,980.400.001,980.40
INV-7008Copperfield Schools28 May 20266,300.000.006,300.00
INV-7009Bayside Clinic3 Jun 20262,745.001,000.001,745.00
INV-7010Arbor Hotels10 Jun 202611,215.000.0011,215.00
INV-7011Delta Fitness12 Jun 20261,860.000.001,860.00
INV-7012Evergreen Offices18 Jun 20265,130.000.005,130.00
INV-7013Foxglove Cafés24 Jun 20262,290.600.002,290.60
INV-7014Copperfield Schools29 Jun 20267,450.000.007,450.00
Total80,057.2521,900.0058,157.25

Of 80,057.25 invoiced in the quarter, 21,900.00 has been collected and 58,157.25 is open. Two invoices are closed (INV-7001 and INV-7006), two are partly paid (INV-7003 and INV-7009) and ten have not been paid at all. Keep the closed invoices in the list: they are needed later for payment history, and they show up as 0.00 rather than disappearing.

Now the customer summary. Type the six customer names in A18:A23, exactly as they are spelled in the ledger, then enter the three formulas in row 18 and copy them down to row 23.

CustomerOpen balance (B)Share of open AR (C)Open invoices (D)
Arbor Hotels21,085.0036.3%2
Bayside Clinic5,005.508.6%2
Copperfield Schools18,690.0032.1%3
Delta Fitness3,975.756.8%2
Evergreen Offices5,130.008.8%1
Foxglove Cafés4,271.007.3%2
Total58,157.25100.0%12

The formulas behind row 18 are =SUMIFS($F$2:$F$15,$B$2:$B$15,A18), =B18/$B$24 and =COUNTIFS($B$2:$B$15,A18,$F$2:$F$15,">0"). The dollar signs lock the ledger ranges and the total cell so that only the customer reference A18 moves when you copy down. Without them the range would slide to F3:F16, F4:F17 and so on, and the lower customers would lose invoices.

Open AR by customer, end of Q2 2026 (USD)0k5k10k15k20k25k21,085ArborHotels18,690CopperfieldSchools5,130EvergreenOffices5,006BaysideClinic4,271FoxgloveCafés3,976DeltaFitnessTotal open: 58,157.25
Two customers stand out. Arbor Hotels and Copperfield Schools together owe 39,775.00 of the 58,157.25 open.

Read the summary like a credit manager. Arbor Hotels holds 36.3% of the open AR with only two open invoices, both large; one call about INV-7005 (9,870.00, from May) and INV-7010 (11,215.00) covers more than a third of the receivables. Copperfield Schools holds 32.1% across three invoices, including the partly paid INV-7003 from April. A school paying part of an invoice often means a disputed line or a budget approval in progress, which is worth a question rather than a reminder letter. The four smaller customers together owe less than either of the big two.

Concentration: share of open AR (C18:C23)36.3%32.1%8.88.67.36.8Top two customers: 68.4% of open ARArbor Hotels 21,085Copperfield Schools 18,690Evergreen Offices 5,130Bayside Clinic 5,006Foxglove Cafés 4,271Delta Fitness 3,976Shares are open balance ÷ 58,157.25. They must add up to 100%.
The share column shows concentration at a glance. If Arbor or Copperfield paid late, Larkspur would feel it immediately in its cash flow.

Notice also what the count column tells you that the balance does not. Evergreen Offices has only one open invoice although it had two in the quarter: it paid INV-7006 in full. Arbor Hotels paid its April invoice, which is why COUNTIFS returns 2, not 3. A plain COUNTIF on the customer name would count three and send the collector after an invoice that is already settled.

Invoiced in Q2 vs still open (USD)0k5k10k15k20k25k30k35kArborHotelsCopperfieldSchoolsEvergreenOfficesBaysideClinicFoxgloveCafésDeltaFitnessInvoiced (D)Open (F)
Comparing invoiced and open amounts per customer shows who pays: Arbor and Evergreen have paid a good part of their Q2 invoices, Foxglove and Delta nothing yet.

The tie-out: why the check row matters

The last row of the lab is the most important habit in receivables work. The total of the customer summary, B24, must equal the open total of the ledger, SUM(F2:F15). Put =B24-SUM(F2:F15) in a spare cell; it must show 0.00. If it does not, the summary is missing something. The usual causes are a customer name spelled differently in the ledger (an extra space, "Cafes" without the accent), a customer that is not in the summary list at all, or ranges that do not cover every ledger row after new invoices were added.

In a real month-end there is a second tie-out: the open total of the sub-ledger must agree with the accounts receivable control account in the general ledger on the same date. A difference there points to journals posted directly to the control account, cash received but not applied to invoices, or credit notes kept outside the system. Both checks take seconds and catch errors before anyone acts on the report.

Credit notes, unapplied cash and disputed lines

The Larkspur ledger in the lab is deliberately clean: every payment is matched to an invoice. Real exports are messier, and three kinds of lines deserve attention before you trust the summary.

  • Credit notes. When goods are returned or a price is corrected, the system issues a credit note. In the ledger it is a line with a negative amount. Keep it in the open column so that SUMIFS nets it against the customer's invoices; the customer only owes the net figure.
  • Unapplied cash. A customer pays 5,000.00 without a remittance advice, and nobody knows yet which invoices it covers. The payment sits on the account as a negative open item until it is matched. It reduces the balance correctly, but the invoice-level detail is wrong, so clear these lines quickly; otherwise the ageing in lesson 4 will show old invoices that were in fact paid.
  • Disputed amounts. When a customer refuses to pay one line of an invoice, add a status column such as "Disputed" rather than deleting anything. A second condition in SUMIFS, for example =SUMIFS($F$2:$F$15,$B$2:$B$15,A18,$G$2:$G$15,"<>Disputed"), then separates what can be chased today from what first needs a credit note or a conversation with sales.

The principle is the same in each case: never fix the summary by hand. Fix or label the ledger line, and let the formulas carry the correction through. That way the tie-out stays at zero and the next person can see exactly why a balance changed.

How to do it in Excel, step by step

These steps work in Excel for Microsoft 365, 2021 and 2019 on Windows and Mac (on a Mac use Cmd where Windows uses Ctrl for shortcuts that include it). Start with an export of invoices and payments from your accounting system.

  1. Clean the export. Make sure amounts are numbers (right-aligned) and dates are real dates. Remove stray spaces from customer names with =TRIM(B2) in a helper column, then paste the values back with Ctrl+Alt+V > Values.
  2. Add the open column. In F1 type "Open USD", in F2 type =D2-E2 and double-click the fill handle (the small square at the bottom right of the cell) to copy it to the last row.
  3. Turn the range into a table (optional but recommended). Click inside the data and press Ctrl+T. A table grows automatically when you add invoices, so your SUMIFS ranges never miss new rows. With a table named Ledger the formula reads =SUMIFS(Ledger[Open USD],Ledger[Customer],A18).
  4. Build the customer list. In Microsoft 365 type =SORT(UNIQUE(B2:B15)) in A18 and the list spills automatically. In older versions copy column B, paste it below and use Data > Remove Duplicates.
  5. Open balance. In B18 type =SUMIFS($F$2:$F$15,$B$2:$B$15,A18). Press F4 while the cursor is in a reference to cycle through the $ options. Copy down to B23.
  6. Total. In B24 type =SUM(B18:B23), or select B24 and press Alt+= for AutoSum.
  7. Share. In C18 type =B18/$B$24, copy down and format as a percentage with Ctrl+Shift+%. Add one decimal with Home > Increase Decimal.
  8. Count. In D18 type =COUNTIFS($B$2:$B$15,A18,$F$2:$F$15,">0") and copy down. The criterion goes in quotes, including the operator.
  9. Check. In a spare cell type =ROUND(B24-SUM(F2:F15),2). Add conditional formatting (Home > Conditional Formatting > Highlight Cells Rules > Not Equal To 0) so a difference turns red.
  10. Sort for action. Copy the summary as values and sort by open balance, largest first (Data > Sort Z to A), to get the call list for the day.
A PivotTable gives the same summary in a few clicks: Insert > PivotTable, Customer in Rows, Open USD in Values, then a second copy of Open USD with Show Values As > % of Grand Total. The formula version is better when the report has a fixed layout that others read every month.

Accounts receivable invoice ledger in Excel: open items per invoice and open balance per customer with SUMIFS
Accounts Receivable & Collections: one fictional distributor, 20 labs, from the invoice ledger to the bad-debt journal.

Common mistakes and how to spot them

A customer summary looks finished long before it is right. These are the errors that reviewers find most often:

  • Summing the invoiced amount instead of the open amount. =SUMIFS(D2:D15,…) gives Copperfield 22,690.00 instead of 18,690.00. Spot it: the summary total equals the invoiced total 80,057.25, not 58,157.25.
  • Missing $ signs. Ranges slide as you copy down, and the last customers lose rows. Spot it: click B23 and press F2; the coloured boxes should cover the same rows as in B18.
  • Name mismatches. "Foxglove Cafes" in the summary and "Foxglove Cafés" in the ledger return 0. SUMIFS ignores upper and lower case but not accents or extra spaces. Spot it: the check cell is not 0, or a customer shows 0.00 that you know owes money.
  • Counting closed invoices. COUNTIF on the name counts INV-7001, which Arbor paid in full. Spot it: compare the count with the number of non-zero lines for that customer.
  • Dividing by the wrong total. Dividing by everything invoiced makes the shares add up to about 73%, not 100%. Spot it: C24 must be 100.0%.
  • Hard-coded totals. Typing 58157.25 instead of =SUM(B18:B23) breaks as soon as a payment is posted. Spot it: press Ctrl+` to show formulas; every total should be a formula.
  • Ignoring credits. A credit note or unapplied payment is a negative open item. Using a filter such as ">0" in the SUMIFS would hide it and overstate the balance. Use the condition only in the count, not in the sum.

Quick reference: functions and shortcuts used

Function / shortcutSyntaxUse in the AR ledger
Subtraction=D2-E2Open amount per invoice
SUMIFS=SUMIFS($F$2:$F$15,$B$2:$B$15,A18)Open balance per customer
COUNTIFS=COUNTIFS($B$2:$B$15,A18,$F$2:$F$15,">0")Open invoices per customer
SUM=SUM(B18:B23)Totals and tie-out
ROUND=ROUND(B24-SUM(F2:F15),2)Check that removes floating-point noise
UNIQUE / SORT=SORT(UNIQUE(B2:B15))Customer list (Microsoft 365)
TRIM=TRIM(B2)Remove stray spaces in names
Absolute referenceF4Add $ to the selected reference
AutoSumAlt+=Insert a SUM
Create tableCtrl+TRanges that grow with new invoices
Show formulasCtrl+`Find hard-coded numbers

Real-world uses

The open-balance report is the starting point of almost every receivables task:

  • The daily call list. A credit controller sorts customers by open balance and works from the top, with the open-invoice count telling them how long each call will take.
  • Month-end close. The sub-ledger total is reconciled to the AR control account, and the customer summary is filed with the close pack.
  • Concentration review. Finance managers and lenders look at how much of the receivables sits with the largest customers, because a single slow payer can strain cash flow.
  • Customer statements. The open items per customer are exactly what goes on a monthly statement of account, so customers can match it against their own payables.
  • Cash forecasting. Treasury combines open balances with each customer's usual payment habits to estimate when the money will arrive.

What you will build in the rest of this course

Lesson 1 is free. The labs that follow are part of the paid course, a one-time purchase of $9.90, and all of them use Larkspur Supply Co., so the ledger you just summarised grows into a complete collections toolkit:

DSO Two Ways: the Simple Ratio and the Count-Back Method. You measure how many days of sales are tied up in receivables, first with the simple quarterly ratio and then with the count-back method that follows the actual monthly sales, and compare the result with the payment terms.

Collection Effectiveness Index (CEI): How Much of the Collectible AR Came In. You calculate monthly collections and the collection effectiveness index for six months, the measure that shows how much of what could have been collected actually came in, and find the weakest month.

Ageing Buckets and the Allowance for Doubtful Accounts: a Provision Matrix. You age the open invoices at 30 June with a lookup table, apply a loss rate to each bucket and work out the bad-debt expense that brings the allowance to the required balance.

Credit Limits and Utilisation: Over-Limit Flags and the Order-Release Test. You compare each customer's balance with its credit limit, flag customers that are over the limit or on watch, and decide whether a new order can be released.

Payment Behaviour: Average Days Late per Customer with AVERAGEIFS. You turn the paid-invoice history into a payment profile per customer with AVERAGEIFS: average days late, the amount-weighted version and the share of invoices paid on time.

The Dunning Schedule: Which Reminder Is Due Today?. You map every open invoice to the reminder its days overdue call for, compare it with the last step sent and count today's actions.

Bad-Debt Write-Off, Recovery and the Allowance Roll-Forward (Journal and Chart). You roll the allowance for doubtful accounts forward through July, book a write-off, a recovery and the month-end top-up in the journal and chart the roll-forward as a waterfall.

Complete the 20 labs and the final exam to earn the TLC-AR · Tabellab Certified AR & Collections Analyst certificate.

Summary

An accounts receivable report starts with open items, not invoices: =D2-E2 per line. SUMIFS with locked ranges totals them per customer, a share of the total shows concentration, COUNTIFS with ">0" counts what is left to chase, and a tie-out to the ledger proves nothing is missing. For Larkspur Supply Co. that means 58,157.25 open across twelve invoices, with Arbor Hotels and Copperfield Schools holding 68.4% of it.

Now scroll up and try the lab: calculate the open amounts, the balance and share per customer and the open-invoice counts. The Coach checks each step and explains the classic slips, such as summing the invoiced amount or counting Arbor's paid invoice.

Frequently asked questions

How do I calculate the open balance per customer in Excel?

First add an open column (amount minus paid to date). Then use =SUMIFS(open_range,customer_range,customer) with absolute references and copy it down your customer list.

What is the difference between SUMIF and SUMIFS?

SUMIF takes one condition and has the sum range last; SUMIFS takes one or more conditions and has the sum range first. SUMIFS is the safer habit because you can add a second condition, such as a date, without rewriting the formula.

How do I count open invoices per customer?

Use COUNTIFS with two conditions: =COUNTIFS(customer_range,customer,open_range,">0"). A plain COUNTIF on the name would also count invoices that are already paid in full.

What is an AR sub-ledger?

It is the detailed list of customer invoices, credit notes and payments behind the single accounts receivable balance in the general ledger. Its open total should equal the AR control account on the same date.

Why does my SUMIFS return 0 for a customer?

Usually the name in the criteria does not match the ledger exactly, for example an extra space or a missing accent. Clean names with TRIM, or pick them from a list built with UNIQUE so the spelling is identical.

What does concentration of receivables mean?

It is how much of the total open AR depends on a few customers. You measure it as each customer's balance divided by the total; a high share means one late payer can noticeably hurt cash flow.

Keep going: Accounts Receivable & Collections: DSO, CEI, Credit Limits & Bad Debt

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time CHF 9.90.

  1. DSO Two Ways: the Simple Ratio and the Count-Back Method
  2. Collection Effectiveness Index (CEI): How Much of the Collectible AR Came In
  3. Ageing Buckets and the Allowance for Doubtful Accounts: a Provision Matrix
  4. Credit Limits and Utilisation: Over-Limit Flags and the Order-Release Test
  5. Payment Behaviour: Average Days Late per Customer with AVERAGEIFS
  6. The Dunning Schedule: Which Reminder Is Due Today?
  7. Bad-Debt Write-Off, Recovery and the Allowance Roll-Forward (Journal and Chart)
  8. Short Payments and Customer Deductions: Valid, Invalid and Still to Research
  9. Early-Payment Discounts on the Sales Side: Earned vs Unearned Discounts and the Cost of Offering 2/10 Net 30
  10. Late-Payment Interest and Reminder Fees: Days Late, Daily Interest, a Minimum Charge and the Journal
  11. Setting a New Customer's Credit Limit: Weighted Score, Risk Class and Limit Formula
  12. The Dispute Log: Days Open, Disputed Amount by Reason and Time to Resolve (Chart)
  13. Promises to Pay: Kept, Partial and Broken Promises, the Kept Rate and the Cash Promised This Week
  14. Best Possible DSO and Average Days Delinquent: Splitting DSO into Terms and Lateness (Chart)
  15. Ageing Trend: Six Month-End Ageings, Bucket Shares, Weighted Days Past Due and a Stacked Column Chart
  16. Agency, Legal Route or Write-Off: Expected Net Recovery for Seriously Overdue Accounts
  17. Ship or Hold? Expected Profit and Break-Even Risk of Orders on Credit Hold
  18. The Cost of Carrying Receivables: Cash Tied Up, Cash Released by a Lower DSO and the Interest Saved (Chart)
  19. Final Project: the Month-End AR Dashboard for a Second Distributor

Buy course — CHF 9.90 See the full course