ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   date/time question (https://www.excelbanter.com/excel-programming/331109-date-time-question.html)

MK

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

Mangesh Yadav[_3_]

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




NickHK

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




MK

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





Mangesh Yadav[_4_]

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







[email protected]

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.





All times are GMT +1. The time now is 01:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com