A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF formula with 3 possible outcomes



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2007, 11:44 AM posted to microsoft.public.excel.worksheet.functions
Aaron Hodson \(Coversure\)
external usenet poster
 
Posts: 46
Default IF formula with 3 possible outcomes

Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron

  #2  
Old November 8th, 2007, 12:00 PM posted to microsoft.public.excel.worksheet.functions
Aaron Hodson \(Coversure\)
external usenet poster
 
Posts: 46
Default IF formula with 3 possible outcomes

Oops, still need help but,

The formula can go direct into C3 without the need for P10 existing,

Thanks again in advance of the reply.

Kind regards

Aaron

"Aaron Hodson (Coversure)" wrote in message
...
Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron


  #3  
Old November 8th, 2007, 12:04 PM posted to microsoft.public.excel.worksheet.functions
Toppers
external usenet poster
 
Posts: 3,081
Default IF formula with 3 possible outcomes

Try in C3:

=IF(P9=0,1,IF(P9=2,3,2))

"Aaron Hodson (Coversure)" wrote:

Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron


  #4  
Old November 8th, 2007, 12:17 PM posted to microsoft.public.excel.worksheet.functions
Aaron Hodson \(Coversure\)
external usenet poster
 
Posts: 46
Default IF formula with 3 possible outcomes

Thanks Toppers,

Worked perfectly,

Aaron

"Toppers" wrote in message
...
Try in C3:

=IF(P9=0,1,IF(P9=2,3,2))

"Aaron Hodson (Coversure)" wrote:

Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron



  #5  
Old November 8th, 2007, 12:35 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default IF formula with 3 possible outcomes

To start with, if you want a value in C3, you put your formula in C3, not in
P10. A formula can't "push" data into another cell.

The formula in C3 is =IF(P90,"undefined output",IF(P9=0,1,IF(P92,2,3)))
--
David Biddulph

"Aaron Hodson (Coversure)" wrote in message
...
Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron



  #6  
Old November 8th, 2007, 03:22 PM posted to microsoft.public.excel.worksheet.functions
Sloth
external usenet poster
 
Posts: 222
Default IF formula with 3 possible outcomes

I know this has been answered, but you can use the following formula to get
the same results

=(P9=0)+(P90)+(P9=2)

your preference depends on how you think. I hate using nested ifs, but a
lot of people like them.

"Aaron Hodson (Coversure)" wrote:

Oops, still need help but,

The formula can go direct into C3 without the need for P10 existing,

Thanks again in advance of the reply.

Kind regards

Aaron

"Aaron Hodson (Coversure)" wrote in message
...
Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron



  #7  
Old November 8th, 2007, 04:09 PM posted to microsoft.public.excel.worksheet.functions
Aaron Hodson \(Coversure\)
external usenet poster
 
Posts: 46
Default IF formula with 3 possible outcomes

Thanks Sloth,

I am trying to get to grips with formulas and it's handy to know all the
different methods.

Thanks

Aaron

"Sloth" wrote in message
...
I know this has been answered, but you can use the following formula to get
the same results

=(P9=0)+(P90)+(P9=2)

your preference depends on how you think. I hate using nested ifs, but a
lot of people like them.

"Aaron Hodson (Coversure)" wrote:

Oops, still need help but,

The formula can go direct into C3 without the need for P10 existing,

Thanks again in advance of the reply.

Kind regards

Aaron

"Aaron Hodson (Coversure)" wrote in message
...
Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will
be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron




  #8  
Old November 8th, 2007, 04:28 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default IF formula with 3 possible outcomes

=LOOKUP(P9,{0,1,2},{1,2,3})


"Aaron Hodson (Coversure)" wrote:

Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron


  #9  
Old November 8th, 2007, 04:52 PM posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
external usenet poster
 
Posts: 2,468
Default IF formula with 3 possible outcomes

That doesn't seem to work for, say, P9 = 0.5

Perhaps

=1 + (P90) + (P9=2)

In article ,
Teethless mama wrote:

=LOOKUP(P9,{0,1,2},{1,2,3})


"Aaron Hodson (Coversure)" wrote:

Hello everyone,

I am trying to get the following formula to work, without success.

I would like C3 to have 3 possible outcomes, 1,2 or 3. This data will be
sent by P10.
P10 should be (in simple):

IF P9 IS EQUAL TO 0 THEN C3 EQUALS 1
IF P9 IS GREATER THAN 0 AND LESS THAN 2 THEN C3 EQUALS 2
IF P9 IS EQUAL TO OR GREATER THAN 2 THEN C3 EQUALS 3

Your help is much appreciated as always,

Kind regards

Aaron


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:43 AM.


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