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.
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
36,188
Office Version
365
Platform
Windows
Did you select YMD when you used Text2columns?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
36,188
Office Version
365
Platform
Windows
If you put =LEN(B3) into a cell where B3 conatins 2019/01 what does it say?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
52,221
Office Version
365
Platform
Windows
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.
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
35,666
Office Version
2010
Platform
Windows
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","/","-")
 

Watch MrExcel Video

Forum statistics

Threads
1,090,549
Messages
5,415,219
Members
403,572
Latest member
ballardgirl

This Week's Hot Topics

Top