#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default average of times

i have times listed as "h:mm" and i would like to show the average. note that
the times are calculated, not entered manually.
formula in time row: =TEXT(C2-B2, "h:mm")

what formula would i put in the cell where i want the average of all times?
thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default average of times

M,

If these formulas were in D2:D4, you could use =AVERAGE(TIMEVALUE(D2:D4)). This is an array
formula, and must be commited to the cell with Ctrl-Shift-Enter, not just Enter.

It might be simpler to just keep your times in true date-time format rather than converting
to text. In your original formula, use =C2-B2 and format for time as desired (Format -
Cells - Number tab). Time calculations are straightfoward done that way. Well, mostly.
You have to change the formatting in many cases.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"m greenly" <m wrote in message
...
i have times listed as "h:mm" and i would like to show the average. note that
the times are calculated, not entered manually.
formula in time row: =TEXT(C2-B2, "h:mm")

what formula would i put in the cell where i want the average of all times?
thanks for your help.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default average of times

thanks earl

i went with the simplified version, no need to make things more complicated
than they are.

another question would be how can i add additional rows with the average
adjusting itself?

"Earl Kiosterud" wrote:

M,

If these formulas were in D2:D4, you could use =AVERAGE(TIMEVALUE(D2:D4)). This is an array
formula, and must be commited to the cell with Ctrl-Shift-Enter, not just Enter.

It might be simpler to just keep your times in true date-time format rather than converting
to text. In your original formula, use =C2-B2 and format for time as desired (Format -
Cells - Number tab). Time calculations are straightfoward done that way. Well, mostly.
You have to change the formatting in many cases.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"m greenly" <m wrote in message
...
i have times listed as "h:mm" and i would like to show the average. note that
the times are calculated, not entered manually.
formula in time row: =TEXT(C2-B2, "h:mm")

what formula would i put in the cell where i want the average of all times?
thanks for your help.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default average of times

M,

If by "simplified" you mean my second solution (=C2-B2), the average formula can go to the
bottome of the worksheet without untoward results. It ignores empty cells.
=AVERAGE(D2:D65536)

--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"m greenly" wrote in message
...
thanks earl

i went with the simplified version, no need to make things more complicated
than they are.

another question would be how can i add additional rows with the average
adjusting itself?

"Earl Kiosterud" wrote:

M,

If these formulas were in D2:D4, you could use =AVERAGE(TIMEVALUE(D2:D4)). This is an
array
formula, and must be commited to the cell with Ctrl-Shift-Enter, not just Enter.

It might be simpler to just keep your times in true date-time format rather than
converting
to text. In your original formula, use =C2-B2 and format for time as desired (Format -
Cells - Number tab). Time calculations are straightfoward done that way. Well, mostly.
You have to change the formatting in many cases.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"m greenly" <m wrote in message
...
i have times listed as "h:mm" and i would like to show the average. note that
the times are calculated, not entered manually.
formula in time row: =TEXT(C2-B2, "h:mm")

what formula would i put in the cell where i want the average of all times?
thanks for your help.






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default average of times

Earl,

yes, i meant the second solution (=C2-B2). Thanks, you're awesome.

"Earl Kiosterud" wrote:

M,

If by "simplified" you mean my second solution (=C2-B2), the average formula can go to the
bottome of the worksheet without untoward results. It ignores empty cells.
=AVERAGE(D2:D65536)

--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"m greenly" wrote in message
...
thanks earl

i went with the simplified version, no need to make things more complicated
than they are.

another question would be how can i add additional rows with the average
adjusting itself?

"Earl Kiosterud" wrote:

M,

If these formulas were in D2:D4, you could use =AVERAGE(TIMEVALUE(D2:D4)). This is an
array
formula, and must be commited to the cell with Ctrl-Shift-Enter, not just Enter.

It might be simpler to just keep your times in true date-time format rather than
converting
to text. In your original formula, use =C2-B2 and format for time as desired (Format -
Cells - Number tab). Time calculations are straightfoward done that way. Well, mostly.
You have to change the formatting in many cases.
--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"m greenly" <m wrote in message
...
i have times listed as "h:mm" and i would like to show the average. note that
the times are calculated, not entered manually.
formula in time row: =TEXT(C2-B2, "h:mm")

what formula would i put in the cell where i want the average of all times?
thanks for your help.






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
Average of times where text may be in range Skiffie Excel Worksheet Functions 3 March 7th 06 12:04 AM
How do I add a list of times to get an average time? Matt75 Excel Discussion (Misc queries) 1 January 11th 06 03:07 PM
Do I have to make my times be numbers to get a true average? Leslie Excel Discussion (Misc queries) 1 December 9th 05 02:48 PM
Formula to average certain times Denise Excel Discussion (Misc queries) 5 July 18th 05 01:02 PM
Formula to Average times...again Denise Excel Discussion (Misc queries) 1 July 15th 05 08:26 PM


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