Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default if or statements to get three possible outcomes

I want to use an IF/OR statement to get 3 possible outcomes for a cell value
(eg if cell a=x or y, then m, if cell a=y then n, else p

However, I can only work it for 2 different outcomes. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default if or statements to get three possible outcomes

=IF(A1="x","m",IF(A1="y","n","p))


"Dorothy A" wrote:

I want to use an IF/OR statement to get 3 possible outcomes for a cell value
(eg if cell a=x or y, then m, if cell a=y then n, else p

However, I can only work it for 2 different outcomes. Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 594
Default if or statements to get three possible outcomes

It's hard to tell what you really want, as there appears to be a
type-o......here's my interpretation................

=IF(OR(A1=X1,A1=Y1),M1,IF(A1=Z1,N1,P1))

Vaya con Dios,
Chuck, CABGx3



"Teethless mama" wrote in message
...
=IF(A1="x","m",IF(A1="y","n","p))


"Dorothy A" wrote:

I want to use an IF/OR statement to get 3 possible outcomes for a cell

value
(eg if cell a=x or y, then m, if cell a=y then n, else p

However, I can only work it for 2 different outcomes. Any ideas?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default if or statements to get three possible outcomes

maybe confused am I.

=if(AND(A1=X,X=Y),M,if(A1=Y,N,P))

substitute X,Y with nubers ;M,N,P with nubers or "text".
--
*****
birds of the same feather flock together..



"CLR" wrote:

It's hard to tell what you really want, as there appears to be a
type-o......here's my interpretation................

=IF(OR(A1=X1,A1=Y1),M1,IF(A1=Z1,N1,P1))

Vaya con Dios,
Chuck, CABGx3



"Teethless mama" wrote in message
...
=IF(A1="x","m",IF(A1="y","n","p))


"Dorothy A" wrote:

I want to use an IF/OR statement to get 3 possible outcomes for a cell

value
(eg if cell a=x or y, then m, if cell a=y then n, else p

However, I can only work it for 2 different outcomes. Any ideas?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default if or statements to get three possible outcomes

maybe confused am I.

=if(AND(A1=X,X=Y),M,if(A1=Y,N,P))

substitute X,Y with nubers ;M,N,P with nubers or "text".
--
*****
birds of the same feather flock together..



"CLR" wrote:

It's hard to tell what you really want, as there appears to be a
type-o......here's my interpretation................

=IF(OR(A1=X1,A1=Y1),M1,IF(A1=Z1,N1,P1))

Vaya con Dios,
Chuck, CABGx3



"Teethless mama" wrote in message
...
=IF(A1="x","m",IF(A1="y","n","p))


"Dorothy A" wrote:

I want to use an IF/OR statement to get 3 possible outcomes for a cell

value
(eg if cell a=x or y, then m, if cell a=y then n, else p

However, I can only work it for 2 different outcomes. Any ideas?




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
Multiple IF statements or a better method ? Bob Moore Excel Discussion (Misc queries) 4 November 25th 06 01:20 AM
2 IF Statements not mutually exclusive Bev Excel Discussion (Misc queries) 2 August 24th 06 05:23 AM
UDFunctions and nested If-the-else statements JDB Excel Worksheet Functions 1 January 25th 06 03:29 PM
Linking two IF statements together trixma Excel Discussion (Misc queries) 2 September 29th 05 06:07 AM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


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