#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default date/time

Hi all,

I am sure there is an easy answer to this question, but so far, I have
not been able to find it. I have a cell in this format: 11/18/2007
14:33. I need to separate the time from the date to use in a pivot
table. Is there an easy way to do this? Your help is very much
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default date/time

"hombreazul" wrote in message
...
Hi all,

I am sure there is an easy answer to this question, but so far, I have
not been able to find it. I have a cell in this format: 11/18/2007
14:33. I need to separate the time from the date to use in a pivot
table. Is there an easy way to do this? Your help is very much
appreciated.


One way (for date/time in A1):
=A1-INT(A1)
formatted as hh:mm

In Excel, times/dates are just numbers, with 1 representing 1 day. So time
on its own is the part after the decimal point.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default date/time

Thanks. Worked like a charm.


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
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 02:48 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 12:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 12:04 AM


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