Need Help in Dates

Santosh080

Board Regular
Joined
Jul 15, 2016
Messages
77
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
 
@Fluff
Today i have re-installed my office and it woks.I think there is issue with Office. Thanks.

But i have an issue with formula, when there is two same date it merge like this. But i do not want to merge the Credit or Debit Amt.

In data ,
03-08-2011​
2482.00​
03-08-2011​
6000.00​
I want result ,
03-08-2011​
2482.00​
03-08-2011​
6000.00​
31-08-2011​
0.00​

DateDebitCredit
23-04-20111000.0000-01-190000
12-05-201110000.0023-04-201110000
14-05-2011200000.0030-04-201100
26-05-201110000.0012-05-2011100000
02-06-201125000.0014-05-20112000000
10-06-201121000.0026-05-2011100000
13-06-201150000.0031-05-201100
18-06-2011102000.0002-06-2011250000
23-06-20112000.0010-06-2011210000
07-07-201160000.0013-06-2011500000
13-07-201125000.0018-06-20111020000
03-08-20112482.0023-06-201120000
03-08-20116000.0030-06-201100
10-08-201130000.0007-07-2011600000
12-08-201115000.0013-07-2011250000
20-08-201115000.0031-07-201100
25-08-201125000.0003-08-201184820
22-09-201125000.0010-08-2011300000
24-09-201125000.0012-08-2011150000
28-09-201125000.0020-08-2011150000
29-09-20110.0025000.0025-08-2011250000
29-09-20110.0029000.0031-08-201100
08-10-201125000.0022-09-2011250000
12-10-201125000.0024-09-2011250000
13-10-201150000.0028-09-2011250000
15-10-201125000.0029-09-2011054000
20-10-20115000.0030-09-201100
25-10-20115000.0008-10-2011250000
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Ok, how about
Excel Formula:
=LET(a,A2:A29,r,ROWS(a),l,CEILING(YEARFRAC(A2,MAX(a))*12,1),em,EOMONTH(A2,SEQUENCE(l+r,,0)),s,SEQUENCE(l+r),SORT(CHOOSE({1,2,3},IF(s<=r,a,INDEX(em,s-r)),IF(s<=r,B2:B29,0),IF(s<=r,C2:C29,0))))
 
Upvote 0
thanks Fluff
this works great. I have face an issue . When i increase the range (A Cell) but my data are less it generate some random dates like this.

formula i set,

8t88Vk


Result i get

JeWjCT




One request . At home i am using office 2021 and this works but at work place they have office 2016 and 2019. This formula not working in old office. Do you have any solution for this. Thanks
 
Upvote 0
Those are not random dates, they are 0 formatted as a date because you have included blank cells.
at work place they have office 2016 and 2019. This formula not working in old office.
Why didn't you say that at the start?
 
Upvote 0
This will allow you to use a large range
Excel Formula:
=LET(a,FILTER(A2:C100,A2:A100<>""),r,ROWS(a),l,CEILING(YEARFRAC(A2,MAX(INDEX(a,,1)))*12,1),em,EOMONTH(A2,SEQUENCE(l+r,,0)),s,SEQUENCE(l+r),SORT(CHOOSE({1,2,3},IF(s<=r,INDEX(a,,1),INDEX(em,s-r)),IF(s<=r,INDEX(a,,2),0),IF(s<=r,INDEX(a,,3),0))))
 
Upvote 0
Those are not random dates, they are 0 formatted as a date because you have included blank cells.

Why didn't you say that at the start?
sorry for that. I believed I could handle the data work from home initially, but due to a recent increase in workload, I have been unable to manage it. I find myself spending more hours at the office now. Therefore, if you have a solution for this, it would be greatly appreciated. Thank you.
 
Upvote 0
I cannot think of a way of doing it for 2019.
 
Upvote 0
You did not answer my questions in an early post!
If you want to try a very simple approach, consider the following.

Add a range of month end dates below your data.
You can leave the adjacent columns blank or include 0.

Sort the range on the date field.
You may have some duplicate month end dates. If these are a problem, delete them.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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