#1   Report Post  
Posted to microsoft.public.excel.misc
sot sot is offline
external usenet poster
 
Posts: 19
Default Date & Time Question

I have a list with a field in that the date and the time and these cells are
in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to use
the time part of the data on its own and sort it into time order. Is this
possible?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Date & Time Question

Insert a column to the right of your Data/Time column and enter the following
formula adjusting the cell address to your worksheet layout:

=TIME(HOUR(A1),MINUTE(A1),SECOND(A1))

Then copy down the column as far as necessary.

--
Kevin Backmann


"sot" wrote:

I have a list with a field in that the date and the time and these cells are
in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to use
the time part of the data on its own and sort it into time order. Is this
possible?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Date & Time Question

Using a helper column:

B1: =MOD(A1,1)

Copy down as far as necessary. Sort.


In article ,
sot wrote:

I have a list with a field in that the date and the time and these cells are
in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to use
the time part of the data on its own and sort it into time order. Is this
possible?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Date & Time Question

Hi,

1 way.

Reformat your cell with the custom format of hh:mm
sort your cell in the desired way
Reformat back to dd/mm/yyyy hh:mm

Mike

"sot" wrote:

I have a list with a field in that the date and the time and these cells are
in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to use
the time part of the data on its own and sort it into time order. Is this
possible?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Date & Time Question

i have assumed your data is in column A and your first cell is A1

Select Comn B and format it HH:MM

in cell b1 = A1

you can now either copy and paste the values to adifferent column to
sort or sort where they are
use the sort button on the tool bar

hth

kevin


On 30 Oct, 12:41, sot wrote:
I have a list with a field in that the date and the time and these cells are
in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to use
the time part of the data on its own and sort it into time order. Is this
possible?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Date & Time Question

Do you think so? Have you tried it? [If so, on which version of Excel?]

Hints: Does sort base its results on the content of the cell, or on what is
displayed? Does the display format affect the content?
--
David Biddulph

"Mike H" wrote in message
...
Hi,

1 way.

Reformat your cell with the custom format of hh:mm
sort your cell in the desired way
Reformat back to dd/mm/yyyy hh:mm

Mike

"sot" wrote:

I have a list with a field in that the date and the time and these cells
are
in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to
use
the time part of the data on its own and sort it into time order. Is
this
possible?




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Date & Time Question

Have you tried that, Kevin? Did it work? If so, which version of Excel?

Hints: Does sort base its results on the cell contents or on what is
displayed? Doe display format affect the contents?
--
David Biddulph

"kevcar40" wrote in message
ps.com...
i have assumed your data is in column A and your first cell is A1

Select Comn B and format it HH:MM

in cell b1 = A1

you can now either copy and paste the values to adifferent column to
sort or sort where they are
use the sort button on the tool bar

hth

kevin


On 30 Oct, 12:41, sot wrote:
I have a list with a field in that the date and the time and these cells
are
in the date and time format. (dd/mm/yyyy hh:mm). I need to be able to
use
the time part of the data on its own and sort it into time order. Is
this
possible?





  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 863
Default Date & Time Question

In case Kevin doesn't return, I'll answer the questions for him. No, it
doesn't work, because sorting operates on the entire cell contents, which are
still the date+time, regardless of the format you apply.

To sort by the time portion only, you must split it out into a separate
"helper" column using one of the methods already proposed.


On Tue, 30 Oct 2007 13:29:57 -0000, "David Biddulph" <groups [at]
biddulph.org.uk wrote:

Have you tried that, Kevin? Did it work? If so, which version of Excel?

Hints: Does sort base its results on the cell contents or on what is
displayed? Doe display format affect the contents?

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
Time and Date Question wx4usa Excel Discussion (Misc queries) 6 October 8th 07 03:34 AM
Date time format question please ferde Excel Discussion (Misc queries) 7 August 20th 07 06:00 PM
Another question about time and date ECLynn Excel Discussion (Misc queries) 2 August 30th 06 10:13 PM
question about entering date and time changetires Excel Discussion (Misc queries) 3 July 18th 06 02:38 PM
Date/Time Question bladelock Excel Worksheet Functions 2 November 10th 05 02:42 AM


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