Separate dates from particular month/year

dvhristov

New Member
Joined
Aug 30, 2018
Messages
6
Hello everyone!

I’m trying to resolve this issue more than week but unfortunately I couldn’t without help!

I will try my best to explain exactly what I want and for your convenience I’ve made a table with examples.

ABCDE
1DatesJun-18Jul-18Aug-18Sep-18
214/06/201814/06/201810/07/201808/08/2018
314/06/201814/06/201812/07/201814/08/2018
423/06/201823/06/201825/07/201823/08/2018
510/07/201825/07/201823/08/2018
612/07/201830/08/2018
725/07/2018
825/07/2018
908/08/2018
1014/08/2018
1123/08/2018
1223/08/2018
1330/08/2018

[/tr]


In column “A” I have list of dates and in row 1 I have list of months and years. I want to separate dates in column “A” and put it in respective month and year from row 1. For example in column “B” I want excel to show me only dates from June 2018; in column “C” only dates from July 2018 and etc. Finally I want this dynamically – when I write a new date in column “A” excel automatically to put it in respective cell under respective month and year.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I am assuming that B1:E1 are also actually dates being the 1st of each month, but formatted to show just mm-yy

If so, try this, copied across and down after adjusting the $200 values to be large enough for any expected data.

Excel Workbook
ABCDE
1DatesJun-18Jul-18Aug-18Sep-18
214/06/201814/06/201810/07/20188/08/2018
314/06/201814/06/201812/07/201814/08/2018
423/06/201823/06/201825/07/201823/08/2018
510/07/201825/07/201823/08/2018
612/07/201830/08/2018
725/07/2018
825/07/2018
98/08/2018
1014/08/2018
1123/08/2018
1223/08/2018
1330/08/2018
14
List Dates
 
Upvote 0
Thank you Peter_SSs!

You are right - B1-E1 are actual dates and formatted to show mm-yy.

Unfortunately the formula you suggest doesn't work for me!

In column "E" for example I want to show me only dates from September 2018.
 
Upvote 0
Unfortunately the formula you suggest doesn't work for me!
That doesn't give us much to go on. ;)

You can see that it worked for me, so what does it do for you that is different?
Does it error?
Does it return all blanks?
Does it put dates in the wrong column?
Something else?

You confirmed that B1:E1 are dates but not that those dates were 1-June-18, 1-July-18 etc. Is that the case?

Did you copy/paste my formula from the forum or did you re-type it yourself?

Did you modify the formula in some way to suit a different data layout?

Have you tried the formula in a fresh sheet with exactly this sample data and layout?

What version of Excel are you using?
 
Last edited:
Upvote 0
Peter_SSs,

I’m sorry for my previous reply! It's my fault! Actually your formula works perfectly! Thank you very much!
 
Last edited:
Upvote 0
Peter_SSs,

I’m sorry for my previous reply! It's my fault! Actually your formula works perfectly! Thank you very much!
Glad you got it sorted out. Thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,214,901
Messages
6,122,157
Members
449,068
Latest member
shiz11713

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