Date format

J

Jonathan Smith

I need to change a column of data from YYYYMMDD format
into MMDDYYYY. The data is extracted from our Hospital
Information System into Excel and the column of cells
have a "General" format. Any help is greatly appreciated.
 
D

Don Guillett

Can you just highlight(select) the column and right
click>format>custom>mmddyyyy
 
D

Dave Smith

If this doesn't work, you can try this:

=MID(A1,5,2) & RIGHT(A1,2) & LEFT(A1,4)

but I would use something more like this to get real dates and format the
cells appropriately:

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))

HTH
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top