Hi I'm trying to write a formula with more than 1 condition and I would like to use the OR logical operator (Example below). How would I translate it in excel?
IF cell1 <> 0 OR cell2 <> 0 then cell2/cell1 else 0
Technically, if cell 2 is zero, the answer would be zero. In this case, you really only need to make sure that the denominator is <> zero for a valid result.
=IF(B1<>0,C1/B1,0)
Your test has a chance to fail. For example if cell 1 is zero, the calculation Cell 2 / Cell 1 would yeild #DIV/0!
You're right indeed, but I remember (because I've studied it during an excel course) that you can nest IF function and you can use the OR,AND operators in the function. I just don't remeber the exact syntax.....can you help?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.