Convert raw input from yyyy/mm/dd to dd/mm/yyyy, not just format

alexcon

New Member
Joined
Dec 29, 2017
Messages
20
Hi, I really struggle with manipulating date formats and date input fields sometimes.


I've got dates entered as yyyy/mm/dd on a few hundred rows. It's easy to change the format to dd/mm/yyyy but the problem is that the raw input is still yyyy/mm/dd. So it appears excel is getting confused by this backwards date inputting and formatting.

How can swap yyyy/mm/dd to dd/mm/yyyy in both the format and input field?

Any suggestions appreciated.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Are you looking for something like this:


Unknown
AB
1YYYY/MM/DDDD/MM/YYYY
22018/02/0303/02/2018
Sheet18
Cell Formulas
RangeFormula
B2=DATE(LEFT(A2,4),MID(A2,6,2),RIGHT(A2,2))
 
Last edited:
Upvote 0
If the yyyy/mm/dd is Text with no extra characters, try coercing them to dates and then format the true date to your preference say dd-mmm-yy.
To coerce, try the following:
copy a blank cell Ctrl+C
select the relevant range and Paste Special | Add
 
Upvote 0
Are you looking for something like this:

Unknown
AB
YYYY/MM/DDDD/MM/YYYY
2018/02/03

<tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]03/02/2018[/TD]

</tbody>
Sheet18

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH]B2[/TH]
[TD="align: left"]=DATE(LEFT(A2,4),MID(A2,6,2),RIGHT(A2,2))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


Tried this, I just get #VALUE! as the result
 
Last edited:
Upvote 0
Hi, I really struggle with manipulating date formats and date input fields sometimes.


I've got dates entered as yyyy/mm/dd on a few hundred rows. It's easy to change the format to dd/mm/yyyy but the problem is that the raw input is still yyyy/mm/dd. So it appears excel is getting confused by this backwards date inputting and formatting.

How can swap yyyy/mm/dd to dd/mm/yyyy in both the format and input field?
You should be able to change them into dates directly within their existing cells. Select the entire column containing those backward dates, then change the cells' format to "General". Next, call up the "Text to Columns" dialog box ("Data" tab, "Data Tools" panel, "Text To Columns" button) and click the "Finish" button as soon as the dialog box appears. I think that should make your backward dates into real Excel dates.
 
Upvote 0
There was an underlying issue with my win10 settings. I had to change the date time format there first for it work.
 
Upvote 0

Forum statistics

Threads
1,224,743
Messages
6,180,687
Members
452,994
Latest member
Janick

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