Customer Ageing Different Formulas

mba_110

Board Regular
Joined
Nov 28, 2012
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am short some correct code to finalize this sheets for customer ageing

This is the sheet with full data of invoices
Customer Outstanding Report.xlsx
ABCDEFGHIJ
6OUTSTANDING INVOICESREPORT DATE:5 Sep 2024
7
8DATETYPECUSTOMER NAMEINVOICEAMOUNTVATDUE DATEDAYS DUESALESPERSON
9
1014/09/2022InvoiceMy Skin Clinic4617285.0014.2515 Sep 2024-9
1129/09/2022InvoiceMy Skin Clinic4708272.0013.6029/09/2022708
1203/10/2022InvoiceMy Skin Clinic47371,000.0050.001 Oct 2024-25
Open Invoices
Cell Formulas
RangeFormula
J6J6=Summary!J25
B10:B12B10=VLOOKUP(E10,'System Report Data'!$B$7:$I$3012,2,0)
C10:C12C10=VLOOKUP(E10,'System Report Data'!$B$7:$I$3012,3,0)
D10:D12D10=VLOOKUP(E10,'System Report Data'!$B$7:$I$3012,4,0)
E10:E516E10=UNIQUE(FILTER('System Report Data'!$B$7:$B$3012,'System Report Data'!$B$7:$B$3012<>""))
F10:F12F10=VLOOKUP(E10,'System Report Data'!$B$7:$I$3012,5,0)
G10:G12G10=VLOOKUP(E10,'System Report Data'!$B$7:$I$3012,6,0)
H11H11=IF(C11="Invoice",VLOOKUP(E11,'Due Date'!$B$6:$G$930,5,0),B11)
I10:I12I10=$J$6-H10+1
Dynamic array formulas.


This is the summary sheet showing the ageing and current with customer name and other information, some i already achieved the only thing is ageing by column for each customer, here if the due days are in negative formula should allocate that in "Current (Not due)" column.
Customer Outstanding Report.xlsx
ABCDEFGHIJK
25CUSTOMER AGING SUMMARY REPORT DATE: 5 Sep 2024
26
27S.NOCUSTOMER NAMETOTAL INVOICESCurrent (Not Due) 0 - 30 Days 31 - 60 Days 61 - 90 Days Above 90 Days TOTAL DUE %
281My Skin Clinic30#REF!#REF!#REF!#REF!#REF!#REF!
Summary
Cell Formulas
RangeFormula
J25J25=J6
C28:C224C28=UNIQUE('Open Invoices'!D10:D515)
D28D28=COUNTIF('Open Invoices'!$D$10:$D$515,Summary!C28)
E28:E534E28=SUMIF('Open Invoices'!D10:I516,'Open Invoices'!I10:I516<0,'Open Invoices'!F10:G516)
F28F28=SUMIF('Open Invoices'!$D$10:$G$517,C28,'Open Invoices'!#REF!)
G28G28=SUMIF('Open Invoices'!$D$10:$G$517,C28,'Open Invoices'!#REF!)
H28H28=SUMIF('Open Invoices'!$D$10:$G$517,C28,'Open Invoices'!#REF!)
I28I28=SUMIF('Open Invoices'!$D$10:$G$517,C28,'Open Invoices'!#REF!)
J28J28=SUM(F28:I28)
K28K28=J28/$J$229
Dynamic array formulas.


Your kind help can must appreciated.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try:
Excel Formula:
=SUM('Open Invoices'!$F$10:$G$517*('Open Invoices'!$D$10:$D$517=$C28)*('Open Invoices'!$I$10:$I$517<0))
 
Upvote 0
SumIfs won't let you sum 2 columns at once, you would need a helper column totalling the 2 or use 2 Sumifs.
See if this works for you.

20240905 Sumifs mba_110.xlsx
BCDEFGHI
27S.NOCUSTOMER NAMETOTAL INVOICESCurrent (Not Due) 0 - 30 Days 31 - 60 Days 61 - 90 Days Above 90 Days
281My Skin Clinic31349.25000285.6
Summary
Cell Formulas
RangeFormula
E28E28=SUM('Open Invoices'!$F$10:$G$517*('Open Invoices'!$D$10:$D$517=$C28)*('Open Invoices'!$I$10:$I$517<0))
F28F28=SUM('Open Invoices'!$F$10:$G$517*('Open Invoices'!$D$10:$D$517=$C28)*('Open Invoices'!$I$10:$I$517>=0)*('Open Invoices'!$I$10:$I$517<=30))
G28G28=SUM('Open Invoices'!$F$10:$G$517*('Open Invoices'!$D$10:$D$517=$C28)*('Open Invoices'!$I$10:$I$517>=31)*('Open Invoices'!$I$10:$I$517<=60))
H28H28=SUM('Open Invoices'!$F$10:$G$517*('Open Invoices'!$D$10:$D$517=$C28)*('Open Invoices'!$I$10:$I$517>=61)*('Open Invoices'!$I$10:$I$517<=90))
I28I28=SUM('Open Invoices'!$F$10:$G$517*('Open Invoices'!$D$10:$D$517=$C28)*('Open Invoices'!$I$10:$I$517>90))
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top