GETTING RID OF #DIV/0! IN AN AVERAGEIF Fx

BRIITO

New Member
Joined
Oct 3, 2008
Messages
19
I am having problems gatting rid of the #div/o! In an excel sheet. It has all this formulas so that my employees don't have to do them manually and insted just enter info in a data_base. But i don´t know what to do when i get #div/o! In the following formula:

=averageifs(sheet1!$m$5:$m$2977;sheet1!$a$5:$a$2977;sheet2!c$40;sheet1!$p$5:$p$2977;sheet2!$b41).

I get the #div/o! When there is no data on sheet1 matching the value on sheet2!$b41, and they look awful...specially when i print and post the reports...

Please help!!!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try:

=iferror(averageifs(sheet1!$m$5:$m$2977;sheet1!$a$5:$a$2977;sheet2!c$40;sheet1!$p$5:$p$2977;sheet2!$b41),0)

Change the 0 to whatever you want to display.

Hope that helps.
 
Upvote 0
=IF(ISERROR(AVERAGEIFS(Sheet1!$A$5:$A$2977,Sheet1!$A$5:$A$2977,Sheet2!C$40,Sheet1!$A$5:$A$2977,Sheet2!$B41)),"",AVERAGEIFS(Sheet1!$A$5:$A$2977,Sheet1!$A$5:$A$2977,Sheet2!C$40,Sheet1!$A$5:$A$2977,Sheet2!$B41))

Shows a blank if DIV/0 shows
 
Upvote 0
Great!!!!!!
Thanks to you both (schielrn & tony0682) both solutions worked!!
Now i'll have a relaxed weekend!!!
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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