View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
SimonCC SimonCC is offline
external usenet poster
 
Posts: 79
Default Can you just pull Just the Time Value out of a Cell?

Since each day is a whole number, you can try:
=MOD(datetime,1)
That will leave you with just the time portion. All the result might show
1/0/1900 along with the corresponding time. All you have to do is format
those resulting cells to a time format.

-Simon

"nbaj2k" wrote:


I was wondering if this was possible, it's been haunting me for awhile.

I'm exporting data into a spreadsheet. There is a "created" column in
which the cells include dates and times, and example of the contents of
a cell is this "7/14/2006 1:49:03 PM"

If you go to cell formatting, you can change it all you want, but the
contents of the actual cell stay the same, what you see just changes.
An example is if I pick 'h:mm' it will show the hours and minutes if
you just look at the cell, but if you click on it to see its contents
it still says 7/14/2006 1:49:03 PM.

I need this for sorting purposes, so that I can put everything from a
certain time together. As of now, since the date is still part of the
cell, it will group them by day.

Any help would be great, thanks!

~J


--
nbaj2k
------------------------------------------------------------------------
nbaj2k's Profile: http://www.excelforum.com/member.php...o&userid=36480
View this thread: http://www.excelforum.com/showthread...hreadid=563764