How to make #DIV/0! Invisible?!

LaurenHancy

Board Regular
Joined
Aug 5, 2010
Messages
179
Hello,

I am using this formular to find the average for a certain products but it comes back with a DIV/0!. I still want the formular to be in the back ground as when i rerun the report it may come back with a figure.

This is the current formular i am using:

{=AVERAGE(IF($J$20:$J$201=B5,$AI$20:$AJ$201))}

Hope you can help.

Many thanks

Lauren
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try this:

{=IF(ISERROR(AVERAGE(IF($J$20:$J$201=B5,$AI$20:$AJ$201)),"",AVERAGE(IF($J$20:$J$201=B5,$AI$20:$AJ$201))}

Should do the trick but never used with the curly braces before...
 
Upvote 0
Thanks for the fast reply. Unfortunately it doesn't work. It doesnt even bring a error message back, just:

{=IF(ISERROR(AVERAGE(IF($J$20:$J$201=B5,$AI$20:$AJ$201)),"",AVERAGE(IF($J$20:$J$201=B5,$AI$20:$AJ$201))}

Any other ideas?

Thanks

L :)
 
Upvote 0
Dont type in the curly brace {}, I'm not sure why you need to use them anyway but if you do, enter the formula then hold ctrl, shift and hit enter, excel will add the braces for you!

I think it is something to do with the way in which excel handles the formula, something about iterations :confused:

I think you formula will work without, give it a try....
 
Upvote 0
You're missing a couple ))

try

=IF(ISERROR(AVERAGE(IF($J$20:$J$201=B5,$AI$20:$AJ$201))),"",AVERAGE(IF($J$20:$J$201=B5,$AI$20:$AJ$201)))

enterd with CTRL + SHIFT + ENTER
 
Upvote 0

Forum statistics

Threads
1,214,661
Messages
6,120,796
Members
448,994
Latest member
rohitsomani

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