Help with Formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Goodevening,

How do I get a number to show up in a cell if I wrote this formula,

=if(h2="BUY",e2*1.02,"")

RIght now I wrote this and nothing appears for any corresponding "buy". I
appreciate the help.

Noel
 
Thank you, I will try. Does it matter that h2 is a long =if(and() statement.
I am doing this for a stock stop point. So once I get this number in h2 i
need to figure if the high of the following(x) periods has been = to or
higher than that number. ANy ideas on that. Thank you for your time.

noel
 
The length of the formula won't matter as long as it evaluates to BUY (or
something else).

If you just try:

=h2="buy"

Do you get true or false?

if you get false, then H2 doesn't equal BUY. Noel guessed that you had
leading/trailing spaces surrounding your "buy" text.
 

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