'If' problem

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.
 
T

T. Valko

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.
 
K

Kanga 85

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,"")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top