'If' problem

  • Thread starter Thread starter Kanga 85
  • Start date Start date
K

Kanga 85

I have an 'if' problem which I don't understand and cannot solve.

Cell H2 contains a formula delivering either a value (>0) or "".
The formula in I2 reads '=IF(VALUE(H2)>0,"sold","-")'. This works
correctly if value(H2)>0, but otherwise returns '#VALUE!'.

Thanks in advance for any help to what must be a simple problem.
 
My interpretation of the OP is that H2 will contain either a formula blank
or a number.
=IF(OR(H2="",H2+0<=0),"-","sold")

If H2 ="" then H2+0 will cause a #VALUE! error.
 
Thanks to you all for your useful replies. The problem is now solved, and
you have provided me with further insight. The formula in H2 is:
=IF(F2>0,D2*G2,"")
 
Back
Top