Automatically allocate the final paid date for the partially paid invoices

arrud14

New Member
Joined
Dec 17, 2022
Messages
14
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hii
I have a data set containing the invoice details and the details of recurring payment received from the customer and i want to allocate the final paid date for the every particular invoice calculating the sum of amount automatically
 

Attachments

  • IMG_20221217_234519.jpg
    IMG_20221217_234519.jpg
    229.7 KB · Views: 23
In that case mark them both in your account details now ..
View attachment 82746


.. and in future when you ask a question if it needs to work in the older version, say so in the first post of the thread.
Done, Now pls help me sir even when i am using the same formula in excel 2021 it is showing #name error
 

Attachments

  • IMG_20230114_092209.jpg
    IMG_20230114_092209.jpg
    19.6 KB · Views: 6
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thank you.

Try this. Add an extra column to the payment details section as shown. You can hide that new column if you want.
Replacement formula for column F is suggested.

arrud14.xlsm
CDEFHIJKLM
2Invoice AmountInvoice No.NamesClearence dateFosBankingDateBankCumulative by Name
3259139453074RAJAN PAL06-Dec-22CHANDAN330008-Dec-22PUNB3300
4543239468693RAJAN PAL06-Dec-22CHANDAN595011-Dec-22PUNB9250
5480639460801RAJAN PAL10-Dec-22CHANDAN600012-Dec-22PUNB15250
6255039503179RAJAN PAL10-Dec-22CHANDAN390013-Dec-22PUNB19150
7330039542391CHANDAN08-Dec-22CHANDAN800014-Dec-22PUNB27150
8344439566311CHANDAN11-Dec-22RAJAN PAL1210006-Dec-22PUNB12100
9250539566584CHANDAN11-Dec-22RAJAN PAL608210-Dec-22PUNB18182
10275139574859RAJAN PAL10-Dec-22RAJAN PAL1142112-Dec-22PUNB29603
11341139608264CHANDAN12-Dec-22RAJAN PAL371113-Dec-22PUNB33314
12480539608111CHANDAN13-Dec-22
13270039625463CHANDAN14-Dec-22
14360039611283CHANDAN14-Dec-22
15422539603022RAJAN PAL12-Dec-22
16290239603295RAJAN PAL12-Dec-22
17429439603153RAJAN PAL12-Dec-22
18390039685842CHANDANnot paid
19371139671011RAJAN PAL13-Dec-22
Sheet3
Cell Formulas
RangeFormula
M3:M11M3=SUMIF(I$3:I3,I3,J$3:J3)
F3:F19F3=IFERROR(AGGREGATE(15,6,K$3:K$11/((I$3:I$11=E3)*(M$3:M$11>=SUMIF(E$3:E3,E3,C$3:C3))),1),"not paid")
 
Upvote 0
T
Thank you.

Try this. Add an extra column to the payment details section as shown. You can hide that new column if you want.
Replacement formula for column F is suggested.

arrud14.xlsm
CDEFHIJKLM
2Invoice AmountInvoice No.NamesClearence dateFosBankingDateBankCumulative by Name
3259139453074RAJAN PAL06-Dec-22CHANDAN330008-Dec-22PUNB3300
4543239468693RAJAN PAL06-Dec-22CHANDAN595011-Dec-22PUNB9250
5480639460801RAJAN PAL10-Dec-22CHANDAN600012-Dec-22PUNB15250
6255039503179RAJAN PAL10-Dec-22CHANDAN390013-Dec-22PUNB19150
7330039542391CHANDAN08-Dec-22CHANDAN800014-Dec-22PUNB27150
8344439566311CHANDAN11-Dec-22RAJAN PAL1210006-Dec-22PUNB12100
9250539566584CHANDAN11-Dec-22RAJAN PAL608210-Dec-22PUNB18182
10275139574859RAJAN PAL10-Dec-22RAJAN PAL1142112-Dec-22PUNB29603
11341139608264CHANDAN12-Dec-22RAJAN PAL371113-Dec-22PUNB33314
12480539608111CHANDAN13-Dec-22
13270039625463CHANDAN14-Dec-22
14360039611283CHANDAN14-Dec-22
15422539603022RAJAN PAL12-Dec-22
16290239603295RAJAN PAL12-Dec-22
17429439603153RAJAN PAL12-Dec-22
18390039685842CHANDANnot paid
19371139671011RAJAN PAL13-Dec-22
Sheet3
Cell Formulas
RangeFormula
M3:M11M3=SUMIF(I$3:I3,I3,J$3:J3)
F3:F19F3=IFERROR(AGGREGATE(15,6,K$3:K$11/((I$3:I$11=E3)*(M$3:M$11>=SUMIF(E$3:E3,E3,C$3:C3))),1),"not paid")
Thankyou sir its working. Sir could you pls explain how this formula is working and after applying the formula my excel sheet is being freezing and taking longer than usual in loading threads could you pls suggest how can i fix that.
 
Upvote 0
Thankyou sir its working.
Good news! You're welcome.

Sir could you pls explain how this formula is working
The extra column keeps a record of the total amount paid by a person at a particular date. for example, by 12-Dec-22 CHANDAN has paid a total of 15,250

The last part of the column F formula sums the total invoices for that person up to the row the formula is on. For example, for cell F11 the total invoices for CHANDAN up to that point is 12,660 (sum of C7,C8,C9 & C11). The AGGREGATE part of the function then finds the earliest date in column K for which the column M value >= 12,660 and column I is CHANDRAN. That happens in row 5 so 12-Dec-22 is returned in F11

could you pls suggest how can i fix that
I have no worksheet formula fix for that. The formula has to calculate what it has to calculate, and the time that takes will depend on your machine and the amount of data.

Perhaps you could have a macro solution that calculates and places the fixed values in the cells rather than having formulas there.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,814
Messages
6,181,120
Members
453,021
Latest member
Justyna P

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