+ Reply to Thread
Results 1 to 4 of 4

Ranking and sorting a number with a dash, but not logically

  1. #1
    Registered User
    Join Date
    08-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Ranking and sorting a number with a dash, but not logically

    Hello again.

    Still to do with this cricket thing I have bugging me. I need to rank and sort a TOP 10 Best Bowling Figures, for some players. The 1st number before the "-" in Col B represents wickets. The higher the better so the highest here would always qualify for the list. The 2nd number after the "-" represents the number of runs given(against). The lower number here should appear above the higher number if it has the same number wickets taken to someone else.

    EXAMPLE (using 11 names and figures):

    Col A Col B
    Walt 5-50
    Tim 2-22
    John 4-34
    Hank 4-33
    Jabba 3-45
    Stuart 4-40
    Chris 3-41
    Chuck 3-56
    Roy 5-49
    Paul 2-20
    Bob 4-18

    What I want the Top 10 to end up as must look like this:

    ROY 5-49
    Walt 5-50
    Bob 4-18
    Hank 4-33
    John 4-34
    Stuart 4-40
    Chris 3-41
    Jabba 3-45
    Chuck 3-56
    Paul 2-20

    Thanks for your help!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Ranking and sorting a number with a dash, but not logically

    1. Data-->Text to Columns, Delimiter is "-"
    2. Highlight all columns
    3. Data-->Sort. Column B--Highest to lowest, column C Lowest to Highest
    4. In Column D. concatenate Columns B and C with a separator "-"
    5. In column D, Copy and Paste Special (Values) to Column D (on top of itself)
    6. Delete columns B and C.


    v A B
    1 Roy 5-49
    2 Walt 5-50
    3 Bob 4-18
    4 Hank 4-33
    5 John 4-34
    6 Stuart 4-40
    7 Chris 3-41
    8 Jabba 3-45
    9 Chuck 3-56
    10 Paul 2-20
    11 Tim 2-22
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Ranking and sorting a number with a dash, but not logically

    hi, my proposition:
    Please Login or Register  to view this content.
    Best regards,
    Maras

  4. #4
    Registered User
    Join Date
    08-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Ranking and sorting a number with a dash, but not logically

    Thanks for you help. In the end I came up with another way although not automated which I would of preferred.

    1. I pulled the Top 10 into an automated range.
    2. I then pasted values only into a new range.
    3. I simply renumbered from 1 to 10 and then sorted manually by using the 1 to 10 numbering

    Thanks though.

+ 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] Number dash number interpreted as Date
    By kc27315 in forum Excel General
    Replies: 3
    Last Post: 11-16-2018, 02:29 PM
  2. [SOLVED] extract number after second dash
    By L.LEE in forum Excel General
    Replies: 3
    Last Post: 11-13-2018, 09:59 AM
  3. [SOLVED] Add a Dash to a Number
    By woodsedge in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2018, 07:31 PM
  4. Sorting Text, Dash and Number combination
    By NormT in forum Excel General
    Replies: 2
    Last Post: 01-03-2016, 08:56 PM
  5. Sorting Number Pairs containing a dash
    By smaxwell in forum Excel General
    Replies: 1
    Last Post: 02-11-2015, 05:34 PM
  6. [SOLVED] Sorting disregards dash
    By nsv in forum Excel General
    Replies: 4
    Last Post: 03-18-2014, 08:21 AM
  7. hi:logically word
    By AGROTRON in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2006, 08:00 AM

Tags for this Thread

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