Handling multiple if tests

  • Thread starter Thread starter J Spensley
  • Start date Start date
J

J Spensley

I have created the following formula to test two different cells an
select between several values based on that test.
=IF(J3>=40 & K3>=400,"LH",IF(J3>=40 & K3<400,"LL",IF(J3<40
K3>=400,"SH","SS")))

The answer I get is always LH. Could anyone please help. I have playe
with this for hours and just can't figure out what is wrong.

Thanks in advance for any help.
Ja
 
Think you got the AND() syntax incorrect ..

Try instead ..:

=IF(AND(J3>=40,K3>=400),"LH",IF(AND(J3>=40,K3<400),"LL",IF(AND(J3<40,K3>=400
),"SH","SS")))
 
One way

=IF((J3>=40)*(K3>=400),"LH",IF((J3>=40)*(K3<400),"LL",IF((J3<40)*(K3>=400),"SH","SS")))

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)
 

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

Back
Top