averageifs #DIV/0!

Vally 88

New Member
Joined
Nov 20, 2017
Messages
19
Hello Guys,

I'm working on a AVERAGEIFS formula, please find below:

=AVERAGEIFS('Arabic Pacing'!$J$32:$J$61,'Arabic Pacing'!$E$32:$E$61,Trends!$A4,'Arabic Pacing'!$J$32:$J$61,">0")
Practically I want to have an average when same day of the week and higher than 0.

Looking inside the formula, where first bit is the metric I want to average and it's formulas (NO ACTUAL NUMBERS), first criteria range is again formulas, 1st criteria is a string, 2nd criteria range is again formulas (it's the same range of the average). I have tried to run the 2 criteria separately and they work but when combining the 2 the results is #DIV/0!. I think that the problem is that the actual criteria aren't numbers but formulas and this is stopping it from working. Could be this the reason? If so there is any way to work around this?

Again thank you very much for all your help!

Valeria
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Looking inside the formula, where first bit is the metric I want to average and it's formulas (NO ACTUAL NUMBERS)
Just to clarify, if your formulas are returning valid numbers, you can average those.
It doesn't matter whether those numbers are hard-coded or returned by formulas.
 
Upvote 0
Hello,

My formulas are returning valid numbers but the actual average is returning #DIV/0!. I find strange I can't average numbers returned by formulas because I can if a use just one condition.


 
Upvote 0
To be clear: the below are working:
=AVERAGEIFS('Arabic Pacing'!$J$32:$J$61,'Arabic Pacing'!$E$32:$E$61,Trends!$A4)
=AVERAGEIFS('Arabic Pacing'!$J$32:$J$61,'Arabic Pacing'!$J$32:$J$61,">0")

but the integrated isn't working:
=AVERAGEIFS('Arabic Pacing'!$J$32:$J$61,'Arabic Pacing'!$E$32:$E$61,Trends!$A4,'Arabic Pacing'!$J$32:$J$61,">0")
 
Upvote 0
MI find strange I can't average numbers returned by formulas because I can if a use just one condition.
As I mentioned, you can!

What the #DIV/0 is telling you that there are no values to average!
Are you sure that your values are being returned as numbers and not as text?
One easy way to check is with the ISNUMBER formula.
Pick one of your cells returning a number (let's say it is C1), and enter this formula anywhere on your sheet.
=ISNUMBER(C1)
If it returns FALSE, your formulas are returning Text and not Numbers (Text that looks like Numbers is still Text!).
You need to modify your formulas so that they return numeric values.

EDIT:
but the integrated isn't working:
=AVERAGEIFS('Arabic Pacing'!$J$32:$J$61,'Arabic Pacing'!$E$32:$E$61,Trends!$A4,'Arabic Pacing'!$J$32:$J$61,">0")
It could be that no records match your criteria, so it is not returning any values to average. That also results in a #DIV/0 error.
 
Last edited:
Upvote 0
Hi,

they are numbers and valid numbers, even =isnumber returns me TRUE. So this is not the problem, what else can be?
 
Upvote 0
If those formulas work seperately it doesnt mean the criteria is met when looked at together.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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