• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Settle customer outstanding

Deepak_S

New Member
I have excel sheet where I have various payments received on various dates in negative form and various invoices on various date in positive form now I want to adjust the oldest(Based on date) invoice with oldest(Based on date) payment first and if payment is exhausted then move to next payment or if invoice amount is short then the payment move to next invoice....can you help with excel formula

Payment Received DatePayment received AmountInvoice DateInvoice Amount
03-11-2022(1,06,376)21-03-202290,098
16-06-2023(56,872)14-11-202214,67,993
11-07-2023(1,595)25-09-20235,09,51,006
31-03-2024(63,823)30-05-20247,24,260
28-10-2024(21,46,000)30-05-202428,97,040
06-03-2025(34,26,118)16-08-20241,51,20,000
11-03-2025(1,15,506)07-10-20245,31,000
22-03-2025(13,21,26,482)07-10-202416,22,500
11-12-202413,96,588
11-12-202413,96,588
23-12-202411,62,37,115
25-01-20255,31,000
25-01-202516,22,500
07-03-202513,96,588
09-03-202530,90,198
12-03-20252,73,74,879
12-03-20252,73,74,879
15-03-202535,50,86,691
18-03-202513,96,588
Total(13,80,42,772)61,03,07,511

As per the above table data remaining invoice value should be 47,22,64,739
 
Could You send that Excel-sheet,
which You have here?
... and show there ... what do You want?
 
Attaching the file..hope this will give you some clarity but in simple words I want oldest payment received to be adjusted with oldest invoice first and thn move to next payment or next invoice... and at the end all the payments will be settled as payment received is less thn the outstanding invoices which will be 61.30-13.80= 47.22
 

Attachments

  • Customer_Outstanding.xlsx
    12.5 KB · Views: 8

Deepak_S

... in simple words ...
... hmm?
Could You mean something like this?
Check cell G2-formula to get those Your inputs for use.
Check cell I2-formula to get 'balance' (this needs to copy down manually).
 

Attachments

  • Customer_Outstanding.xlsx
    13.3 KB · Views: 5
Is this correct?:

DateInvoice AmountPayment received AmountBalance
21/03/2022​
90,098.00​
90,098.00​
03/11/2022​
-106,376.00​
-16,278.00​
14/11/2022​
1,467,993.00​
1,451,715.00​
16/06/2023​
-56,872.00​
1,394,843.00​
11/07/2023​
-1,595.00​
1,393,248.00​
25/09/2023​
50,951,006.00​
52,344,254.00​
31/03/2024​
-63,822.98​
52,280,431.02​
30/05/2024​
724,260.00​
55,901,731.02​
30/05/2024​
2,897,040.00​
55,901,731.02​
16/08/2024​
15,120,000.00​
71,021,731.02​
07/10/2024​
531,000.00​
73,175,231.02​
07/10/2024​
1,622,500.00​
73,175,231.02​
28/10/2024​
-2,146,000.00​
71,029,231.02​
11/12/2024​
1,396,588.00​
73,822,407.02​
11/12/2024​
1,396,588.00​
73,822,407.02​
23/12/2024​
116,237,115.00​
190,059,522.02​
25/01/2025​
1,622,500.00​
192,213,022.02​
25/01/2025​
531,000.00​
192,213,022.02​
06/03/2025​
-3,426,118.00​
188,786,904.02​
07/03/2025​
1,396,588.00​
190,183,492.02​
09/03/2025​
3,090,198.00​
193,273,690.02​
11/03/2025​
-115,506.00​
193,158,184.02​
12/03/2025​
27,374,879.00​
247,907,942.02​
12/03/2025​
27,374,879.00​
247,907,942.02​
15/03/2025​
355,086,690.86​
602,994,632.88​
18/03/2025​
1,396,588.00​
604,391,220.88​
22/03/2025​
-132,126,482.00​
472,264,738.88​
 
Hi..your output is correct but I need invoice no wise outstanding like..which invoices are fully settled and which are outstanding...I have to report which invoices are pending after adjusting these payments...please check this..Table-1 is raw data available....Table-2 expected output result...which I have done manually but don't want to do it again..

