Get rid of #DIV/0! when using the Average formula......

I want to get rid of the #DIV/0! in the cell when I use the Average formula:

In the cell I have this formula:
=AVERAGE(B73:E73:G73:J73:L73:O73)

Also get rid of #DIV/0! in the cell when I use the sum formula:
=SUM(P73:P81)
SOUTHAMERICA70Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib Husain, SyedEngineerCommented:
If you have 2010 then you can use

=IFERROR(AVERAGE(B73:E73:G73:J73:L73:O73),"")

and

=IFERROR(SUM(P73:P81),"")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

the DIV error will only come up if there is no numeric value at all in the range. Therefore, you could count the numeric values, and if they are greater than zero, perform the average.

=IF(COUNT(B73,E73,G73,J73,L73,O73)>0,AVERAGE(B73,E73,G73,J73,L73,O73),"")

or even shorter

=IF(COUNT(B73,E73,G73,J73,L73,O73),AVERAGE(B73,E73,G73,J73,L73,O73),"")

By the way, if you use more than one range in Average, you should separate each range with a comma, not the colon.

Assuming that the Sum() you mentioned will sum all the calculated averages above, this will not work without any alteration, since there are no DIV errors in the average results.

cheers, teylyn
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.