dont want #DIV/0!

lprenrut

Board Regular
Joined
Nov 21, 2004
Messages
122
Hi all

Probably easy if you know but I dont, can someone help,here goes

In cells B4:B10 I have numbers 1,2,3 etc...

In cell B11 I have an average of these cells B4:B10

Problem I'm having is if all cells from B4:B10 are blank B11 returns #DIV/0!

I just want B11 to remain empty when cells B4:B10 are blank


Thanks

lprenrut
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Excel 2007+: =IFERROR(AVERAGE(B4:B10),"")
Older Versions of Excel =IF(ISERROR(AVERAGE(B4:B10)),"",AVERAGE(B4:B10))
 
Upvote 0
That works brilliantly thanks to everyone, but just 1 more favour in cell B13 I have a formula =Round(B12/B11,0)

Also this returns #value! when the cells B4:B10 are blank as with the #DIV/0! I dont want the #value!

Thanks
 
Upvote 0
Thanks for the formula=IFERROR(ROUND(B12/B11,0),"") for removing the #value! in cell B13, but what I forgot to mention is that I was working with excel 2007 and it doesn't seem to recognise this formula in excel 2003, is there another formula that will work in excel 2003 that will result in the same outcome

Thanks

lprenrut
 
Upvote 0
I forgot to mention in excel 2003 I get xlfn before =IFERROR(ROUND(B12/B11,0),"") in the formula bar

Thanks
lprenrut
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

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