Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MK MK is offline
external usenet poster
 
Posts: 57
Default date/time question

Hi,
I have a range of dates, representing the times that a file arrives for
processing every day. Does anyone know how I can find the earliest time,
latest time, average time from this range.
Of course, when I select min(...) it gives me the earliest date, not
necessarily the earliest time from the range. I would like to test the data
based purely on the time element, disregarding the date component. I am
using Excel 2002. Thanks.


Regards,


mk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default date/time question

Suppose your data is in columns A, then use the following formula:

=MIN(TIME(HOUR(A1:A4),MINUTE(A1:A4),SECOND(A1:A4)) )

confirm with control shift delete

Use the same for the others, MAX, Average


Mangesh


"mk" wrote in message
...
Hi,
I have a range of dates, representing the times that a file arrives for
processing every day. Does anyone know how I can find the earliest time,
latest time, average time from this range.
Of course, when I select min(...) it gives me the earliest date, not
necessarily the earliest time from the range. I would like to test the

data
based purely on the time element, disregarding the date component. I am
using Excel 2002. Thanks.


Regards,


mk



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default date/time question

mk,
Check the Excel help for:
TIMEVALUE
and read the link to "how Microsoft Excel stores dates and times".

NickHK

"mk" wrote in message
...
Hi,
I have a range of dates, representing the times that a file arrives for
processing every day. Does anyone know how I can find the earliest time,
latest time, average time from this range.
Of course, when I select min(...) it gives me the earliest date, not
necessarily the earliest time from the range. I would like to test the

data
based purely on the time element, disregarding the date component. I am
using Excel 2002. Thanks.


Regards,


mk



  #4   Report Post  
Posted to microsoft.public.excel.programming
MK MK is offline
external usenet poster
 
Posts: 57
Default date/time question

Thanks Mangesh, that worked a treat.

"Mangesh Yadav" wrote:

Suppose your data is in columns A, then use the following formula:

=MIN(TIME(HOUR(A1:A4),MINUTE(A1:A4),SECOND(A1:A4)) )

confirm with control shift delete

Use the same for the others, MAX, Average


Mangesh


"mk" wrote in message
...
Hi,
I have a range of dates, representing the times that a file arrives for
processing every day. Does anyone know how I can find the earliest time,
latest time, average time from this range.
Of course, when I select min(...) it gives me the earliest date, not
necessarily the earliest time from the range. I would like to test the

data
based purely on the time element, disregarding the date component. I am
using Excel 2002. Thanks.


Regards,


mk




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default date/time question

Thanks.

Mangesh



"mk" wrote in message
...
Thanks Mangesh, that worked a treat.

"Mangesh Yadav" wrote:

Suppose your data is in columns A, then use the following formula:

=MIN(TIME(HOUR(A1:A4),MINUTE(A1:A4),SECOND(A1:A4)) )

confirm with control shift delete

Use the same for the others, MAX, Average


Mangesh


"mk" wrote in message
...
Hi,
I have a range of dates, representing the times that a file arrives

for
processing every day. Does anyone know how I can find the earliest

time,
latest time, average time from this range.
Of course, when I select min(...) it gives me the earliest date, not
necessarily the earliest time from the range. I would like to test

the
data
based purely on the time element, disregarding the date component. I

am
using Excel 2002. Thanks.


Regards,


mk








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

To extract the time element you could use the =Mod(A1,1) function
therefore
=min(mod(DateTameRange,1)) 'array entered ctrl+shift+enter


HTH RES



I have a range of dates, representing the times that a file arrives for
processing every day. Does anyone know how I can find the earliest

time,
latest time, average time from this range.
Of course, when I select min(...) it gives me the earliest date, not
necessarily the earliest time from the range. I would like to test the

data
based purely on the time element, disregarding the date component. I am
using Excel 2002.



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
Date & Time Question sot Excel Discussion (Misc queries) 7 October 30th 07 06:43 PM
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
Date/Time Question bladelock Excel Worksheet Functions 2 November 10th 05 02:42 AM


All times are GMT +1. The time now is 08:57 PM.

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"