Need Help in Dates

Santosh080

Board Regular
Joined
Jul 15, 2016
Messages
73
Office Version
  1. 2021
Platform
  1. Windows
Hello Friends,

I have a excel data like below,

DateDebitCredit
12-02-20119,101.00
31-12-201165,000.00
18-01-20122,000.00
24-02-20128,400.00
02-03-20124,400.00
30-03-20125,000.00
08-10-20125,000.00
03-12-20125,000.00
24-01-201319,372.00
16-05-201315,000.00
06-06-201310,000.00
02-07-201316,000.00
12-08-201313,000.00
09-12-20134,000.00
23-01-201418,870.00
28-01-20147,000.00
03-03-20148,000.00


Here i want this type result,
DatesDebitCredit
12-02-201191010
28-02-201100
31-03-201100
30-04-201100
31-05-201100
30-06-201100
31-07-201100
31-08-201100
30-09-201100
31-10-201100
30-09-201100
31-10-201100
30-11-201100
31-12-2011065000
18-01-201202000
31-01-201200
24-02-201208400
29-02-201200
02-03-201204400
30-03-201205000
31-03-201200
30-04-201200
31-05-201200
30-06-201200
31-07-201200
31-08-201200
30-09-201200
08-10-201205000
31-10-201200
30-11-201200
03-12-201205000
31-12-201200
24-01-2013193720
31-01-201300
28-02-201300
31-03-201300
30-04-201300
16-05-2013015000
31-05-201300
06-06-2013010000
30-06-201300
02-07-2013016000
31-07-201300
12-08-2013013000
31-08-201300
30-09-201300
31-10-201300
30-11-201300
09-12-201304000
31-12-201300
23-01-2014188700
28-01-201407000
31-01-201400
28-02-201400
03-03-201408000




I want to put each month end date between dates. Can it possible withour VBA?

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I think this will work in excel 2021. It's a bit less cumbersome in 365.

