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

Hello--I am trying to write an IF statement with more than 2
conditions. Ultimately, I would like to have a formula that
calculates the following:

IF #1 -- #2 is 10, return "Yellow," Otherwise, return "Green." AND/
OR If #1 -- #2 30, Red, Otherwise return yellow or green (based on
thresholds above). Is this possible?

This is what I have so far:
=IF('Small Business Card Data'!C3-'Small Business Card Data'!
B310,"Yellow","Green")

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Multiple conditions and IF Statements

Try it this way:

=IF('Small Business Card Data'!C3-'Small Business Card Data'!
B330,"Red",IF('Small Business Card Data'!C3-'Small Business Card
Data'!B310,"Yellow","Green"))

Hope this helps.

Pete

On Jan 18, 3:54*pm, wrote:
Hello--I am trying to write an IF statement with more than 2
conditions. *Ultimately, I would like to have a formula that
calculates the following:

IF #1 -- #2 is 10, return "Yellow," Otherwise, return "Green." AND/
OR If #1 -- #2 30, Red, Otherwise return yellow or green (based on
thresholds above). *Is this possible?

This is what I have so far:
=IF('Small Business Card Data'!C3-'Small Business Card Data'!
B310,"Yellow","Green")

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 80
Default Multiple conditions and IF Statements

If you need more than a few nested if statements, I like to use
vlookup. The lookup table might look like this (hide it anywhere in
the workbook):

No. Color
1 Red
2 Red
3 Red
4 Red
5 Yellow
6 Yellow
7 Yellow
8 Yellow
9 Green
10 Green

Then your formula (in A2 for instance) could look something like this:
=vlookup(A1,mycolortable,2,false). If the number in A1 = 10, then the
formula returns "green". If the number is 4, then it returns "Red".
This method is far easier to write and debug if you have 3 or more
nested if statements.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Multiple conditions and IF Statements

On 18 Jan, 11:44, Pete_UK wrote:
Try it this way:

=IF('Small Business Card Data'!C3-'Small Business Card Data'!
B330,"Red",IF('Small Business Card Data'!C3-'Small Business Card
Data'!B310,"Yellow","Green"))

Hope this helps.

Pete

On Jan 18, 3:54*pm, wrote:



Hello--I am trying to write an IF statement with more than 2
conditions. *Ultimately, I would like to have a formula that
calculates the following:


IF #1 -- #2 is 10, return "Yellow," Otherwise, return "Green." AND/
OR If #1 -- #2 30, Red, Otherwise return yellow or green (based on
thresholds above). *Is this possible?


This is what I have so far:
=IF('Small Business Card Data'!C3-'Small Business Card Data'!
B310,"Yellow","Green")


Thanks!- Hide quoted text -


- Show quoted text -


This is exactly what I was looking for--thanks so much for your help.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Multiple conditions and IF Statements

You're welcome - thanks for feeding back.

Pete

On Jan 18, 4:55*pm, wrote:
On 18 Jan, 11:44, Pete_UK wrote:





Try it this way:


=IF('Small Business Card Data'!C3-'Small Business Card Data'!
B330,"Red",IF('Small Business Card Data'!C3-'Small Business Card
Data'!B310,"Yellow","Green"))


Hope this helps.


Pete


On Jan 18, 3:54*pm, wrote:


Hello--I am trying to write an IF statement with more than 2
conditions. *Ultimately, I would like to have a formula that
calculates the following:


IF #1 -- #2 is 10, return "Yellow," Otherwise, return "Green." AND/
OR If #1 -- #2 30, Red, Otherwise return yellow or green (based on
thresholds above). *Is this possible?


This is what I have so far:
=IF('Small Business Card Data'!C3-'Small Business Card Data'!
B310,"Yellow","Green")


Thanks!- Hide quoted text -


- Show quoted text -


This is exactly what I was looking for--thanks so much for your help.- Hide quoted text -

- Show quoted text -




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
Sumif, And Statements - multiple conditions Des Excel Worksheet Functions 3 September 7th 07 01:48 AM
Using SUMIF/IF statements for multiple conditions mishmash Excel Worksheet Functions 5 April 18th 07 10:10 AM
Multiple if statements with multiple conditions egarcia Excel Discussion (Misc queries) 4 January 29th 07 10:46 PM
IF statements and conditions Maliya9 Excel Worksheet Functions 4 January 12th 07 03:46 PM
Sum if statements with conditions La Donna Excel Worksheet Functions 2 June 20th 05 01:14 PM


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