Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default 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
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default 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.

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
Formula If statement. C Kreig Excel Worksheet Functions 3 July 10th 09 02:39 AM
if statement in formula Derrick Excel Discussion (Misc queries) 7 July 8th 09 06:16 PM
use value not formula in IF statement Soz Excel Worksheet Functions 2 May 10th 07 07:54 PM
Can I use IF statement with a formula? Michael NYC Excel Worksheet Functions 1 October 1st 05 04:45 AM
if statement formula Marlis Excel Discussion (Misc queries) 2 August 17th 05 04:57 AM


All times are GMT +1. The time now is 12:31 PM.

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

About Us

"It's about Microsoft Excel"