General Formatted Numbers Refuse to Format into Dates

bencar

Banned user
Joined
Jun 8, 2016
Messages
149
I got dates on excel in general format form. I want to format them to actual dates. I tried formatting them as dates but they stay the same so it doesnt work. I read about delimiter but I tried it and that doesnt work either or maybe I'm not doing it right. ANyway here are the dates:
31.03.14
28.04.15

I want to format them to look like this:
3/31/2014
4/28/2015


How can I do this very simply using delimiter or other method and without any advanced fancy formulas?

.
 
Last edited:

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
Sounds like they are not real dates. What happens if you do
=ISNUMBER(A1)
change A1 to a cell with one of those dates.
 
Upvote 0
Sounds like they are not real dates. What happens if you do
=ISNUMBER(A1)
change A1 to a cell with one of those dates.

But thats what I said before. Theyre not formatted as dates theyre in general format.

Anyway I used your formula and entered one of the "date" into A1 and I get 'false'.

Is there a way to do this with delimiter? I tried it in delimiter but I dont think I did it right. Or any other method?
 
Upvote 0
If all of your dates will be after the year 1999, then you can use this...

=DATE(2000+RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))
 
Upvote 0
If all of your dates will be after the year 1999, then you can use this...

=DATE(2000+RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))

That worked. But where can I read up on this formula to get the hang of what it means?

And isnt there an easier way to do this in delimiter??
 
Upvote 0
If all of your dates will be after the year 1999, then you can use this...

=DATE(2000+RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2))

I'm confused by how this formula works. How does each piece of the formula make '31.03.14' turn into '3/31/2014'?
 
Last edited:
Upvote 0
I'm confused by how this formula works. How does each piece of the formula make '31.03.14' turn into '3/31/2014'?
The DATE function takes three arguments... DATE(Year,Month,Day). The year is derived from the right two digits and 2000 is added to it to make the year a 4-digit number in the 2000's. The month is derived from the middle two digits... the MID function pulls them out by starting at the 4th character position and grabbing 2 characters. The day is derived from the first two characters (leading zeroes are assumed for single digit days) and we get those using the LEFT function.
 
Upvote 0
The DATE function takes three arguments... DATE(Year,Month,Day). The year is derived from the right two digits and 2000 is added to it to make the year a 4-digit number in the 2000's. The month is derived from the middle two digits... the MID function pulls them out by starting at the 4th character position and grabbing 2 characters. The day is derived from the first two characters (leading zeroes are assumed for single digit days) and we get those using the LEFT function.


But how does the formula know where to put the year, day and month? For example, the DATE function follows: year, month and day in that order. My date which is '31.03.14' follows day, month and year. Other dates are formatted as: month, year and day... and day, year and month. How does the formula format these dates in its own order? Its very confusing.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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