+ Reply to Thread
Results 1 to 3 of 3

getting duplicated values depending on rank order

  1. #1
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    getting duplicated values depending on rank order

    Here I make example with small function but doesn't need to be it.

    So, I have some names and values.
    Rank function give me order for those values.

    Small function gives me ascending order.

    I want to get first n (let say 5) values back next to each other but can't use VLOOKUP function because sometimes I get duplicates (red numbers).

    If there is more same numbersthat small function returns... It need to give me all of them, no matter 5 is limit...

    So I guess, only question is how to get back values of rank function that are duplicated.

    Book1.xls

    Edit: Values changes every day so can't use filter and just sort them...
    Last edited by zbor; 05-28-2009 at 03:28 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: getting duplicated values depending on rank order

    If you can add a helper...

    D2: =$C2+(COUNTIF($C$2:$C2,$C2)/1000000)
    copy down

    F2: =INDEX(A:A,MATCH(E2+(COUNTIF($E$2:$E2,$E2)/1000000),$D:$D,0))
    copy down

    this approach avoids need for Arrays.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: getting duplicated values depending on rank order

    Yup, that worked
    let me test it further

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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