MrExcelPlayground19.xlsx
ABCDEFGH
1DateDebitCreditDateDebitCredit
22/12/201191012/12/2011$9,101$0
312/31/2011650002/28/2011$0$0
41/18/201220003/31/2011$0$0
52/24/201284004/30/2011$0$0
63/2/201244005/31/2011$0$0
73/30/201250006/30/2011$0$0
810/8/201250007/31/2011$0$0
912/3/201250008/31/2011$0$0
101/24/2013193729/30/2011$0$0
115/16/20131500010/31/2011$0$0
126/6/20131000011/30/2011$0$0
137/2/20131600012/31/2011$0$65,000
148/12/2013130001/18/2012$0$2,000
1512/9/201340001/31/2012$0$0
161/23/2014188702/24/2012$0$8,400
171/28/201470002/29/2012$0$0
183/3/201480003/2/2012$0$4,400
193/30/2012$0$5,000
203/31/2012$0$0
214/30/2012$0$0
225/31/2012$0$0
236/30/2012$0$0
247/31/2012$0$0
258/31/2012$0$0
269/30/2012$0$0
2710/8/2012$0$5,000
2810/31/2012$0$0
2911/30/2012$0$0
3012/3/2012$0$5,000
3112/31/2012$0$0
321/24/2013$19,372$0
331/31/2013$0$0
342/28/2013$0$0
353/31/2013$0$0
364/30/2013$0$0
375/16/2013$0$15,000
385/31/2013$0$0
396/6/2013$0$10,000
406/30/2013$0$0
417/2/2013$0$16,000
427/31/2013$0$0
438/12/2013$0$13,000
448/31/2013$0$0
459/30/2013$0$0
4610/31/2013$0$0
4711/30/2013$0$0
4812/9/2013$0$4,000
4912/31/2013$0$0
501/23/2014$18,870$0
511/28/2014$0$7,000
521/31/2014$0$0
532/28/2014$0$0
543/3/2014$0$8,000
Sheet16
Cell Formulas
RangeFormula
F2:F54F2=LET(z,A2:A18,a,MIN(z),b,MAX(z),aa,YEAR(a)*12+MONTH(a),bb,YEAR(b)*12+MONTH(b),c,bb-aa,d,EOMONTH(a,SEQUENCE(c,1,0)),g,ROWS(z),h,ROWS(d),j,SEQUENCE(g+h),e,IF(j<=g,INDEX(z,j),INDEX(d,j-g)),f,SORT(UNIQUE(e)),f)
G2:G54G2=XLOOKUP(F2#,A2:A18,B2:B18,0,0)
H2:H54H2=XLOOKUP(F2#,A2:A18,C2:C18,0,0)
Dynamic array formulas.
 
Upvote 0
How about
Fluff.xlsm
ABCDEFGH
1DateDebitCredit
212/02/2011910112/02/201191010
331/12/20116500028/02/201100
418/01/2012200031/03/201100
524/02/2012840030/04/201100
602/03/2012440031/05/201100
730/03/2012500030/06/201100
808/10/2012500031/07/201100
903/12/2012500031/08/201100
1024/01/20131937230/09/201100
1116/05/20131500031/10/201100
1206/06/20131000030/11/201100
1302/07/20131600031/12/2011065000
1412/08/20131300018/01/201202000
1509/12/2013400031/01/201200
1623/01/20141887024/02/201208400
1728/01/2014700029/02/201200
1803/03/2014800002/03/201204400
1930/03/201205000
2031/03/201200
2130/04/201200
2231/05/201200
2330/06/201200
2431/07/201200
2531/08/201200
2630/09/201200
2708/10/201205000
2831/10/201200
2930/11/201200
3003/12/201205000
3131/12/201200
3224/01/2013193720
3331/01/201300
3428/02/201300
3531/03/201300
3630/04/201300
3716/05/2013015000
3831/05/201300
3906/06/2013010000
4030/06/201300
4102/07/2013016000
4231/07/201300
4312/08/2013013000
4431/08/201300
4530/09/201300
4631/10/201300
4730/11/201300
4809/12/201304000
4931/12/201300
5023/01/2014188700
5128/01/201407000
5231/01/201400
5328/02/201400
5403/03/201408000
Master
Cell Formulas
RangeFormula
F2:F54F2=LET(a,A2:A18,r,ROWS(a),l,CEILING(YEARFRAC(A2,MAX(a))*12,1),em,EOMONTH(A2,SEQUENCE(l+r,,0)),s,SEQUENCE(l+r),SORT(UNIQUE(IF(s<=r,a,INDEX(em,s-r)))))
G2:H54G2=SUMIFS(B:B,$A:$A,$F2#)
Dynamic array formulas.
 
Upvote 0
I went for a 1 cell solution. Probably overly complex compared to the others.

Record on Open.xlsm
ABCDEFG
1DateDebitCreditDateDebitCredit
212-02-2011910112-02-201191010
331-12-20116500028-02-201100
418-01-2012200031-03-201100
524-02-2012840030-04-201100
602-03-2012440031-05-201100
730-03-2012500030-06-201100
808-10-2012500031-07-201100
903-12-2012500031-08-201100
1024-01-20131937230-09-201100
1116-05-20131500031-10-201100
1206-06-20131000030-11-201100
1302-07-20131600031-12-2011065000
1412-08-20131300018-01-201202000
1509-12-2013400031-01-201200
1623-01-20141887024-02-201208400
1728-01-2014700029-02-201200
1803-03-2014800002-03-201204400
1930-03-201205000
2031-03-201200
2130-04-201200
2231-05-201200
2330-06-201200
2431-07-201200
2531-08-201200
2630-09-201200
2708-10-201205000
2831-10-201200
2930-11-201200
3003-12-201205000
3131-12-201200
3224-01-2013193720
3331-01-201300
3428-02-201300
3531-03-201300
3630-04-201300
3716-05-2013015000
3831-05-201300
3906-06-2013010000
4030-06-201300
4102-07-2013016000
4231-07-201300
4312-08-2013013000
4431-08-201300
4530-09-201300
4631-10-201300
4730-11-201300
4809-12-201304000
4931-12-201300
5023-01-2014188700
5128-01-201407000
5231-01-201400
5328-02-201400
5403-03-201408000
5531-03-201400
Sheet2
Cell Formulas
RangeFormula
E1:G55E1=LET(h,A1:C1,dt,A2:A18,d,B2:B18,c,C2:C18,mnd,MIN(dt),mxd,MAX(dt),di,DATEDIF(mnd,mxd,"m")+2,eo,MAP(INDEX(INDEX(dt,1),SEQUENCE(di,,,0)),SEQUENCE(di,,0),LAMBDA(x,y,EOMONTH(x,y))),u,UNIQUE(SORT(VSTACK(dt,eo))),dbt,XLOOKUP(u,dt,d,0),cdt,XLOOKUP(u,dt,c,0),VSTACK(h,HSTACK(u,dbt,cdt)))
Dynamic array formulas.
 
Upvote 0
Nor will the MAP function.
 
Upvote 0
You know, I just checked LET and FILTER, and both came up as available in 2021. I just figured it had all of them by now. Oh well, good to know guys.
 
Upvote 0
I did not see the reason for the month end dates.
What calculations will you do with this information?
 
Upvote 0
thanks for help. When try the above formulas i get this error. Help me with this error.
Untitled.jpg
 
Upvote 0
Do you normally use a comma as the separator in a formula, or do you use semi-colons?
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,977
Members
449,095
Latest member
Mr Hughes

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