+ Reply to Thread
Results 1 to 7 of 7

IF statement based on two cells, with OR/AND

Hybrid View

john_london IF statement based on two... 04-19-2010, 11:45 AM
shg Re: Apologies - simple IF... 04-19-2010, 11:49 AM
NBVC Re: Apologies - simple IF... 04-19-2010, 11:50 AM
shg Re: IF statement based on two... 04-19-2010, 12:02 PM
NBVC Re: IF statement based on two... 04-19-2010, 12:03 PM
shg Re: IF statement based on two... 04-19-2010, 12:06 PM
john_london Re: IF statement based on two... 04-19-2010, 12:16 PM
  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    86

    IF statement based on two cells, with OR/AND

    Hi guys,

    This is really getting on my nerves. I have two cells with the following choices:

    T7
    Risk Level:
    High
    Med
    Low
    Nominal

    W7
    Annual Spend Range:
    <$200K
    $200K-$500K
    $500K-$2m
    >$2m

    What I want is a simple formula which does the following:
    If
    (Cell T7 = Nominal or Low)
    AND
    (Cell W7 = <$200K or $200-$500)
    THEN “No”
    ELSE “Yes”
    It keeps giving me a #value error!!

    Thanks in advance!!

    John
    Last edited by john_london; 04-19-2010 at 12:18 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Apologies - simple IF which I can't do!!

    Welcome to the forum, John.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Apologies - simple IF which I can't do!!

    Try:

    =IF(AND(OR(T7 = {"Nominal","Low"}),OR(W7<200000,AND(W7>=200000,W7<=500000))),"No","Yes")

    Note: restored after title was changed.
    Last edited by NBVC; 04-19-2010 at 11:55 AM. Reason: Restored after title changed per shg's request
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: IF statement based on two cells, with OR/AND

    Or maybe,

    =IF(AND(OR(T7 = {"Nominal","Low"}), W7<=500000), "No", "Yes")

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF statement based on two cells, with OR/AND

    Yes, didn't catch the obvious...

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: IF statement based on two cells, with OR/AND

    Actually, maybe what the OP wants is this:

    =IF(AND(OR(T7={"Nominal","Low"}), OR(W7={"<$200K","$200K-$500K"})), "No", "Yes")

  7. #7
    Registered User
    Join Date
    04-19-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: IF statement based on two cells, with OR/AND

    shg: that's the one, thanks!! The thing that was confusing me was using the curly brackets {

    I was trying OR(W7="Low","Nominal") etc,

    Muchos Gracias guys!!!!!!!

+ 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