How to Check Client Aging Exports in Excel Before Sending
Two client accounts have the same display name. Each has one invoice over 90 days old. A split by name can mix those accounts, and an export with one row can still contain the wrong invoice.
A public Power Automate question describes preparing separate weekly Excel aging files from Power BI. Before sending files, run the export without email and compare each file with its source client ID, invoice count and open balance. This guide uses a flat source with one row per invoice per client ID and one currency. Use an invoice-level export where your Power BI permissions allow it. Microsoft’s guide to exporting Power BI data
Set up a small synthetic dry run
In A1:D5, use the source rows below. Enter the aging days and open balances as numbers. Agree on the report’s date and aging basis first. The example includes invoices strictly older than 90 days with a positive open balance. Handle credits and zero balances under the actual report policy.
Client ID Invoice ID Age in days Open balance
C-101 INV-18 90 100
C-101 INV-19 91 200
C-202 INV-20 92 300
C-101 INV-21 95 0
Both IDs use the same fictional display name. Enter C-101 in K2 and 90 in L2. Paste the candidate file’s data into G2:I20 with columns Client ID, Invoice ID and Open balance. Exclude headers, subtotals and footers. Confirm every invoice row in both extracts has a nonblank invoice ID and a valid numeric amount. Extend the formula ranges if your exports are larger.
Compare the source count, balance and client IDs
Enter these six formulas into N2:S2, in order. The first two calculate the source count and balance for the selected ID and cutoff. The next two count and sum the candidate file. R2 counts candidate invoice rows whose client ID differs from K2, including rows with a missing client ID. S2 reports whether all three checks agree. Microsoft’s SUMIFS documentation
N2 =COUNTIFS($A$2:$A$5,K2,$C$2:$C$5,">"&L2,$D$2:$D$5,">0")
O2 =SUMIFS($D$2:$D$5,$A$2:$A$5,K2,$C$2:$C$5,">"&L2,$D$2:$D$5,">0")
P2 =COUNTA($H$2:$H$20)
Q2 =SUM($I$2:$I$20)
R2 =SUMPRODUCT(--($H$2:$H$20<>""),--($G$2:$G$20<>K2))
S2 =IF(AND(N2=P2,ROUND(O2,2)=ROUND(Q2,2),R2=0),"Match","Review")
For C-101, the expected source is B3, invoice INV-19, and D3, $200. The 90-day invoice at row 2 is outside the strict cutoff. The 95-day invoice at row 5 has zero open balance. C-202 should have one row and $300 from B4 and D4. If the C-101 file contains C-202’s INV-20, the row count is still one. Q2 shows $300, R2 shows one wrong-client row and S2 says Review.
For a second dry run, select C-202 in K2 and put C-101, INV-19 and 300 in G2:I2. N2 and P2 each show one invoice, and O2 and Q2 each show $300. R2 still shows one wrong-client row and S2 says Review. The client check catches what the count and balance miss.
If the totals agree, compare invoice IDs and their amounts against the filtered source before authorizing distribution. Two different sets of invoices can have the same totals. Use the approved client-ID-to-recipient record separately. How to check invoice balances after partial payments
Repeat the comparison next week
In Power Query, filter eligible source rows and group them by client ID to get the expected invoice count and balance. Compare those figures with counts and balances from each generated file. Keep every exception visible before distributing any files. For a workbook that holds the source and candidate rows on separate tabs, try asking Jolene.pro to compare the two by client ID, flag wrong-client rows and cite the invoice cells behind each discrepancy. The sample figures and worksheet formulas were checked independently. A live Jolene.pro result was not verified.
1 comment