+ Reply to Thread
Results 1 to 6 of 6

Thread: Multiple IF compare two columns

  1. #1
    Registered User
    Join Date
    09-30-2008
    Location
    London
    Posts
    40

    Multiple IF compare two columns

    Dear all,

    Please see attachment.

    Actually I want to compare two columns depend on their criteria and print “OK” or “Check”

    It would be very much appreciated if you could help me.

    Thanks.

    Vinay
    Attached Files Attached Files

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Multiple IF compare two columns

    Hi,

    How about
    =IF(OR(AND(B2>=30,C2>=75),AND(B2>=11,B2<=29,C2>=35),AND(B2>=5,B2<=10,C2>=8),AND(B2>=0,B2<=4,C2<=7)),"OK","Check")
    Rgds
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,786

    Re: Multiple IF compare two columns

    i think this will do
    =IF(AND(B2<5,C2<8),"ok",IF(AND(B2<11,C2>7),"ok",IF(AND(B2<30,C2>34),"ok",IF(AND(B2>29,C2>74),"ok","c heck"))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-30-2008
    Location
    London
    Posts
    40

    [SOLVED] Re: Multiple IF compare two columns

    Thanks Martin & Richard,

    Both are great.

    It's working fine.

    Thanks again.

    Vinay

  5. #5
    Registered User
    Join Date
    06-24-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Multiple IF - compare multiple columns

    I need to check cell C10 to see if the number 06-10 is present (will appear as 06, 07 etc), and if so, check that another cell D15>=2, and if so enter Pass in cell D16, otherwise Fail. However, if the number in C10 is 11-15, I need it to check that D15>=1, and if so enter Pass in cell D16, otherwise Fail.
    Is that a formula that can look at the number in C10, and based on this number, compare the correct acceptance criteria to return Pass/Fail?

    Thanks
    SP

  6. #6
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Multiple IF compare two columns

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0