Converting Year/Month to correct date

Unicode

Board Regular
Joined
Apr 9, 2019
Messages
58
Would you know what would be the correct formula for converting year/month to correct date. Example: All rows display 2019/01, 2019/02, 2019/03... etc.

What I really need is to have the date listed as, "01/2019".

I tried to use "Text to Columns" and Format cells, DATE. I remain with date errors #VALUE ! on Column rows.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Did you select YMD when you used Text2columns?
 
Upvote 0
If you put =LEN(B3) into a cell where B3 conatins 2019/01 what does it say?
 
Upvote 0
I just tried again, Text to Columns, and I get:
Jan-19
2/1
3/1
4/1
5/1
6/1
7/1
8/1
9/1
10/1
11/1
12/1
That implies that it successfully converting them to dates.
Now, just apply a Custom Format of "mm/yyyy", and you should be all set.
 
Upvote 0
Would you know what would be the correct formula for converting year/month to correct date. Example: All rows display 2019/01, 2019/02, 2019/03... etc.
Noting that you are looking for a formula solution...

Those are Text strings, not dates. If you wanted the correct display (still Text, not real dates), you could use this formula...

=MID(A1&A1,8,7)

If you wanted real dates (you would have to custom format the cells to make them look the way you want), you could use this formula (note the dates would be the 1st of the month)...

=0+SUBSTITUTE(A1&"-01","/","-")
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,984
Members
449,058
Latest member
oculus

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