How to remove #DIV/0!

San Antonio Heat

Active Member
Joined
Oct 10, 2003
Messages
333
Office Version
  1. 2019
Platform
  1. Windows
I have tried so many combinations of IFERROR, ISERROR and not having any luck. Please help.


In cell C11 contains the following formula..
=(C6/C8)/(8.91*C21)

Problem is I have a 0 in the cell C21.

Thanks kindly!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Why not just use an IF statement, maybe this:

Code:
=If(c21=0,"",((C6/c8)/(8.91*C21)))

That will give you a blank, "", if c21 is zero, otherwise it will run your code. Feel free to replace the "" with whatever you want there.
 
Upvote 0
Is it possible to do the same with the statement IF already is in the formula?

=IF(C24<0,0,C24/(2*C21*C8))

Again C21 being 0 is causing the #DIV/0! error

Would If and Then be the best formula?
 
Upvote 0
Just add in the same IF formula to the one you have I would do this:

Code:
=IF(C24<0,0,IF(C21=0,"",((C24/(2*C21*C8)))))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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