Date Formatting Help

steeld95

New Member
Joined
Sep 16, 2011
Messages
14
I am trying to change the format in a column to a specified date format (mm/dd/yyyy). I am importing my data from an xml. When the data comes into excel, it comes in the following format yyyymmdd. It is formated as general text. I am highlighting the row and hitting format cells. I then choose the date category and try to format it to 3/14/2011 format. The cell then changes to #########.

Is ther a way I can convert the date format I am bringing in from the xml to what I need it to look like?

Thanks for the help!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
IF it's coming in as general text, try converting it to a value using VALUE(A1).

There might be more that has to be done to get it to the right format though.
 
Upvote 0
Select your column of numbers, press ALT+DE to bring up the Text To Coluumns dialog box, click Next twice, select the Date option button and choose YMD from it drop down box, then click Finish. You now have real dates which you can Cell Format to display anyway you want it to.
 
Upvote 0
If you are using the wizard to import then you should be able to set the column format to YMD then it'll convert on import - alternatively you can convert after import in a similar manner

Select column of data then use

Data > Text to columns > Next > Next > under "column data format" choose "date" and the "YMD" from the dropdown > Finish

That should convert to true dates - format as required
 
Upvote 0
Thanks so much! Using the 'Text to Columns' feature worked exactly how I needed it show. I really appreciate it!
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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