Table-1
Invoice No.Party's NameInvoice/
(Payments)
Respective date
NAABC(13,21,26,482)22-Mar-25
NAABC(34,26,118)06-Mar-25
NAABC(21,46,000)28-Oct-24
NAABC(1,15,506)11-Mar-25
NAABC(1,06,376)03-Nov-22
NAABC(63,823)31-Mar-24
NAABC(56,872)16-Jun-23
NAABC(1,595)11-Jul-23
19ABC90,09821-Mar-22
18ABC5,31,00007-Oct-24
17ABC5,31,00025-Jan-25
16ABC7,24,26030-May-24
15ABC13,96,58811-Dec-24
14ABC13,96,58811-Dec-24
13ABC13,96,58807-Mar-25
12ABC13,96,58818-Mar-25
11ABC14,67,99314-Nov-22
10ABC16,22,50007-Oct-24
9ABC16,22,50025-Jan-25
8ABC28,97,04030-May-24
7ABC30,90,19809-Mar-25
6ABC1,51,20,00016-Aug-24
5ABC2,73,74,87912-Mar-25
4ABC2,73,74,87912-Mar-25
3ABC5,09,51,00625-Sep-23
2ABC11,62,37,11523-Dec-24
1ABC35,50,86,69115-Mar-25


Table-2
Invoice No.Party's NameInvoice/
(Payments)
Respective date
NAABC-22-Mar-25
NAABC-06-Mar-25
NAABC-28-Oct-24
NAABC-11-Mar-25
NAABC-03-Nov-22
NAABC031-Mar-24
NAABC-16-Jun-23
NAABC-11-Jul-23
19ABC13,96,58821-Mar-22
18ABC35,50,86,69107-Oct-24
17ABC2,73,74,87925-Jan-25
16ABC2,73,74,87930-May-24
15ABC30,90,19811-Dec-24
14ABC13,96,58811-Dec-24
13ABC5,31,00007-Mar-25
12ABC16,22,50018-Mar-25
11ABC5,43,91,41614-Nov-22
10ABC-07-Oct-24
9ABC-25-Jan-25
8ABC-30-May-24
7ABC-09-Mar-25
6ABC-16-Aug-24
5ABC-12-Mar-25
4ABC-12-Mar-25
3ABC-25-Sep-23
2ABC-23-Dec-24
1ABC-15-Mar-25

Let me know if you still have any query...
 

Deepak_S

Where comes those Invoice No & Party's Names?
Or without those Your used details
This could show as below:
Screenshot 2025-03-27 at 11.22.33.png
 
Last edited:
I'm having great difficulty understanding how you reach your Table-2 figures.
So the following is a guess: I'm taking your invoices in date order, earliest first, then I'm looking for payments made after that invoice date and using them to pay that invoice, using as many payments as is needed to pay it fully, even if new invoices come in the meantime. Only when that first invoice is fully paid do I move onto the next invoice and use any overpayment and perhaps later payments as necessary to pay that invoice until it too is fully paid, then go onto the next invoice?
Is the following narrative an accurate description of what you're looking to happen? (where there is no 'Payment Used:' for an invoice means that only the overpayment was needed to cover the invoice)


Dealing with Invoice 19,ABC, for 90098,21/03/2022:
Payment used: NA,ABC,-106376,03/11/2022
Invoice no. 19 of 21/03/2022 for 90098 was fully paid by 03/11/2022 with an overpayment of -16278

Dealing with Invoice 11,ABC, for 1467993,14/11/2022:
Payment used: NA,ABC,-56872,16/06/2023
Payment used: NA,ABC,-1595,11/07/2023
Payment used: NA,ABC,-63823,31/03/2024
Payment used: NA,ABC,-2146000,28/10/2024
Invoice no. 11 of 14/11/2022 for 1467993 was fully paid by 28/10/2024 with an overpayment of -816575

Dealing with Invoice 3,ABC, for 50951006,25/09/2023:
Payment used: NA,ABC,-3426118,06/03/2025
Payment used: NA,ABC,-115506,11/03/2025
Payment used: NA,ABC,-132126482,22/03/2025
Invoice no. 3 of 25/09/2023 for 50951006 was fully paid by 22/03/2025 with an overpayment of -85533675

