+ Reply to Thread
Results 1 to 2 of 2

nested If logic isn't working, plz help...

  1. #1
    Registered User
    Join Date
    08-24-2012
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Post nested If logic isn't working, plz help...

    Please tell me what I am doing in below logic, somehow not able to get the result:

    =IF((AND((HLOOKUP(A1,$A$1:$F$2,2,0)="Yes"),(HLOOKUP(G1,G1:L2,2,0)="Green"))),"Compliant",IF((AND(AND((HLOOKUP(A1,$A$1:$F$2,2,0)="Yes"),(HLOOKUP(G1,G1:L2,2,0)="Orange"))),(NOT(ISBLANK(N2)))),"Compliant",IF((AND(AND((HLOOKUP(A1,$A$1:$F$2,2,0)="Yes"),(HLOOKUP(G1,G1:L2,2,0)="RED"))),(NOT(ISBLANK(N2)))),"Compliant",IF((AND(AND((HLOOKUP(A1,$A$1:$F$2,2,0)="Yes"),(HLOOKUP(G1,G1:L2,2,0)="Yellow"))),(NOT(ISBLANK(N2)))),"Compliant",IF((AND(AND((HLOOKUP(A1,$A$1:$F$2,2,0)="Yes"),(HLOOKUP(G1,G1:L2,2,0)="NA"))),(NOT(ISBLANK(N2)))),"Compliant",IF((AND(AND((HLOOKUP(A1,$A$1:$F$2,2,0)="Yes"),(HLOOKUP(G1,G1:L2,2,0)="NULL"))),(NOT(ISBLANK(N2)))),"Compliant","Non Compliant"))))))


    Sheet attached for the data.
    Attached Files Attached Files

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: nested If logic isn't working, plz help...

    Not sure which formula you are trying to check but:
    SHeet1 A23 shoudl be:
    =IF((AND(AND(OR(OR(OR(HLOOKUP(B20,G20:L21,2,0)={"Green","Orange","Red","Yellow"})))),NOT(ISBLANK(N21)))),"Compliant","Non Compliant")
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. if, nested if, if(and) logic
    By nicolelschramartin in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-12-2012, 05:14 AM
  2. Nested If / Question about a logic
    By dreams in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-09-2012, 02:16 PM
  3. Nested IF logic
    By picopooki in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-11-2010, 06:17 AM
  4. Excel 2008 : RESOLVED Configuring Nested IF Logic
    By baraktorvan in forum Excel General
    Replies: 10
    Last Post: 11-26-2010, 01:55 PM
  5. Anyone good at nested logic?
    By jbitluk in forum Excel General
    Replies: 6
    Last Post: 07-30-2009, 05:22 PM

Tags for this Thread

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