+ Reply to Thread
Results 1 to 3 of 3

Rank Ascending.

  1. #1
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Rank Ascending.

    Ok, I have a list of names and how many items each name has. I want to rank them from most to less. Done that. But when the more than one name has the same value I want them sorted ascending. I am getting them descending. I can't figure out what I am doing wrong.

    Column A Name
    Column B Has

    Column D I Ranked
    Column E shows me how many

    Column G is the correct order of rank I am looking for.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Re: Rank Ascending.

    I figure it out, I changed.
    =IFERROR(LOOKUP(2,1/(LARGE(INDEX(RANK($B$2:$B$27,$B$2:$B$27,1)*9^9+ROW($B$2:$B$27),),ROW(A1))=(INDEX(RANK($B$2:$B$27,$B$2:$B$27,1)*9^9+ROW($B$2:$B$27),))),$A$2:$A$27),"")

    to

    =IFERROR(LOOKUP(2,1/(SMALL(INDEX(RANK($B$2:$B$27,$B$2:$B$27,0)*9^9+ROW($B$2:$B$27),),ROW(A1))=(INDEX(RANK($B$2:$B$27,$B$2:$B$27,0)*9^9+ROW($B$2:$B$27),))),$A$2:$A$27),"")

    and got what I was looking for.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Rank Ascending.

    An afterthought.

    Glad to hear you found solution. I case it's helpful another way could be with a helper column.

    In the attached column C ... it can be anywhere or hidden for aesthetics ... this ranks the number of items.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then in the Rank column J this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then use your VLOOKUP formula in column K
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Dave

+ 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. Replies: 2
    Last Post: 04-27-2015, 08:50 AM
  2. Replies: 8
    Last Post: 02-20-2014, 07:03 PM
  3. Replies: 6
    Last Post: 11-30-2013, 09:14 AM
  4. Replies: 1
    Last Post: 11-30-2013, 06:48 AM
  5. Rank values in ascending order
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-10-2011, 02:56 PM
  6. Replies: 7
    Last Post: 11-23-2010, 06:28 PM
  7. Replies: 1
    Last Post: 08-15-2005, 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