Dealing with Invoice 16,ABC, for 724260,30/05/2024:
Invoice no. 16 of 30/05/2024 for 724260 was fully paid by 22/03/2025 with an overpayment of -84809415

Dealing with Invoice 8,ABC, for 2897040,30/05/2024:
Invoice no. 8 of 30/05/2024 for 2897040 was fully paid by 22/03/2025 with an overpayment of -81912375

Dealing with Invoice 6,ABC, for 15120000,16/08/2024:
Invoice no. 6 of 16/08/2024 for 15120000 was fully paid by 22/03/2025 with an overpayment of -66792375

Dealing with Invoice 18,ABC, for 531000,07/10/2024:
Invoice no. 18 of 07/10/2024 for 531000 was fully paid by 22/03/2025 with an overpayment of -66261375

Dealing with Invoice 10,ABC, for 1622500,07/10/2024:
Invoice no. 10 of 07/10/2024 for 1622500 was fully paid by 22/03/2025 with an overpayment of -64638875

Dealing with Invoice 15,ABC, for 1396588,11/12/2024:
Invoice no. 15 of 11/12/2024 for 1396588 was fully paid by 22/03/2025 with an overpayment of -63242287

Dealing with Invoice 14,ABC, for 1396588,11/12/2024:
Invoice no. 14 of 11/12/2024 for 1396588 was fully paid by 22/03/2025 with an overpayment of -61845699

Dealing with Invoice 2,ABC, for 116237115,23/12/2024:
Invoice no. 2 of 23/12/2024 for 116237115 was partially paid by 22/03/2025 with an unpaid balance of 54391416

Dealing with Invoice 17,ABC, for 531000,25/01/2025:
Invoice no. 17 of 25/01/2025 for 531000 was not paid at all, leaving an unpaid balance of 54922416

Dealing with Invoice 9,ABC, for 1622500,25/01/2025:
Invoice no. 9 of 25/01/2025 for 1622500 was not paid at all, leaving an unpaid balance of 56544916

Dealing with Invoice 13,ABC, for 1396588,07/03/2025:
Invoice no. 13 of 07/03/2025 for 1396588 was not paid at all, leaving an unpaid balance of 57941504

Dealing with Invoice 7,ABC, for 3090198,09/03/2025:
Invoice no. 7 of 09/03/2025 for 3090198 was not paid at all, leaving an unpaid balance of 61031702

Dealing with Invoice 5,ABC, for 27374879,12/03/2025:
Invoice no. 5 of 12/03/2025 for 27374879 was not paid at all, leaving an unpaid balance of 88406581

Dealing with Invoice 4,ABC, for 27374879,12/03/2025:
Invoice no. 4 of 12/03/2025 for 27374879 was not paid at all, leaving an unpaid balance of 115781460

Dealing with Invoice 1,ABC, for 355086691,15/03/2025:
Invoice no. 1 of 15/03/2025 for 355086691 was not paid at all, leaving an unpaid balance of 470868151

Dealing with Invoice 12,ABC, for 1396588,18/03/2025:
Invoice no. 12 of 18/03/2025 for 1396588 was not paid at all, leaving an unpaid balance of 472264739
 
Last edited:
which I have done manually but don't want to do it again..
... maybe he wants to do those manually again.
They have interesting system
... who cares when and how much someone will pay bills?
 
... who cares when and how much someone will pay bills?
This sort of thing might be interesting to the likes of credit card companies, or those paying off debt/credit. People don't always pay the entire outstanding every month and the credit card companies charge different rates of interest at different times for various outstanding amounts, sometimes removing the interest free periods altogether.
See https://gethelp.virginmoney.com/hel...rst-if-I-have-purchases-and-promotional-rates
And https://forums.moneysavingexpert.co...-are-paid-off-when-paying-credit-card-balance
 

p45cal

Too long text to read,
... something like Your #8 reply.
I would expect that this kind of works someway like this rough sample.
After Invoice date, Someone have 14 days to pay then bill.
If payment will come later, then later days will mean 'penalty' eg yearly 5%.
I tried to test and find something ( it needs to modify - a lot! ).
 

Attachments

  • p45cal.xlsx
    20.3 KB · Views: 2
Back
Top