average formula without getting div/0 error...????

Escher

New Member
Joined
Apr 4, 2002
Messages
13
i have a column of numbers aht (average handle time) in seconds, and it is listed per
days of the week... for each of my agents, is there a formula to tkae the average and leave out the zero, if someone is absent..

412
300
356
435
0

=#div/0!.. i want to be able to use one formula and get the average no matter if a zero is present or not.. is it possible..??
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Can you provide a bit more detail, including the formula you use to calculate your average? If there are other numbers you use in your formula, please include them also.

Thank you.
 
Upvote 0
On 2002-04-09 11:07, Escher wrote:
i have a column of numbers aht (average handle time) in seconds, and it is listed per
days of the week... for each of my agents, is there a formula to tkae the average and leave out the zero, if someone is absent..

412
300
356
435
0

=#div/0!.. i want to be able to use one formula and get the average no matter if a zero is present or not.. is it possible..??

=SUM(A1:A5)/MAX(1,COUNT(A1:A5)-COUNTIF(A1:A5,0))

Aladin

A personal note: I take it IML will notice this.
 
Upvote 0
=SUM(H72,H149,H222,H294,H330)/MAX(1,COUNT(H72,H149,H222,H294,H330)-COUNTIF(H72,H149,H222,H294,H330,0))

is this right?????
 
Upvote 0
{=AVERAGE(IF(range,range))}

where "range" is a cell range

Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula.
 
Upvote 0
nope... those are my cells, that i want to get the average of... but one has a value of 0 (zero) so the average is wrong...

values 412,300,356,435 and 0....

i would like to find one formula that i would like to use on 30 different agents...
with out going back and editing each forumla!
This message was edited by Escher on 2002-04-09 12:16
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top