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:

Also get rid of #DIV/0! in the cell when I use the sum formula:
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




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:

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.


or even shorter


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