+ Reply to Thread
Results 1 to 4 of 4

Ranking with Duplicates

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Ranking with Duplicates

    Hi,

    I have data arranged as follows:

    Column A: Names of Products
    Column B: Number of units sold of Product

    I would like to create a formula (no helper columns, ideally) to extract from columns A and B the value of the 10 largest numbers in column B and their names from column A. This is easy enough using the LARGE () function on column B to identify the 10 largest values and then INDEX/MATCH to extract the associated names from column A.

    The problem arises when there are duplicate values in column B as the INDEX/MATCH formula returns the same name for the duplicate values.

    Can someone please suggest a solution?

    Thanks!
    Last edited by andrewc; 07-25-2013 at 08:03 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Ranking with Duplicates

    Hi

    1 way could be this.

    =LARGE($B$2:$B$1000;ROW(A1))

    =INDEX($A$2:$A$628;SMALL(IF($B$2:$B$628=E2;ROW($B$2:$B$628)-ROW($B$2)+1);COUNTIF(E$2:E2;E2)))
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Ranking with Duplicates

    Thank you!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Ranking with Duplicates

    ........................

+ 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. Count the duplicates by ranking them
    By adaws in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-12-2013, 12:03 AM
  2. ranking w/ duplicates
    By janeml in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2013, 07:02 PM
  3. [SOLVED] ranking without duplicates
    By luke11111 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2013, 09:15 AM
  4. [SOLVED] Ranking with sumproduct without duplicates
    By luke11111 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2013, 02:37 PM
  5. Replies: 6
    Last Post: 06-01-2010, 06:19 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