#div/0 in average formula

dbagnell

New Member
Joined
Dec 16, 2014
Messages
7
Hello fellow Excel users!

I have read many answers to the question I have, but I still can't figure it out. I don't think I'm quite good enough to read an answer and apply it to my own formula.

I have an average formula that reads: =AVERAGE(T6,T31,T56,T81,T106). I want it NOT to display a #div/0 if there is no average to return. Answers I've found seem to apply to average listed as T6:T8 for example, but not the way I've listed it. Can you help? I'd be so grateful. :)

Thanks!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Welcome to the Forum!

You could try:

=IFERROR(AVERAGE(T6,T31,T56,T81,T106),0)
 
Upvote 0
why you wanna display "0" when there is at least one error in your source?

my point is...
1, 2, 3, -2, -4 gives you an average of 0
1, 2, 3, -2, #div/0 also give you an average of 0 (if you wrap your average with IFERROR...)

are you sure you want that?
 
Upvote 0
Hi FormR, you are right the #div/0 may appear will all the cells are blanks... but not when all are zeros. I was not questioning the solution you provided as that seems to be what the OP requests. I just tried to raise a point for consideration.


@mfexcel - I read it as the #div/0 error occurs when either all the cells are blanks or zeros.
 
Upvote 0

Forum statistics

Threads
1,216,156
Messages
6,129,188
Members
449,492
Latest member
steveg127

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