Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How to average hh:mm:ss when hh is 00

I' trying to get the average of elapsed times like 00:01:22, 00:08:23,
00:10:59. The AVERAGE function returns div/0 errors. Is there a way to do
this and keep the hh:mm:ss format?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How to average hh:mm:ss when hh is 00

This suggests the data is not true time values because =AVERAGE(A1:A5) works
when the range holds time values.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"the mechanic" wrote in message
...
I' trying to get the average of elapsed times like 00:01:22, 00:08:23,
00:10:59. The AVERAGE function returns div/0 errors. Is there a way to do
this and keep the hh:mm:ss format?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How to average hh:mm:ss when hh is 00

It only works if I allow Excel to show the time in the formula bar as
12:01:22 AM, 12:08:23 AM, 12:10:59 AM. These times are elpased time values,
not time of day. As the developer of the timesheet, I might understand, but
my users may be baffled as to why a column heading of "MAXIMUM TIME" has "AM"
and "PM" in the formula.

"Bernard Liengme" wrote:

This suggests the data is not true time values because =AVERAGE(A1:A5) works
when the range holds time values.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"the mechanic" wrote in message
...
I' trying to get the average of elapsed times like 00:01:22, 00:08:23,
00:10:59. The AVERAGE function returns div/0 errors. Is there a way to do
this and keep the hh:mm:ss format?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default How to average hh:mm:ss when hh is 00

Assuming your textual representations of time are in column D, starting with
row 1.

Formula is:
=TEXT(SUMPRODUCT(--(D1:D100))/COUNTA(D1:D100),"[hh]:mm:ss")

--
John C


"the mechanic" wrote:

It only works if I allow Excel to show the time in the formula bar as
12:01:22 AM, 12:08:23 AM, 12:10:59 AM. These times are elpased time values,
not time of day. As the developer of the timesheet, I might understand, but
my users may be baffled as to why a column heading of "MAXIMUM TIME" has "AM"
and "PM" in the formula.

"Bernard Liengme" wrote:

This suggests the data is not true time values because =AVERAGE(A1:A5) works
when the range holds time values.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"the mechanic" wrote in message
...
I' trying to get the average of elapsed times like 00:01:22, 00:08:23,
00:10:59. The AVERAGE function returns div/0 errors. Is there a way to do
this and keep the hh:mm:ss format?




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How to average hh:mm:ss when hh is 00

Nice work John,
thanks

"John C" wrote:

Assuming your textual representations of time are in column D, starting with
row 1.

Formula is:
=TEXT(SUMPRODUCT(--(D1:D100))/COUNTA(D1:D100),"[hh]:mm:ss")

--
John C


"the mechanic" wrote:

It only works if I allow Excel to show the time in the formula bar as
12:01:22 AM, 12:08:23 AM, 12:10:59 AM. These times are elpased time values,
not time of day. As the developer of the timesheet, I might understand, but
my users may be baffled as to why a column heading of "MAXIMUM TIME" has "AM"
and "PM" in the formula.

"Bernard Liengme" wrote:

This suggests the data is not true time values because =AVERAGE(A1:A5) works
when the range holds time values.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"the mechanic" wrote in message
...
I' trying to get the average of elapsed times like 00:01:22, 00:08:23,
00:10:59. The AVERAGE function returns div/0 errors. Is there a way to do
this and keep the hh:mm:ss format?



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
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


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