Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing date format in Excel cell 1

Status
Not open for further replies.

stinkybee

Programmer
May 15, 2001
218
GB
I have an excel worksheet that contains dates in the following format:

1st Jan 2010

I need to change this to the following format:

01/01/2010

Is there an easy way to do this?

Thanks
 
Easiest way I can see is to Find/Replace the "1st", "2nd", "3rd" etc with 1,2,3,...
Then format the cell number type how you wish. At most it will take 10 find/replaces. But don't forget the "0th" (this takes care of 10th, 20th, 30th)
 


Easiest way I can see is to Find/Replace the "1st", "2nd", "3rd" etc with 1,2,3,...

Just replace the TEXT part with NOTHING. Don't worry about any numbers.

Replace st with NOTHING and repeat for nd, rd, th

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks for replies, I was hoping there would be a simple function as this is going to be a common occurance.

Maybe I should post on the VBA forum to try and get some code that could do this form me automatically.
 


Simply turn on your macro recorder and record doing the find & replace process to ALL 4 strings. then just run that macro every time!

SIMPLE!

Do post in forum707 if you have any VBA code questions.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 


Just a bit of texual coersion! ;-)

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top