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
 
The easiest way to prove it to yourself is to apply an autofilter and filter by the conditions in the formula. How many results do you get?
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
If those formulas work seperately it doesnt mean the criteria is met when looked at together.
This statement that Steve made is key. When you put them together, they form an AND situation, not an OR statement.
So, you could have records that meet each criteria when taken separately, but don't meet BOTH criteria at the same time.

For example:
Code:
ANIMAL      COLOR
Fish         Blue
Dog          White
Lizard       Green
Fish         Red
If Criteria 1 was ANIMAL is FISH, you have two matching records.
If Criteria 2 was COLOR is GREEN, you have one matching record.
If your criteria was ANIMAL is FISH AND COLOR is GREEN, you have no records matching both criteria.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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