+ Reply to Thread
Results 1 to 15 of 15

Create a ranking column

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Create a ranking column

    Hello,

    Please see the attached workbook.

    can you please make the purple area be a ranking system based on the cities' scores in the orange section.
    As more cities and scores are added in the orange section, the purple section should update automatically.

    Thank you
    Attached Files Attached Files

  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: Create a ranking column

    Using your posted workbook
    First...convert the City/Score list to an Excel Table so it will automatically expand/collapse to accommodate the table contents when you add/delete table rows.
    • Select D5:E14
    • Home.Format-as-table...follow the prompts.
    • Rename the table to MyTable (so my formulas will work for you)
    ...Select a cell in the table.
    ...Table_Tools.Design.Table_Name: MyTable

    Now...in the RANKING section
    For a single-formula approach:
    This formula begins the list of cities in descending order of Score:
    Please Login or Register  to view this content.
    And this formula returns the score for that city:
    Please Login or Register  to view this content.
    Copy both formulas down as far as you need.

    OR...using a helper cell with the MyTable table
    • Type this in cell G5: RANK
    ...Excel will automatically expand the table to include that column
    • This formula will assign a rank to each row
    Please Login or Register  to view this content.
    (You'll notice that as soon as you finish the formula the Excel Table copies is down the column for you)

    Now, use these formulas to list the rankings in order:
    Please Login or Register  to view this content.
    Copy those formulas down as far as you need.

    Using either method...these will be the results:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Create a ranking column

    thanks.

    however, i have a feeling that it is possible without the need for tables. The range will always be D6:E34. Whether all rows will be occupied or not is a different story.

    also is there a way without a helper column?
    surely theres a formula that can be put in columns K and L to give the desired result.

    i didnt think it would be so complicated.

    thanks

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Create a ranking column

    It's more complicated than you think, especially because you can have tie scores. It's probably easier just to copy the entire list into the rankings columns and than just sort by score.

  5. #5
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Create a ranking column

    Hi

    L16
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy down.

    K16
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is array formula, Press same time Ctrl+Shift+Enter, NOT ENTER! Then copy down

    Regard
    micope21
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  6. #6
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Create a ranking column

    LEGEND!!!!!

    Thank you so much micope.
    i had a feeling it was possible.

    youre a star!!!

  7. #7
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Create a ranking column

    one last thing...

    my data results in many "0" to be visible in column L.
    can you please adjust the
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to replace "0" outcomes with blanks.

    thank you

  8. #8
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Create a ranking column

    Hi

    If you wantt 0? See this: ROW($1;1),"") change to this: ROW($1:1),0).

    Regard
    micope21

  9. #9
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Create a ranking column

    i dont want to see "0".
    instead i want the cell to be blank if there is a "0"

    thanks

  10. #10
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Create a ranking column

    Hi

    Should be blank? if you enter 0 next to name then yes it will show up 0 in Ranking order?

  11. #11
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Create a ranking column

    the rows that im pulling the ranking data from has already got formulas in them. half of the formulas have a city associated with it (and so are displayed perfectly)
    the other half, does not yet have a city (its currently N/A). so your ranking formula is still taking the "0" from the rows that dont have a city yet therefore resulting in "0" in the ranking column.

    i was hoping that a tweak can be done to the ranking formula to simply display "0" cells as blanks so we dont have to see them

  12. #12
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Create a ranking column

    in other words is there a
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    version for zeros

  13. #13
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Create a ranking column

    This formula will give you a blank instead showing up 0?

    L16
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

    Regard
    micope21

  14. #14
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Create a ranking column

    thank you
    thank you
    thank you

  15. #15
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Create a ranking column

    You welcome!!!

    Thank you for Reputation!

+ 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. [SOLVED] Ranking up to 15 numbers in column D Ranking skips 7 with a tie at 6 and 2
    By Securitysports in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2013, 07:11 AM
  2. [SOLVED] Ranking numbers in a column from 1 to 15 then stating the rank in another column
    By Securitysports in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-02-2013, 02:09 AM
  3. [SOLVED] How do I create a unique ranking from an array/table of values?
    By pperc15 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 01-17-2013, 06:24 PM
  4. [SOLVED] Create an automatically sorting/ranking list
    By dip11 in forum Excel General
    Replies: 11
    Last Post: 09-14-2012, 06:53 AM
  5. Replies: 3
    Last Post: 10-31-2011, 03:14 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