How to get ride of when using a nested AVERAGEIF formula

TMCINNIS

New Member
Joined
Aug 26, 2015
Messages
29
I need some help.

I have a formula below that is giving the average of all page view values on monthly tables on another worksheet. Where there is data, this formula works fine. However, where there is no data for that month, I am getting the #DIV/0! error

=AVERAGEIFS('REPORT-PAGE CATs AE PSP GB'!CN$3:CN$1048576,'REPORT-PAGE CATs AE PSP GB'!$E$3:$E$1048576,"*http://smith.jones.com/abc/portal/efg/residential*")

I tried using IFERROR to correct this, but I am getting a formula error message.

=IFERROR(AVERAGEIF('REPORT-PAGE CATs AE PSP GB'!CN$3:CN$1048576,'REPORT-PAGE CATs AE PSP GB'!$E$3:$E$1048576,"*http://smith.jones.com/abc/portal/efg/residential*")

Any help is greatly appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You have to specify what should happen when it's an error..
I assume you want it to return blank ""

Try
=IFERROR(AVERAGEIF('REPORT-PAGE CATs AE PSP GB'!CN$3:CN$1048576,'REPORT-PAGE CATs AE PSP GB'!$E$3:$E$1048576,"*http://smith.jones.com/abc/portal/efg/residential*"),"")
 
Upvote 0
You have to specify what should happen when it's an error..
I assume you want it to return blank ""

Try
=IFERROR(AVERAGEIF('REPORT-PAGE CATs AE PSP GB'!CN$3:CN$1048576,'REPORT-PAGE CATs AE PSP GB'!$E$3:$E$1048576,"*http://smith.jones.com/abc/portal/efg/residential*"),"")



Thank you very much. I was certain I had included that in all my attempts, but sure enough, I missed it. Your correction worked.

Thank you again.
 
Upvote 0

Forum statistics

Threads
1,216,014
Messages
6,128,287
Members
449,436
Latest member
blaineSpartan

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