Thanks:  0
Likes:  0

# Thread: average formula without getting div/0 error...????

1. 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..??

2. 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.

3. Try this:

=SUM(range)/COUNTIF(range,">0")

4. 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))

A personal note: I take it IML will notice this.

5. =SUM(H72,H149,H222,H294,H330)/MAX(1,COUNT(H72,H149,H222,H294,H330)-COUNTIF(H72,H149,H222,H294,H330,0))

is this right?????

6. {=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.

7. ok i am confused now...

i am not to familiar with big formulas as you can tell...

8. S.O.S?

help??

= )

9. What's this...

H72,H149,H222,H294,H330

10. 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 ]

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•