+ Reply to Thread
Results 1 to 5 of 5

IN operator

  1. #1
    Suzanne
    Guest

    IN operator

    I'm writting a nested if statement, referencing 3 cells. My condition is that
    if any one of the 3 cells have a value <> Y or <> N/A, the resulting value
    should be "N". If tried and(or( and every combination there of. Sql has an
    IN operator but i don't believe Excel does. Any suggestions? Here's where
    i'm at:
    =IF(OR(P7<>"Y",Q7<>"Y",R7<>"Y",P7<>"N/A",Q7<>"N/A",R7<>"N/A"),"N","Y")

    I'm looking to check if there's a value other than Y or N/A in ANY of the 3
    cells.

    Thanks!

  2. #2
    Duke Carey
    Guest

    RE: IN operator

    maybe

    =IF(COUNTIF(P7:R7,"Y")+COUNTIF(P7:R7,"N/A")<3,"N","Y")

    "Suzanne" wrote:

    > I'm writting a nested if statement, referencing 3 cells. My condition is that
    > if any one of the 3 cells have a value <> Y or <> N/A, the resulting value
    > should be "N". If tried and(or( and every combination there of. Sql has an
    > IN operator but i don't believe Excel does. Any suggestions? Here's where
    > i'm at:
    > =IF(OR(P7<>"Y",Q7<>"Y",R7<>"Y",P7<>"N/A",Q7<>"N/A",R7<>"N/A"),"N","Y")
    >
    > I'm looking to check if there's a value other than Y or N/A in ANY of the 3
    > cells.
    >
    > Thanks!


  3. #3
    Suzanne
    Guest

    RE: IN operator

    Wonderful! Thanks Duke.

    "Duke Carey" wrote:

    > maybe
    >
    > =IF(COUNTIF(P7:R7,"Y")+COUNTIF(P7:R7,"N/A")<3,"N","Y")
    >
    > "Suzanne" wrote:
    >
    > > I'm writting a nested if statement, referencing 3 cells. My condition is that
    > > if any one of the 3 cells have a value <> Y or <> N/A, the resulting value
    > > should be "N". If tried and(or( and every combination there of. Sql has an
    > > IN operator but i don't believe Excel does. Any suggestions? Here's where
    > > i'm at:
    > > =IF(OR(P7<>"Y",Q7<>"Y",R7<>"Y",P7<>"N/A",Q7<>"N/A",R7<>"N/A"),"N","Y")
    > >
    > > I'm looking to check if there's a value other than Y or N/A in ANY of the 3
    > > cells.
    > >
    > > Thanks!


  4. #4
    Brian Taylor
    Guest

    Re: IN operator

    Try this:

    =IF(OR(P7:R7="Y",P7:R7="N/A"),"Y","N")

    This is an array formula and will need to be entered using cntrl +
    shift + enter.


  5. #5
    Suzanne
    Guest

    Re: IN operator

    Thank you! I'll give it a try.

    "Brian Taylor" wrote:

    > Try this:
    >
    > =IF(OR(P7:R7="Y",P7:R7="N/A"),"Y","N")
    >
    > This is an array formula and will need to be entered using cntrl +
    > shift + enter.
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1