ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional formulas (https://www.excelbanter.com/excel-discussion-misc-queries/160807-conditional-formulas.html)

HARSH BAHAL

Conditional formulas
 
=((J8/I8%)*(J8-I8)*2+(L8/K8%)*(L8-K8)+(N8/M8%)*(N8-M8))*15/1000
The above is a formula which I have inserted in a cell. My problem is that
if any one of the cell has a value zero then the returned value is#DIV.
Particularly I want to set the formula for the cell N8 (which is again linked
to three different cell), i.e. if N8=0 than also it should return a value.
Kindly help

Bob Phillips

Conditional formulas
 
This only fails for me if I8, K8 or M8 is zero, and you can test this

=IF(OR(I8=0,I8="",K8=0,K8="",M8=0,M8=""),"",((J8/I8%)*(J8-I8)*2+(L8/K8%)*(L8-K8)+(N8/M8%)*(N8-M8))*15/1000)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"HARSH BAHAL" wrote in message
...
=((J8/I8%)*(J8-I8)*2+(L8/K8%)*(L8-K8)+(N8/M8%)*(N8-M8))*15/1000
The above is a formula which I have inserted in a cell. My problem is that
if any one of the cell has a value zero then the returned value is#DIV.
Particularly I want to set the formula for the cell N8 (which is again
linked
to three different cell), i.e. if N8=0 than also it should return a value.
Kindly help





All times are GMT +1. The time now is 02:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com