+ Reply to Thread
Results 1 to 7 of 7

How to assign a number to a list of values

Hybrid View

  1. #1
    Registered User
    Join Date
    06-22-2017
    Location
    South Africa
    MS-Off Ver
    office 2010
    Posts
    3

    How to assign a number to a list of values

    Good Day

    I am new to the forum and in some need of help.

    I am busy helping a local sport team setting up a scoring sheet on excel. But having a problem creating a formula to work out their sort of scoring. Below is the problem

    Evey one on the list gets a score from 0% to 100%. People can get the same score. now they also assign a number from 100 down to 0 starting at the highest to lowest. So if person A have the highest score 80% he will get 100 but person B & C gets the second highest score 70% they will both get 99. and so on till the person that gets 0.

    I am having a problem creating a formula that will assign a value from 100 to 0 on the score. There are about 250 members that will be on the list.

    Any help would be appreciated.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How to assing a number to a list of values

    Hi,

    That sounds like a RANK function, depending on whether the next highest value in your example would get 98 or 97 as a score?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    06-22-2017
    Location
    South Africa
    MS-Off Ver
    office 2010
    Posts
    3

    Re: How to assing a number to a list of values

    I have played with the rank function but not really getting to work.

    Here is a bit of a better example. It is listed from high to low but will not always be like that:

    Name Score Number
    A 80 100
    B 75 99
    C 75 99
    D 75 99
    E 75 99
    F 73.3 98
    G 65 97
    H 60 96

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How to assign a number to a list of values

    hi SJBurger. so eventually, your lowest % may not get a score number of 0? if so, try:
    =100-SUMPRODUCT(($A$1:$A$250>A1)*1/COUNTIF($A$1:$A$250,$A$1:$A$250))

    as similar formula is explained in the file of my link below*Tips & Tutorials I Compiled, sheet 19
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: How to assign a number to a list of values

    Perhaps this

    A
    B
    C
    1
    A
    80
    100
    2
    B
    75
    99
    3
    C
    75
    99
    4
    D
    75
    99
    5
    E
    75
    99
    6
    F
    73.3
    98
    7
    G
    65
    97
    8
    H
    60
    96



    C
    1
    =100-COUNT(1/FREQUENCY(IF($B$1:$B$8>B1,$B$1:$B$8),$B$1:$B$8))


    Note that the formula in C1 is an array formula and must be committed by pressing Ctrl+Shift+Enter. Then copy it down.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to assign a number to a list of values

    And just to give you a third choice, use this Array function

    =100-SUM(IF(B2<$B$2:$B$9,1/COUNTIF($B$2:$B$9,$B$2:$B$9)))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    I would personally choose benishiryo's solution as it is not an arrayed function but all three are good. I included all 3 in my spreadsheet.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Registered User
    Join Date
    06-22-2017
    Location
    South Africa
    MS-Off Ver
    office 2010
    Posts
    3

    Re: How to assign a number to a list of values

    Thanks Benishiryo

    I added your formula to an IF statement so that if a user gets 0 he will get 0 and then if not your formula will kick in. i will test it a bit more with their scoring system but it seems that it is working. Thanks all for the help

+ 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. Automatically assign a code number to a list of products?
    By ppgab in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-07-2016, 09:09 PM
  2. Assign values to items in a list
    By rk1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2014, 09:02 AM
  3. Assign values to drop down list
    By suddenglimpse in forum Excel General
    Replies: 1
    Last Post: 03-18-2012, 08:33 PM
  4. how to assign a number between two values
    By Humphrey7 in forum Excel General
    Replies: 6
    Last Post: 04-22-2010, 01:00 AM
  5. Replies: 6
    Last Post: 09-24-2009, 03:31 PM
  6. Can I assign a series of values to a number?
    By Fat Jim in forum Excel General
    Replies: 4
    Last Post: 08-17-2009, 12:02 PM
  7. List of Dates- Assign Week Number??
    By Micquia in forum Excel General
    Replies: 1
    Last Post: 07-11-2006, 05:05 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