Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dubbs
 
Posts: n/a
Default Adding to IF statements

For some reason I can't add these two IF statements together

[=IF(AM7="Put"&AN7<$K$2;$K$2-AN7;AN7-$K$2)]
[=IF(AM7="Call"&AN7$K$2;$K$2-AN7;AN7-$K$2)]
  #2   Report Post  
Dubbs
 
Posts: n/a
Default



"Dubbs" wrote:

For some reason I can't add these two IF statements together

[=IF(AM7="Put"&AN7<$K$2;$K$2-AN7;AN7-$K$2)]
[=IF(AM7="Call"&AN7$K$2;$K$2-AN7;AN7-$K$2)]



Also, why does this discussion board change my formula? I cut and pasted
the formula from the cell but when it appears on this dicussion board it
writes out quot for " ". How can I post my formula exactly the way I have it
in my excel fille?
  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=ABS($K$2-$AN$7)*(1-2*(AM7="Call"))



In article ,
"Dubbs" wrote:

For some reason I can't add these two IF statements together

[=IF(AM7="Put"&AN7<$K$2;$K$2-AN7;AN7-$K$2)]
[=IF(AM7="Call"&AN7$K$2;$K$2-AN7;AN7-$K$2)]

  #4   Report Post  
bj
 
Posts: n/a
Default

=if(or(and(AM7="Put",AN7<&$K$2),and(AM7="Call",AN7 $K$2));$K$2-AN7:AN7-$K$2)

"Dubbs" wrote:

For some reason I can't add these two IF statements together

[=IF(AM7="Put"&AN7<$K$2;$K$2-AN7;AN7-$K$2)]
[=IF(AM7="Call"&AN7$K$2;$K$2-AN7;AN7-$K$2)]

  #5   Report Post  
Dubbs
 
Posts: n/a
Default

Sorry it didnt work. It said there was an error with the formula. Two
questions, do I have the wrong version of excel? and why does this discussion
group not show exactly what the formulas are. For example your formula
writes out: AM7="Put"&amp. Why doesnt it just show the formula that I am
going to enter into the cell?

"bj" wrote:

=if(or(and(AM7="Put",AN7<&$K$2),and(AM7="Call",AN7 $K$2));$K$2-AN7:AN7-$K$2)

"Dubbs" wrote:

For some reason I can't add these two IF statements together

[=IF(AM7="Put"&AN7<$K$2;$K$2-AN7;AN7-$K$2)]
[=IF(AM7="Call"&AN7$K$2;$K$2-AN7;AN7-$K$2)]



  #6   Report Post  
Dubbs
 
Posts: n/a
Default

The discussion board distorts the formula and I can't decipher it. When I
hit reply to this message the format of the formula went back to how it
should read. I copied and pasted
=if(or(and(AM7="Put",AN7<&$K$2),and(AM7="Call",AN7 $K$2));$K$2-AN7:AN7-$K$2)
but it said there is a problem with the formula

"Dubbs" wrote:

Sorry it didnt work. It said there was an error with the formula. Two
questions, do I have the wrong version of excel? and why does this discussion
group not show exactly what the formulas are. For example your formula
writes out: AM7="Put"&amp. Why doesnt it just show the formula that I am
going to enter into the cell?

"bj" wrote:

=if(or(and(AM7="Put",AN7<&$K$2),and(AM7="Call",AN7 $K$2));$K$2-AN7:AN7-$K$2)

"Dubbs" wrote:

For some reason I can't add these two IF statements together

[=IF(AM7="Put"&AN7<$K$2;$K$2-AN7;AN7-$K$2)]
[=IF(AM7="Call"&AN7$K$2;$K$2-AN7;AN7-$K$2)]

  #7   Report Post  
David Biddulph
 
Posts: n/a
Default

"Dubbs" wrote in message
...

"Dubbs" wrote:


Sorry it didnt work. It said there was an error with the formula. Two
questions, do I have the wrong version of excel? and why does this

discussion
group not show exactly what the formulas are. For example your formula
writes out: AM7="Put"&amp. Why doesnt it just show the formula that I am
going to enter into the cell?

"bj" wrote:


=if(or(and(AM7="Put",AN7<&$K$2),and(AM7="Call",AN7 $K$2));$K$2-AN7:AN7-$K$2)

"Dubbs" wrote:

For some reason I can't add these two IF statements together

[=IF(AM7="Put"&AN7<$K$2;$K$2-AN7;AN7-$K$2)]
[=IF(AM7="Call"&AN7$K$2;$K$2-AN7;AN7-$K$2)]


The discussion board distorts the formula and I can't decipher it. When I
hit reply to this message the format of the formula went back to how it
should read. I copied and pasted

=if(or(and(AM7="Put",AN7<&$K$2),and(AM7="Call",AN7 $K$2));$K$2-AN7:AN7-$K$2)
but it said there is a problem with the formula


Try:
=IF(OR(AND(AM7="Put",AN7<$K$2),AND(AM7="Call",AN7 $K$2)),$K$2-AN7,AN7-$K$2)
--
David Biddulph


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
Logical ELSE statements Ruth Excel Discussion (Misc queries) 2 June 23rd 05 03:23 PM
help neede with adding times rvnwdr Excel Discussion (Misc queries) 1 June 17th 05 02:15 PM
Excel adding to IF statements together Dubbs Excel Discussion (Misc queries) 3 June 15th 05 06:45 PM
adding color to the results of IF statements Mark Excel Worksheet Functions 2 April 28th 05 07:29 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


All times are GMT +1. The time now is 01:52 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"