+ Reply to Thread
Results 1 to 10 of 10

Lookup and assign a grade based on performance but different tiers for different people

  1. #1
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Lookup and assign a grade based on performance but different tiers for different people

    Hi guys

    I've got a problem where I want to assign a grade based on sales performance. There's a table of grades based on tiers e.g 0-100 is a C, 101-200 is a B and anything else is an A.

    I don't really know what formula to use to pull in the data from one table into another and assign the correct grade.

    I've put together an example sheet so I hope it helps illustrate the problem.

    It's too much for a normal vlookup due to the tiers so I need some help. In my actual data set, there could be hundreds of people i'm trackig so I can't write the tiers into an if function.



    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    create a table
    0 C
    101 B
    201 A

    and then use
    =VLOOKUP(B5,reference Table ,2,TRUE)

    see attached
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    Interesting approach. This solution means I need to create a lookup table and formula specific to each person though.

    Is there not a way to use one formula to lookup a consolidated table of tiers? The formula would then be applicable to all people in Column A.

    Thanks for replying.

    Quote Originally Posted by etaf View Post
    create a table
    0 C
    101 B
    201 A

    and then use
    =VLOOKUP(B5,reference Table ,2,TRUE)

    see attached

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    Another way to write that formula:

    =LOOKUP(B5,reference Table)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    Maybe this

    =LOOKUP(B5,{0,121,2000},{"B","A"})
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    Thanks for the solutions guys but I can't use those since they don't take into account the different tiers for A and B.

    I really can't hard code the tiers into the formula as my final actual sheet may have hundreds of people to lookup which is why I wanted to make a table of grades and tiers, then look it up depending on the Persons name and their sales, not just the sales.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    In your sample file each person has 2 tiers.

    Will there always be the same number of tiers for each person?

  8. #8
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    No it could be variable, but shouldn't be more than 4

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    This solution means I need to create a lookup table and formula specific to each person though
    Should not do , if the sales tiers are the same for everyone

    do you have different ties for different people
    if so you could have a matrix reference table

    so down column A have the names and along row 1 have all the tiers
    now we can look up the names and what tier Grad applies

    If you want different values for different people then
    you need to put all the tier cutoff values in the ROWs
    and then if you have

    0 100 200 300 400

    and say for Person A
    they are
    A for upto 100 and B for upto 200 and C for anything else
    you put
    A B C C C
    now if you person B
    A for upto 100
    B upto 300
    C anything else

    A B B C C

    see example
    Attached Files Attached Files

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup and assign a grade based on performance but different tiers for different peopl

    Try this...


    Data Range
    A
    B
    C
    D
    E
    F
    G
    4
    Person
    Sales
    Grade
    -----
    Company
    Minimum
    Grade
    5
    A
    80
    B
    A
    0
    B
    6
    B
    141
    A
    A
    101
    A
    7
    A
    120
    A
    B
    0
    B
    8
    B
    133
    A
    B
    121
    A
    9
    C
    57
    A
    C
    0
    C
    10
    C
    21
    B
    C
    20
    B
    11
    D
    199
    B
    C
    50
    A
    12
    D
    0
    B
    13
    D
    200
    A


    This formula entered in C5 and copied down:

    =LOOKUP(B5,OFFSET(E$5,MATCH(A5,E$5:E$13,0)-1,1,COUNTIF(E$5:E$13,A5),2))

+ 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. Lookup of Revenue Tiers
    By Cowboys9 in forum Excel General
    Replies: 2
    Last Post: 07-16-2013, 10:38 PM
  2. Replies: 5
    Last Post: 05-22-2013, 10:11 AM
  3. 3 TIERS of commision - result based
    By gazzerus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2013, 10:27 PM
  4. Replies: 0
    Last Post: 10-10-2011, 03:14 PM
  5. [SOLVED] How can I assign a number value to a letter grade in Excel?
    By BlackBond in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2005, 06:06 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