+ Reply to Thread
Results 1 to 9 of 9

Ranking and Sorting Alphanumeric Data for Top 10 list

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

    Ranking and Sorting Alphanumeric Data for Top 10 list

    Hello there,

    My 1st post here so I thank-you in advance for trying to help.

    I'm trying for my cricket spreadsheet to find the Top 10 Not Out scores plus regular scores from same column along with the perople's names. Some of these cells have an "*" in the same cell,(representing a Not Out score), as the score so if a cell has the same number as a cell with an "*" then the cell with the "*" would be placed above it. I have a column A (names) and column B(alphanumeric data).

    Example only (using 11 names)

    COL A COL B

    Bob 40
    John 55*
    Paul 40*
    Hank 21
    Chuck 35
    Walt 75
    Chris 55
    Jabba 21
    Tim 80
    Stuart 36*
    Roy 35*


    Thanks!
    Last edited by uknusa; 06-29-2019 at 10:01 AM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    ARRAY formula in F3

    =IFERROR(INDEX($A$2:$A$12,SMALL(IF(G3&"*"=$B$2:$B$12,ROW($B$2:$B$12),""),COUNTIF($G$3:$G3,$G3))-ROW($A$2)+1),"")

    ARRAY formula in G3

    =IFERROR(LARGE(IF(RIGHT($B$2:$B$12,1)="*",0+SUBSTITUTE($B$2:$B$12,"*",""),""),ROWS($G$3:$G3)),"")

    ARRAY formula in J3

    =IFERROR(INDEX($A$2:$A$12,SMALL(IF(K3=$B$2:$B$12,ROW($B$2:$B$12),""),COUNTIF($K$3:$K3,$K3))-ROW($A$2)+1),"")

    Formula in K3

    =IFERROR(LARGE($B$2:$B$12,ROWS($K$3:$K3)),"")

    Copy down all.

    How ARRAY formula is entered

    Paste Formula in the cell.
    Press F2
    Hold Shift+ Ctrl Keys and hit Enter key.
    Now the formula is surrounded by {} by excel.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

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

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    Thanks for the swift reply. The only thing is, sorry if I wasn't clear, I would like all the "not outs" in the same list(column) as the "outs", but also to INCLUDE the "*" not removed as was the case in the spreadsheet you compiled.

    Thanks again.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    I read this differently!!

    i assumed that ONE list was required, with Not Outs appearing above the Outs. Easily done with a helper column (which can be hidden).

    helper:
    =IF(ISNUMBER(SEARCH("~*",B3)),SUBSTITUTE(B3,"*","")+0+ROW()/100000000,SUBSTITUTE(B3,"*","")+0)+ROW()/10000000000
    Then this, copied across and down.
    =INDEX(A$3:A$13,MATCH(LARGE($C$3:$C$13,ROWS($1:1)),$C$3:$C$13,0))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    Thanks Glenn! Looks spot on. I will give it a try!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    Or (minus helper column), an array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    With data in A2:B12

    Please try at
    D2:E12
    =INDEX(A:A,MOD(SMALL(INDEX(ROW($B$2:$B$12)-SUBSTITUTE($B$2:$B$12,"*",".1")*10000,),ROWS(D$2:D2)),1000))
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    post deleted.
    Last edited by kvsrinivasamurthy; 06-29-2019 at 11:43 PM.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Ranking and Sorting Alphanumeric Data for Top 10 list

    Post deleted.
    Last edited by kvsrinivasamurthy; 06-29-2019 at 11:41 PM.

+ 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. Sorting a list by a set ranking
    By Lucydeford in forum Excel General
    Replies: 4
    Last Post: 09-05-2017, 06:05 PM
  2. [SOLVED] Sorting alphanumeric data
    By Ujjwal048 in forum Excel General
    Replies: 10
    Last Post: 12-11-2014, 11:41 AM
  3. Sorting Alphanumeric Data
    By drgogo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-06-2013, 02:20 PM
  4. Need Help on Sorting alphanumeric data.
    By mahesh1987 in forum Excel General
    Replies: 12
    Last Post: 12-24-2012, 10:02 AM
  5. [SOLVED] Create an automatically sorting/ranking list
    By dip11 in forum Excel General
    Replies: 11
    Last Post: 09-14-2012, 06:53 AM
  6. [SOLVED] Sorting numeric and alphanumeric data
    By scokaw in forum Excel General
    Replies: 7
    Last Post: 08-21-2012, 09:00 AM
  7. sorting an alphanumeric list - please someone help!
    By Joanne in forum Excel General
    Replies: 1
    Last Post: 04-27-2005, 11:06 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