+ Reply to Thread
Results 1 to 5 of 5

Adding 5 star rating system

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    asdf
    MS-Off Ver
    2010
    Posts
    1

    Adding 5 star rating system

    Hey,

    I'm trying to add a rating system to my worksheet. Basically, I want the user to be able to select what they want to rate a movie out of 5. For example, if they want to give the movie a 4/5, then they would click the fourth star, which would highlight all but the last star. Is this possible to do, if so, how? Also, please bare with me, I've never used codes in Excel.

  2. #2
    Registered User
    Join Date
    03-13-2014
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Adding 5 star rating system

    I don't think you would be able to do that. There is an easy way and a hard way to approximate what you want.

    EASY WAY:

    Let Column A be the movie title, Column B be blank, and Column C have your stars. Format Column C to have yellow text in Wingdings font.

    In Column C, put in this formula:

    IF(B=1,"X",IF(B=2,"XX",IF(B=3,"XXX",IF(B=4,"XXXX",IF(B=5,"XXXX","ERROR")))))

    "X" has to be whatever letter or number in Wingdings makes the star. I don't know what it is off the top of my head.

    So if a user puts in "3" in Column B, 3 stars will appear in Column C. If a user puts in any value other than 1, 2, 3, 4, or 5, it will return the message "ERROR".

    HARD WAY:

    You can look up how to do custom icon sets in Excel. I have never tried doing this.
    Last edited by wes228; 06-19-2014 at 10:05 AM. Reason: Need to put quotation marks around X's.

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

    Re: Adding 5 star rating system

    =REPT("X",B1) is slightly shorter if you choose that method
    "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

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Adding 5 star rating system

    You can use Conditional Formatting for this. It wont give you stars, but you can set it up to give you bars.

    1. Highlight the range you want to apply the CF 2
    2. select CF on the home tab/styles
    3. click New Rule/format cells cells that contain
    4. click Format Style, select Icon Sets
    5. click Icon Style (at the bottom), select 5 ratings
    6. change the TYPE from Percent to number
    7. in VALUE, enter 5, 4, 3, 2 respectively in each block

    You can elect to not see the value, if you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Adding 5 star rating system

    Col A = Name of Song
    Put this in the sheet's code module. Double click on a cell to rank that row's song.
    Change the column widths, font and the X,O to suit your visual desires.
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. ELO Rating system
    By Melis K. in forum Excel General
    Replies: 3
    Last Post: 11-23-2013, 01:06 PM
  2. [SOLVED] Where did I go Wrong? inserting a 5 star rating in excel VBA
    By Dyls in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2013, 05:32 AM
  3. Add 5 Star Rating to cell
    By panamakevin in forum Excel General
    Replies: 9
    Last Post: 10-10-2012, 04:25 PM
  4. Rating system
    By TTL in forum Excel General
    Replies: 1
    Last Post: 07-10-2007, 12:17 AM
  5. help with my rating system
    By sarina1113 in forum Excel General
    Replies: 3
    Last Post: 10-05-2006, 05:55 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