Days Difference Between Date

FMHasan

New Member
Joined
Nov 2, 2021
Messages
36
Office Version
  1. 2016
Platform
  1. Windows
I have attached an excel sheet. I need to find out how much time we are taking for payment against each of individual purchase. Like in this data sheet 1st purchase done at 06/01/2021 & Amount was 30,94,110 & payment date was 28/02/2021 & the amount was exactly same. Difference between purchase to payment days were(28/02/2021 - 06/01/2021) = 53 days . But the main problem is we always don't payment exact purchase amount at one time. We made it through 2 or more partial payment in several days. So, I need a result of days difference between Purchase & payment days. Here one important things need to clear, in time of finding the result each individual purchase amount must be Zero (0) by payment. And the last date of payment (When Purchase =< Payment ) then the result will be computing by considering purchase date to last date of payment. Result will be shown in beside of Purchase column- (column E). Is there any formula or VBA code can solve this problem? Thanks in advance for your supporting

Mama Bagne.xlsx
ABCD
1DateTransaction Payment Purchase
206/01/2021Purchase30,94,110
330/01/2021Purchase30,70,234
408/02/2021Purchase30,77,656
528/02/2021Trust Bank Ltd-7017-0212003738(C/A)30,94,110
602/03/2021Purchase29,60,141
713/03/2021Purchase26,75,790
806/04/2021Purchase31,71,930
908/04/2021Trust Bank Ltd-7017-0212003738(C/A)15,00,000
1015/04/2021Trust Bank Ltd-7017-0212003738(C/A)15,00,000
1122/04/2021Trust Bank Ltd-7017-0212003738(C/A)15,00,000
1202/05/2021Purchase33,95,860
1304/05/2021Purchase30,52,800
1405/05/2021Trust Bank Ltd-7017-0212003738(C/A)13,75,790
1508/05/2021Trust Bank Ltd-7017-0212003738(C/A)15,00,000
1609/05/2021Purchase33,99,560
1711/05/2021Purchase50,89,276
1813/05/2021Trust Bank Ltd-7017-0212003738(C/A)15,00,000
1920/05/2021Purchase45,31,760
2025/05/2021Trust Bank Ltd-7017-0212003738(C/A)15,05,431
2131/05/2021Trust Bank Ltd-7017-0212003738(C/A)14,00,000
2209/06/2021Purchase16,96,820
2315/06/2021Trust Bank Ltd-7017-0212003738(C/A)16,00,000
2421/06/2021Purchase16,99,532
2524/06/2021Trust Bank Ltd-7017-0212003738(C/A)16,00,000
2605/07/2021Trust Bank Ltd-7017-0212003738(C/A)16,00,000
2711/07/2021Purchase16,69,510
2815/07/2021Trust Bank Ltd-7017-0212003738(C/A)17,67,790
2927/07/2021Trust Bank Ltd-7017-0212003738(C/A)15,00,000
3004/08/2021Purchase16,81,920
3108/08/2021Purchase16,77,540
3212/08/2021Trust Bank Ltd-7017-0212003738(C/A)15,52,800
3322/08/2021Purchase16,71,700
3424/08/2021Trust Bank Ltd-7017-0212003738(C/A)16,50,000
3502/09/2021Purchase16,73,160
3609/09/2021Trust Bank Ltd-7017-0212003738(C/A)16,50,000
3716/09/2021Trust Bank Ltd-7017-0212003738(C/A)16,50,000
3823/09/2021Trust Bank Ltd-7017-0212003738(C/A)17,00,000
3923/09/2021Purchase16,74,620
4030/09/2021Trust Bank Ltd-7017-0212003738(C/A)16,50,000
4102/10/2021Purchase16,76,810
4205/10/2021Purchase11,39,092
4310/10/2021Trust Bank Ltd-7017-0212003738(C/A)17,00,000
4418/10/2021Trust Bank Ltd-7017-0212003738(C/A)20,00,000
4520/10/2021Trust Bank Ltd-7017-0212003738(C/A)16,00,000
4624/10/2021Purchase19,21,335
4727/10/2021Purchase19,21,335
4828/10/2021Trust Bank Ltd-7017-0212003738(C/A)16,00,000
4928/10/2021Purchase18,87,935
5028/10/2021Purchase19,23,840
5107/11/2021Purchase19,17,160
5211/11/2021Trust Bank Ltd-7017-0212003738(C/A)16,00,000
5313/11/2021Purchase19,23,005
5415/11/2021Purchase19,23,840
5516/11/2021Trust Bank Ltd-7017-0212003738(C/A)10,00,000
5621/11/2021Trust Bank Ltd-7017-0212003738(C/A)10,00,000
5723/11/2021Trust Bank Ltd-7017-0212003738(C/A)9,00,000
5825/11/2021Purchase19,09,645
5930/11/2021Trust Bank Ltd-7017-0212003738(C/A)10,68,378
6012/12/2021Trust Bank Ltd-7017-0212003738(C/A)13,00,000
6113/12/2021Purchase19,27,215
6218/12/2021Purchase19,45,012
6320/12/2021Purchase19,50,945
6421/12/2021Trust Bank Ltd-7017-0212003738(C/A)13,00,000
6530/12/2021Trust Bank Ltd-7017-0212003738(C/A)14,22,400
6631/12/2021Purchase19,45,860
6706/01/2022Purchase19,48,402
6806/01/2022Purchase19,50,945
6910/01/2022Trust Bank Ltd-7017-0212003738(C/A)15,00,000
7021/01/2022Trust Bank Ltd-7017-0212003738(C/A)15,00,000
7122/01/2022Purchase19,46,707
7222/01/2022Purchase19,49,250
7325/01/2022Trust Bank Ltd-7017-0212003738(C/A)20,00,000
7431/01/2022Trust Bank Ltd-7017-0212003738(C/A)14,90,522
7502/02/2022Trust Bank Ltd-7017-0212003738(C/A)20,00,000
7602/02/2022Cash Head Office20,00,000
7711/02/2022Trust Bank Ltd-7017-0212003738(C/A)18,00,000
7818/02/2022Trust Bank Ltd-7017-0212003738(C/A)18,00,000
7928/02/2022Trust Bank Ltd-7017-0212003738(C/A)20,54,445
8010/03/2022Trust Bank Ltd-7017-0212003738(C/A)19,00,000
8120/03/2022Purchase19,50,097
8220/03/2022Purchase19,49,250
8321/03/2022Trust Bank Ltd-7017-0212003738(C/A)19,00,000
8431/03/2022Trust Bank Ltd-7017-0212003738(C/A)19,64,005
8507/04/2022Purchase22,46,400
8607/04/2022Purchase22,44,450
8712/04/2022Trust Bank Ltd-7017-0212003738(C/A)25,00,000
8820/04/2022Trust Bank Ltd-7017-0212003738(C/A)25,00,000
8930/04/2022Trust Bank Ltd-7017-0212003738(C/A)25,00,000
9014/05/2022Trust Bank Ltd-7017-0212003738(C/A)21,78,677
9126/05/2022Trust Bank Ltd-7017-0212003738(C/A)16,50,000
Mama Vagne Oil Mill
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You really need a way to link the purchase to the payment for example a PO ( Purchase Order) number as just linking a value or multiple values to a payment will lead to mismatching payments to purchases
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,391
Members
449,080
Latest member
Armadillos

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