+ Reply to Thread
Results 1 to 7 of 7

Rating

  1. #1
    Forum Contributor
    Join Date
    03-16-2009
    Location
    NC
    MS-Off Ver
    Office 2016
    Posts
    164

    Rating

    Hello everyone!
    I am trying to do some rating in excel.
    This is what I am trying to do.
    1- excellent
    2- good
    3- average
    4- fair
    5- poor
    I have the in a validation all of the words as option; but I want once they pick the words, in the cell beside will come up the number instead, and that will be the rating.
    This is my coding

    Please Login or Register  to view this content.

    Is there a better way to do that? Could anyone else give me some ideas?

    Thanks!
    Last edited by VBA Noob; 03-23-2009 at 03:00 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Rating

    In C2 and copy down, =IF(B2="", "", MATCH(B2, {"excellent","good","average","fair","poor"}, 0) )
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    03-16-2009
    Location
    NC
    MS-Off Ver
    Office 2016
    Posts
    164

    Re: Rating

    shg

    Thanks for the reply. For some reason the formula that you gave me is not working. This is how I put.

    =IF(B2="POOR", "FAIR", "AVERAGE", "GOOD", "EXCELLENT", MATCH(B2,{"5","4", "3", "2", "1"},0))

    Once I click enter, this is what comes up...

    You've entered too many arguments for this function.

    I don't quite get what I am doing wrong. Any ideas?

    Thanks!

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rating

    well the reason is that you havent followed shg's instructions!
    just use that formula as stated
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    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

  5. #5
    Forum Contributor
    Join Date
    03-16-2009
    Location
    NC
    MS-Off Ver
    Office 2016
    Posts
    164

    Re: Rating

    Thank you very much martindwilson.

    It worked. But could you give some more explanation on how that works. I just want to understand what happened.

    Thanks!

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rating

    =IF(B2="", "", if b2 is blank return blank if not then
    MATCH(B2, {"excellent","good","average","fair","poor"}, 0) )
    which takes the text in b2 and matches it against the array
    {"excellent","good","average","fair","poor"}
    and returns its position in the array so poor being in 5th position returns 5
    the ,0) at the end of the match function says "look for exact match"

  7. #7
    Forum Contributor
    Join Date
    03-16-2009
    Location
    NC
    MS-Off Ver
    Office 2016
    Posts
    164

    Re: Rating

    Thanks for all the help.

+ 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