+ Reply to Thread
Results 1 to 3 of 3

Top 5 numbers from N number of rows for different entity

  1. #1
    Registered User
    Join Date
    06-10-2014
    Posts
    2

    Top 5 numbers from N number of rows for different entity

    Top 5 number from N number of rows.png

    Hi please go through the following and would be great if anybody share the solution.(Top 5 rows for respective entities,If entity row count<5 then ranking for all row against that entity)

    Entity Value Top 5 rank value
    A 14
    A 9.4
    A 23.2 3
    A 11.2
    A 17 5
    A 23.4 2
    A 21 4
    A 2
    A 55 1
    B 34.4 1
    B 4 4
    B 22.4 2
    B 11.3 3
    B 2 5
    C 2
    C 12 2
    C 5
    C 8 5
    C 1
    C 12 2
    C 23 1
    C 7
    C 11 3
    C 10 4
    C 6
    D 5 2
    D 2 3
    D 12 1
    Last edited by TanvirQoS; 06-10-2014 at 02:19 AM. Reason: attachement

  2. #2
    Registered User
    Join Date
    06-10-2014
    Posts
    2

    Re: Top 5 numbers from N number of rows for different entity

    please check the attahment for better understanding

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Top 5 numbers from N number of rows for different entity

    With your data in A1:B28

    use in C1
    =IF(SUMPRODUCT(($A$1:$A$28=A1)*($B$1:$B$28>B1))+1>5,"",SUMPRODUCT(($A$1:$A$28=A1)*($B$1:$B$28>B1))+1)

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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: 1
    Last Post: 02-16-2014, 05:45 AM
  2. [SOLVED] Weighted average per entity
    By pitinswiss in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-05-2013, 04:27 AM
  3. [SOLVED] (How to) Transpose one long list of numbers in CSV file to a number of rows
    By sfmatt13 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-30-2012, 07:35 PM
  4. Merging sheets based on Entity number.
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-10-2008, 03:00 PM
  5. Chart using entity ID.
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2007, 03:42 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