#1   Report Post  
Posted to microsoft.public.excel.misc
zmr325
 
Posts: n/a
Default Help with Formula

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Michael M
 
Posts: n/a
Default Help with Formula

Hi
Works fine for me !!
Have you got any data in e2 ??
Regards
Michael

"zmr325" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
duane
 
Posts: n/a
Default Help with Formula

in case your entry i n cell h2 has a space

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

"Michael M" wrote:

Hi
Works fine for me !!
Have you got any data in e2 ??
Regards
Michael

"zmr325" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
zmr325
 
Posts: n/a
Default Help with Formula

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


"duane" wrote:

in case your entry i n cell h2 has a space

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

"Michael M" wrote:

Hi
Works fine for me !!
Have you got any data in e2 ??
Regards
Michael

"zmr325" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Help with Formula

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.



zmr325 wrote:

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

"duane" wrote:

in case your entry i n cell h2 has a space

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

"Michael M" wrote:

Hi
Works fine for me !!
Have you got any data in e2 ??
Regards
Michael

"zmr325" wrote:

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


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF formula? meris Excel Worksheet Functions 1 September 6th 05 07:14 AM
Formula works in some cells, doesn't in other Wowbagger New Users to Excel 13 June 30th 05 03:21 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 12:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"