Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin
 
Posts: n/a
Default Splitting Column Data into 2 fields

Hi All,

I have a column that recieves date and time data in the following format:
01/03/2006 16:00:00 (mm/dd/yyyy hh:mm:ss)

It is causing me some troubles, namely in calculating elapsed time between 2
data points because Excel doesn't seem to like the format the data comes in
and recognizes it as text instead of a date.

Is there a way to split this into 2 columns, one for date the other for
time, (Sort of a reverse concatate?) and is this my best course of action or
is there a more efficient solution to this?

Thanks kindly!
Kevin
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Splitting Column Data into 2 fields

You could convert the text to a value using the text function as
follows:

=TEXT(A2,"mm/dd/yyyy hh:mm:ss")

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin
 
Posts: n/a
Default Splitting Column Data into 2 fields

Thanks Edessary, is it possible to make this conditional, I assume through an
IF statement, so that if the reference cell is not Null, the Text is
converted to a value? I ask because the Imported Date/Time stamp comming
over as a Text field is of variable length, and I'd like to make the
converted column expand or collapse with the number of reference cells
imported into the column.

I'm not sure that made sense or not...

Thanks!
Kevin

" wrote:

You could convert the text to a value using the text function as
follows:

=TEXT(A2,"mm/dd/yyyy hh:mm:ss")


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Splitting Column Data into 2 fields

Hi!

Try this:

Try it on a single cell first to see if it will work!

Select one of the faux date cells
Goto DataText to ColumnsNextNext
Select Date and MDY format from the drop down
Finish

Biff

"Kevin" wrote in message
...
Hi All,

I have a column that recieves date and time data in the following format:
01/03/2006 16:00:00 (mm/dd/yyyy hh:mm:ss)

It is causing me some troubles, namely in calculating elapsed time between
2
data points because Excel doesn't seem to like the format the data comes
in
and recognizes it as text instead of a date.

Is there a way to split this into 2 columns, one for date the other for
time, (Sort of a reverse concatate?) and is this my best course of action
or
is there a more efficient solution to this?

Thanks kindly!
Kevin



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Splitting Column Data into 2 fields

If I understand you correctly try the following:

=IF(A2="","",TEXT(A2,"mm/dd/yyyy hh:mm:ss"))

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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM


All times are GMT +1. The time now is 03:15 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"