Automatically convert date entry format

girapas

Board Regular
Joined
Apr 20, 2004
Messages
150
In a cell, a user enters a date in this format: ddmmyy
How can that entry be automatically converted in a format like: dd/mm/yyyy after the user hits Enter key.
Thanks in advance
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

Have you tried formatting the cell before data is entered?
Right click the cell.
Select Format Cells.
Click Date.
Select the required format.
Click Ok.

I hope that helps.
Good luck.

Ak
 
Upvote 0
Unfortunately, that doesn't help. Having format date as dd/mm/yyyy when I enter e.g. 251112 I get 08/07/2587
 
Upvote 0
Thanks for that Mark,

I wondered what I was doing wrong with Custom Format!
I was missing the "

Thanks

Ak
 
Upvote 0
Glad it gave a pointer (and glad I eventually remembered to put in the 20)
 
Upvote 0
In a cell, a user enters a date in this format: ddmmyy
How can that entry be automatically converted in a format like: dd/mm/yyyy after the user hits Enter key.
Thanks in advance
Just so you know, custom formatting that value will not make it an actual date... it will only look like a date... the underlying value in the cell will be the exact number the user typed in. We can do what you want using event code, but first we need to know what cell or cells do you want this automatic conversion to take place in?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,456
Members
452,514
Latest member
cjkelly15

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