Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Splitting Date and Time

Hello,

I have data displayed as the following in one cell:

12/31/2007 00:40
01/03/2008 13:30
02/17/2008 22:08

I have tried using the "text-to-columns" function and cannot get the data to
separate correctly.

Any other suggestions? I could really use help with this one.

Thanks a lot!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Splitting Date and Time

hi
understand that date/time is a single number
7/11/2008 10:49 is really kept as 39640.45108 and formated as date/time.
this is why text to column may not be working as expected. remember, with
formating, what you see on the screen may not be what's in the cell.
instead use these formula....
=DATE(YEAR(E3),MONTH(E3),DAY(E3))
=TIME(HOUR(E3),MINUTE(E3),SECOND(E3))
where e3 is where the date/time is. adjust your fit your data.

Regards
FSt1




"Cita" wrote:

Hello,

I have data displayed as the following in one cell:

12/31/2007 00:40
01/03/2008 13:30
02/17/2008 22:08

I have tried using the "text-to-columns" function and cannot get the data to
separate correctly.

Any other suggestions? I could really use help with this one.

Thanks a lot!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Splitting Date and Time

That worked...you're awesome!

Thanks :-)

"FSt1" wrote:

hi
understand that date/time is a single number
7/11/2008 10:49 is really kept as 39640.45108 and formated as date/time.
this is why text to column may not be working as expected. remember, with
formating, what you see on the screen may not be what's in the cell.
instead use these formula....
=DATE(YEAR(E3),MONTH(E3),DAY(E3))
=TIME(HOUR(E3),MINUTE(E3),SECOND(E3))
where e3 is where the date/time is. adjust your fit your data.

Regards
FSt1




"Cita" wrote:

Hello,

I have data displayed as the following in one cell:

12/31/2007 00:40
01/03/2008 13:30
02/17/2008 22:08

I have tried using the "text-to-columns" function and cannot get the data to
separate correctly.

Any other suggestions? I could really use help with this one.

Thanks a lot!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Splitting Date and Time

=INT(A1)

and

=MOD(A1,1)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Cita" wrote in message
...
Hello,

I have data displayed as the following in one cell:

12/31/2007 00:40
01/03/2008 13:30
02/17/2008 22:08

I have tried using the "text-to-columns" function and cannot get the data
to
separate correctly.

Any other suggestions? I could really use help with this one.

Thanks a lot!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default Splitting Date and Time

I had no problem using Text to Columns. I used Fixed Width, putting one
split point at character 10 and another at 13. I didn't import the middle
group.

--
Jim
"Cita" wrote in message
...
| Hello,
|
| I have data displayed as the following in one cell:
|
| 12/31/2007 00:40
| 01/03/2008 13:30
| 02/17/2008 22:08
|
| I have tried using the "text-to-columns" function and cannot get the data
to
| separate correctly.
|
| Any other suggestions? I could really use help with this one.
|
| Thanks a lot!




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
Splitting appointment records in to 15 minute time bands The Inquirer Excel Worksheet Functions 4 October 9th 06 02:38 PM
Splitting appointment records in to 15 minute time bands The Inquirer Excel Discussion (Misc queries) 3 October 9th 06 12:30 PM
need help splitting a name form a date neowok Excel Worksheet Functions 3 January 26th 06 03:32 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Splitting a time formula in two. Big Rick Excel Discussion (Misc queries) 2 September 22nd 05 04:11 PM


All times are GMT +1. The time now is 10:52 AM.

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

About Us

"It's about Microsoft Excel"