Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default converting data - re-formating data to "date" format

I have raw data that I export from a site for work and the date comes over as
Internationa ISO however it has no dashes in it to help format. Example it
looks like this... 20080302 just straight numbers. i need to convert this to
US date format.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default converting data - re-formating data to "date" format

I would think Text to columns.

Ensure you have 2 columns available to the right of your date column.

Click Data - Text to Clumns...

Select Fixed Width and click between the 4th and 5th charatcers, then
between the 6th and 7th characters. Should break it out nicely. If you want
to combine back, you can enter a forumla to the right = month cell &"/"& day
cell &"/"& year cell.

"James" wrote:

I have raw data that I export from a site for work and the date comes over as
Internationa ISO however it has no dashes in it to help format. Example it
looks like this... 20080302 just straight numbers. i need to convert this to
US date format.

Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default converting data - re-formating data to "date" format

Assuming that the data came across as text, the following formula will
convert the data to an Excel serial date number, changing A1 to the starting
cell of your value column/row:

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

After copying the formula as far as needed, copy all the cell with a formula
and then do an EDIT/PASTE SPECIAL/VALUES to convert the formulas to their
respective result value.
--
Kevin Backmann


"James" wrote:

I have raw data that I export from a site for work and the date comes over as
Internationa ISO however it has no dashes in it to help format. Example it
looks like this... 20080302 just straight numbers. i need to convert this to
US date format.

Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default converting data - re-formating data to "date" format

Awsome

Kevin yours worked the quickest. thank you

"Kevin B" wrote:

Assuming that the data came across as text, the following formula will
convert the data to an Excel serial date number, changing A1 to the starting
cell of your value column/row:

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

After copying the formula as far as needed, copy all the cell with a formula
and then do an EDIT/PASTE SPECIAL/VALUES to convert the formulas to their
respective result value.
--
Kevin Backmann


"James" wrote:

I have raw data that I export from a site for work and the date comes over as
Internationa ISO however it has no dashes in it to help format. Example it
looks like this... 20080302 just straight numbers. i need to convert this to
US date format.

Any ideas?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Functions for "current" & "previous" month to calculate data Priss Excel Worksheet Functions 11 April 15th 08 06:24 PM
Excel 2003 - Charts - "Data Range" and Date/Time data on X-Axis erik Charts and Charting in Excel 1 August 20th 07 02:50 PM
Default display format for "currency" data type Cynthia Excel Discussion (Misc queries) 1 June 29th 07 01:12 PM
Import HTML data into Excel - data in "1-1" format translates to J PaulT Excel Discussion (Misc queries) 2 December 6th 06 06:28 AM
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" Dennis Excel Discussion (Misc queries) 0 July 17th 06 02:38 PM


All times are GMT +1. The time now is 05:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"