Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Titian
 
Posts: n/a
Default Nested If / And / Or ?

Greetings

Is there any way the following can be expressed in single formula?

If A2 = 1 and B2 <= 10 - "Yes"

If A2 = 1 and B2 10 - "No"

If A2 = 2 and B2 <= 20 - "Yes"

If A2 = 2 and B2 20 - "No"

Thanks in advance.



Dan




  #2   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Nested If / And / Or ?


=If(or(and(A2=1,B2<=10),and(A2=2,B2<=20)),"Yes",if (or(and(A2=1,B210),and(A2=2,B220)),"No","")

There are options that will leave the cell blank (= "" )


Titian Wrote:
Greetings

Is there any way the following can be expressed in single formula?

If A2 = 1 and B2 <= 10 - "Yes"

If A2 = 1 and B2 10 - "No"

If A2 = 2 and B2 <= 20 - "Yes"

If A2 = 2 and B2 20 - "No"

Thanks in advance.



Dan



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=487142

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Nested If / And / Or ?


=IF(OR(AND(A2=1,B2<=10),AND(A2=2,B2<=20)),"Yes",IF (OR(AND(A2=1,B210),AND(A2=2,B220)),"No",""))

There are options that will leave the cell blank (= "" )


Titian Wrote:
Greetings

Is there any way the following can be expressed in single formula?

If A2 = 1 and B2 <= 10 - "Yes"

If A2 = 1 and B2 10 - "No"

If A2 = 2 and B2 <= 20 - "Yes"

If A2 = 2 and B2 20 - "No"

Thanks in advance.



Dan



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=487142

  #4   Report Post  
Posted to microsoft.public.excel.misc
Titian
 
Posts: n/a
Default Nested If / And / Or ?

"Bryan Hessey" wrote in message

=IF(OR(AND(A2=1,B2<=10),AND(A2=2,B2<=20)),"Yes",IF (OR(AND(A2=1,B210),AND(A2=2,B220)),"No",""))

There are options that will leave the cell blank (= "" )


Titian Wrote:
Greetings

Is there any way the following can be expressed in single formula?

If A2 = 1 and B2 <= 10 - "Yes"

If A2 = 1 and B2 10 - "No"

If A2 = 2 and B2 <= 20 - "Yes"

If A2 = 2 and B2 20 - "No"

Thanks in advance.



Dan



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile:
http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=487142


Thanks so much Bryan

it works a treat.

cheers
Dan


  #5   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Nested If / And / Or ?


Good to see, and thanks for the response.

Titian Wrote:[color=blue]
"Bryan Hessey" wrote in message


=IF(OR(AND(A2=1,B2<=10),AND(A2=2,B2<=20)),"Yes",IF (OR(AND(A2=1,B210),AND(A2=2,B220)),"No",""))


it works a treat.

cheers
Dan



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=487142

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
Nested Subtotals in Excel 2002 KG Excel Discussion (Misc queries) 2 September 10th 05 12:51 PM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 06:45 AM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 07:17 AM
how can I exceed the nested if fuction limit mgdye Excel Discussion (Misc queries) 5 January 30th 05 03:09 PM
how can I exceed the nested if fuction limit Mike Excel Discussion (Misc queries) 0 January 30th 05 01:17 AM


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

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"