Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 84
Default Multiple Nested IFs, ORs, Ands

I've been playing with nested IFs, ORs, and Ands, with no luck. There may be
an easier way to do what I want, but I'm trying to accomplish the following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10 = y)
Then insert Yes into cell B1

Any help is apprecaited. THANKS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 87
Default Multiple Nested IFs, ORs, Ands

Try:
=IF(OR(AND(B42="x",B8="y"),AND(B43="x",B9="y"),AND (B44="x",B10="y")),"Yes","")

Scott

Shelly wrote:
I've been playing with nested IFs, ORs, and Ands, with no luck. There may be
an easier way to do what I want, but I'm trying to accomplish the following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10 = y)
Then insert Yes into cell B1

Any help is apprecaited. THANKS


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Multiple Nested IFs, ORs, Ands

=IF(OR(AND(B42=x,B8=y),AND(B43=x,B9=y),AND(B44=x,B 10=y)),"Yes","")
--
David Biddulph

"Shelly" wrote in message
...
I've been playing with nested IFs, ORs, and Ands, with no luck. There may
be
an easier way to do what I want, but I'm trying to accomplish the
following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10
= y)
Then insert Yes into cell B1

Any help is apprecaited. THANKS



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Multiple Nested IFs, ORs, Ands

Try this, in cell B1 enter:

=IF(OR(AND(B42="x",B8="y"),AND(B43="x",B9="y"),AND (B44="x",B10="y")),"Yes","No")

HTH,
Elkar


"Shelly" wrote:

I've been playing with nested IFs, ORs, and Ands, with no luck. There may be
an easier way to do what I want, but I'm trying to accomplish the following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10 = y)
Then insert Yes into cell B1

Any help is apprecaited. THANKS

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 84
Default Multiple Nested IFs, ORs, Ands

EXCELLENT! Thank you!

"Scott" wrote:

Try:
=IF(OR(AND(B42="x",B8="y"),AND(B43="x",B9="y"),AND (B44="x",B10="y")),"Yes","")

Scott

Shelly wrote:
I've been playing with nested IFs, ORs, and Ands, with no luck. There may be
an easier way to do what I want, but I'm trying to accomplish the following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10 = y)
Then insert Yes into cell B1

Any help is apprecaited. THANKS





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Multiple Nested IFs, ORs, Ands

Shelly wrote...
I've been playing with nested IFs, ORs, and Ands, with no luck. There may be
an easier way to do what I want, but I'm trying to accomplish the following:

If (B42 = x and B8 = y) or if (B43 = x and B9 = y) or if (B44 = x and B10 = y)
Then insert Yes into cell B1

....

An alternative,

=IF(SUMPRODUCT((B42:B44=x)*(B8:B10=y)),"Yes","")

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 ifs, and ands, and are not working A.R.J Allan Jefferys Excel Discussion (Misc queries) 3 September 2nd 06 12:58 AM
Display multiple lines of text within a cell from multiple column. Zeeshan Zaheer Excel Worksheet Functions 3 August 23rd 06 10:08 AM
work with multiple workbooks on separate monitor for 2003 edition mathura Excel Worksheet Functions 1 July 18th 06 05:58 PM
macro copy/paste data from multiple cells to multiple cells Diana Excel Discussion (Misc queries) 0 July 10th 06 09:24 PM
Adding multiple worksheets Craig Excel Worksheet Functions 1 July 6th 05 07:21 PM


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