+ Reply to Thread
Results 1 to 5 of 5

Combination of CountIF, IF, and NOT

  1. #1
    Registered User
    Join Date
    07-01-2008
    Location
    Washington, DC
    Posts
    14

    Combination of CountIF, IF, and NOT

    I am helping someone at my work to do some formula on evaluation -

    For example -

    There are three evaluators on one subject. Each of them evaluate with those following letters - S, U, I.

    Now we need to "average" those ratings - Such as -

    S, S, S = S
    S, S, I = S
    S, I, I = I
    U, S, I = I
    I, I, I = I
    I, I, U = I
    I, U, U = U
    U, U, U = U

    Need to reevaluate =
    S, S, U
    S, U, U

    So the first part is very easy = the formula goes -
    =IF(COUNTIF(D10:I10,"S")>=2,"S",IF(COUNTIF(D10:I10,"I")>=2,"I",IF(COUNTIF(D10:I10,"U")>=2,"U")))

    But when I tried to add NOT "U" in the first part (S, S, U) basically, if there is an U with two S, then that category needs to be reevaluate. I couldn't get that to work. As for U as well - if there are two Us, but with one S, then it needs to be re evaluate.

    I'd appreciate if you are able to assist with this formula It is the LAST one that we need to figure.

    Shannon

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Combination of CountIF, IF, and NOT

    It's really important to post the version of Excel you are using so we can tailor our responses.

    If you have Excel 2007 or later...
    try this regular formula to score values in A1:C1:
    Please Login or Register  to view this content.
    or this...
    Please Login or Register  to view this content.
    Note: that formula assumes that all 3 cells contain valid entries (S, I, or U)

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    07-01-2008
    Location
    Washington, DC
    Posts
    14

    Re: Combination of CountIF, IF, and NOT

    I am working with MS Excel 2010.

    I'm not worrying about valid letters - but to indicate if this category needs to be reevaluate

    For example -

    Evaluator #1 = S (satisfactory)
    Evaluator #2 - I (Need improvement)
    Evaluator #3 - U (Unsatisfactory)

    Now -
    One catergory - Turn=Taking Mechanism -

    the results are -
    S, S, U (this is invalid due to a huge difference between those two rates - the raters need to meet together and discuss why one feels that the testee did not do a good job in that area). So the results need to come out as "Need to Reevaluate"

    If it is S, S, I, it will come out as S (which I accomplished)

    The only two possibles that requires the results = "Need to Reevaluate" are:
    S, S, U
    S, U, U

    In my formula, if there is 2 or more Us, the rate will be U. But not if it has S, if so, then it needs to be re evaluate.

    I hope my question is clear? If you need the file, i will send it to you.

    Shannon

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Combination of CountIF, IF, and NOT

    I misinterpretted the "Need to re-evaluate" section.
    Perhaps something like this regular formula could be used:
    Please Login or Register  to view this content.
    Where each digit indicates the count of the letters I, S, and U (respectively)

    or...using this lookup range in Y1:Z11
    Please Login or Register  to view this content.
    and this regular formula
    Please Login or Register  to view this content.
    Is that something you can work with?

  5. #5
    Registered User
    Join Date
    07-01-2008
    Location
    Washington, DC
    Posts
    14

    Re: Combination of CountIF, IF, and NOT

    It works!!!! (the regular code). I need to understand how it works, but at least it works so I can give the file back to the person who are doing evaluations next week.

    Shannon

+ 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