Help Convert

R

rpastor

Can someone help me rewrite this function using "IF" and "AND
statements?

=IF(I12>I11,"SELL",IF(I12>I13,"SELL",IF(I12<I11,"BUY","HOLD")))

I cannot get it to work???

Thanks
Rober
 
M

Myrna Larson

I think you want OR, not AND.

You have two conditions which indicate SELL, and you want to SELL if either
one OR the other is true.

=IF(OR(I12>I11,I12>I13),"SELL",IF(I12<I11,"BUY","HOLD"))
 

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