# Help with formula... #DIV/o!

#### Mykro

##### Active Member
I could use some help with following formula... My attempts to hide the divide by zero error #DIV/o! have failed...

=IF(\$B\$4<=0,"",AVERAGE(L6:L90))

Thanks...

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
=iferror(AVERAGE(L6:L90), "")

What is the relationship between B4 and L6:L90? If there isn't a relationship, your test that B4 is less than or equal to zero is irrelevant.

What is the relationship between B4 and L6:L90? If there isn't a relationship, your test that B4 is less than or equal to zero is irrelevant.

It is irrelevant.. Thats now omitted...

=iferror(AVERAGE(L6:L90), "")

I'm using office 2003 for this spread sheet.. IFERROR needs to be ISERROR...

Thanks...

=if(iserror(AVERAGE(L6:L90)), "", AVERAGE(L6:L90))

Try:

=IF(SUM(L6:L90),AVERAGE(L6:L90),"")

Try:

=IF(SUM(L6:L90),AVERAGE(L6:L90),"")

Andrew,

Works like a charm... Thank You..!

Replies
5
Views
79
Replies
5
Views
211
Replies
1
Views
88
Replies
3
Views
332
Replies
5
Views
381

1,207,199
Messages
6,077,021
Members
446,251
Latest member
dpf220

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

### Which adblocker are you using?

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

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