+ Reply to Thread
Results 1 to 6 of 6

IF,AND,OR statements not working

  1. #1
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    IF,AND,OR statements not working

    Hi Experts,

    I can't seem to get this formula working:

    =IF(COUNTBLANK(H4:Q4)>0,"",IF(A4="E123",IF(OR(G4>1,U4<=5),"Disqualified",IF(A4<>"E123",IF(OR(F4="",H4<93%,G4>1,J4>0,K4>60,L4>1,M4>0,N4>0,O4>0,P4<95%,Q4<12),"Disqualified","Qualified")))))

    What I'm trying to do is to make the statement unique for one individual and the same for the rest.

    The criteria is different for one individual and the same for the rest.

    Hope you could help.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: IF,AND,OR statements not working

    Nothing seems to be wrong with your formula...

    I wonder though in your large OR statement... OR(F4="",H4<93%,G4>1,J4>0,etc.

    Did you mean G4 or I4? Is there something in I4? If not, then the COUNTBLANK condition in the beginning of your formula will always be "".

    Anyway, that's the only thing I can see from your formula...

    Use the F9 technique... highlight any a small section of your formula... press F9 and it will calculate the items you highlight... you have to highlight a "formula" or cell within the formula for it to calculate... go down your formula until you find the error...

    Good luck!

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: IF,AND,OR statements not working

    there's data in I4 but it is not included in the criteria and there will always be data in I4 so the countblank is not really an issue.

    I just want a unique criteria for one individual and the same for the rest without having to actually come up with a separate formula for that one individual.

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: IF,AND,OR statements not working

    OK, looking at this closer, I assume, E123 is the individual in question, no?

    Is there a scenario where E123 is "Qualified"? Also, A4<>"E123" is redundant since the FALSE statement of A4="E123" is just that...

    Will this work instead?

    =IF(COUNTBLANK(H4:Q4)>0,"",IF(OR(AND(A4="E123",OR(G4>1,U4<=5)),OR(F4="",H4<93%,G4>1,J4>0,K4>60,L4>1,M4>0,N4>0,O4>0,P4<95%,Q4<12)),"Disqualified","Qualified"))

    If this still does not work, can you attach a spreadsheet? Make sure to not include sensitive information. What results did you expect with your sample records?

  5. #5
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: IF,AND,OR statements not working

    here's how it works:

    E123 has a different set of criteria than the others.. so basically his criteria is just this:

    OR(G4>1,U4<=5)

    and the rest of the group is:

    OR(F4="",H4<93%,G4>1,J4>0,K4>60,L4>1,M4>0,N4>0,O4>0,P4<95%,Q4<12))

    so if E123's H4 data is 89.99% that wouldn't matter because it's not part of her criteria so he should still be qualified assuming his G4<1 and U4>=5.

    Thank you

  6. #6
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: IF,AND,OR statements not working

    Try this...

    =IF(COUNTBLANK(H4:Q4)>0,"",IF(A4="E123",IF(OR(G4>1,U4<=5),"Disqualified","Qualified"),IF(OR(F4="",H4<93%,G4>1,J4>0,K4>60,L4>1,M4>0,N4>0,O4>0,P4<95%,Q4<12),"Disqualified","Qualified")))

    This breaks down like this...

    If A4="E123" then
    IF(OR(G4>1,U4<=5),"Disqualified","Qualified")
    else
    IF(OR(F4="",H4<93%,G4>1,J4>0,K4>60,L4>1,M4>0,N4>0,O4>0,P4<95%,Q4<12),"Disqualified","Qualified")

    I hope this works for you...
    Last edited by djapigo; 04-07-2015 at 11:45 AM.

+ 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. [SOLVED] Multiple IF Statements are working as I would like
    By NZL_Truly in forum Excel General
    Replies: 4
    Last Post: 02-15-2015, 02:20 AM
  2. [SOLVED] IF() statements not working out right
    By sumitos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2013, 12:37 AM
  3. IF statements not working
    By dissonance in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-15-2007, 09:56 AM
  4. working with IF statements
    By matty_g in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 09-06-2005, 03:05 AM
  5. Working with If statements and time
    By Sue in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2005, 01:11 PM

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