ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If statement or another formula help (https://www.excelbanter.com/excel-programming/289754-if-statement-another-formula-help.html)

Scott

If statement or another formula help
 
I would like a formula to say:

if A1 = A2 then "at the money", if a1 a2 then "in the
money", if a1 < a2 then "out of the money".

So far I have used the "if" function and came up with
=if(a1=a2,"at the money","in the money")

The function seems to allow me to make a logical statement
and then return an answer if it's true, and another answer
if it's false. But how to add a third possibility?

Thanks

Brad[_10_]

If statement or another formula help
 
By Nesting another IF:

=if(a1=a2,"at the money",IF(a1a2,"in the money","out of
the money"))

You can nest up to nine times.

-Brad
-----Original Message-----
I would like a formula to say:

if A1 = A2 then "at the money", if a1 a2 then "in the
money", if a1 < a2 then "out of the money".

So far I have used the "if" function and came up with
=if(a1=a2,"at the money","in the money")

The function seems to allow me to make a logical

statement
and then return an answer if it's true, and another

answer
if it's false. But how to add a third possibility?

Thanks
.


Beto[_3_]

If statement or another formula help
 
scott wrote:

I would like a formula to say:

if A1 = A2 then "at the money", if a1 a2 then "in the
money", if a1 < a2 then "out of the money".

So far I have used the "if" function and came up with
=if(a1=a2,"at the money","in the money")

The function seems to allow me to make a logical statement
and then return an answer if it's true, and another answer
if it's false. But how to add a third possibility?


By nesting, you can nest 8 (?) if conditions.

=IF(A1=A2,"at the money",IF(A1A2,"in the money","out of the money"))

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com