Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Conditional If Statements

Hello--I am a novice with respect to conditional if statements. I
would like to express the following in a formula:

If cell A =5 AND cell B2, return Red
If cell A<=5 AND cell B=0, return Green
If cell A=5 AND cell B=0 OR Cell A<=5 AND cell B=2-5, Return Yellow.

I know this is a lot. What I would like to know is whether it is even
possible to include this many conditions.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conditional If Statements

=IF(AND(A2=5,B22),"Red",IF(AND(A2<=5,B2=0)<"Gree n",IF(OR(AND(A2=5,B2=0),AND(A2<=5,B2=2)),"Yellow" ,"")))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

wrote in message
...
Hello--I am a novice with respect to conditional if statements. I
would like to express the following in a formula:

If cell A =5 AND cell B2, return Red
If cell A<=5 AND cell B=0, return Green
If cell A=5 AND cell B=0 OR Cell A<=5 AND cell B=2-5, Return Yellow.

I know this is a lot. What I would like to know is whether it is even
possible to include this many conditions.

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Conditional If Statements

On Sep 3, 10:19*am, "Bob Phillips" wrote:
=IF(AND(A2=5,B22),"Red",IF(AND(A2<=5,B2=0)<"Gree n",IF(OR(AND(A2=5,B2=0),*AND(A2<=5,B2=2)),"Yellow ","")))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

wrote in message

...



Hello--I am a novice with respect to conditional if statements. *I
would like to express the following in a formula:


If cell A =5 AND cell B2, return Red
If cell A<=5 AND cell B=0, return Green
If cell A=5 AND cell B=0 OR Cell A<=5 AND cell B=2-5, Return Yellow.


I know this is a lot. *What I would like to know is whether it is even
possible to include this many conditions.


Thanks!- Hide quoted text -


- Show quoted text -


Hi Bob--thanks so much for the quick response. I think this is on the
verge of working, but everything returns as "FALSE." The values in
column A are all percentages. I did not think this would matter, but
could that be what is throwing me off?
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
Conditional If Statements maxcw Excel Worksheet Functions 2 June 23rd 08 05:22 AM
Conditional statements Sue Excel Worksheet Functions 1 May 12th 08 10:14 PM
Conditional Statements Help! Brian Excel Discussion (Misc queries) 1 April 8th 08 10:08 PM
Conditional statements james Excel Worksheet Functions 9 January 7th 08 03:07 PM
Conditional IF statements sike11 via OfficeKB.com Excel Worksheet Functions 9 January 19th 07 08:15 PM


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