+ Reply to Thread
Results 1 to 5 of 5

Index + aggregate

  1. #1
    Registered User
    Join Date
    02-05-2020
    Location
    Prague, Czech Republic
    MS-Off Ver
    2007
    Posts
    2

    Index + aggregate

    Hi all,

    New guy here.
    In trying to get top x score and assign to correct name. It does work with LARGE function, but table has duplicate values..

    I have tried this but it returns wrong names.


    =INDEX(A$2:A$8;AGGREGATE(15;6;ROW(B$2:B$8)-(ROW(B$2)+1)/(B$2:B$8=E2);COUNTIF(E$2:E2;E2)))

    Anyone knows how to fix this?

    Thanks in advance.
    M.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,780

    Re: Index + aggregate

    F2=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=$E2,ROW($A$2:$A$8)-ROW($A$2)+1),COUNTIF($E$2:E2,E2))),"")

    control+shift+enter

    copy down

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Index + aggregate

    You had one of the brackets in the wrong place, try
    =INDEX(A$2:A$8,AGGREGATE(15,6,(ROW(B$2:B$8)-ROW(B$2)+1)/(B$2:B$8=E2),COUNTIF(E$2:E2,E2)))

  4. #4
    Registered User
    Join Date
    02-05-2020
    Location
    Prague, Czech Republic
    MS-Off Ver
    2007
    Posts
    2

    Re: Index + aggregate

    it works, thanks a lot guys!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Index + aggregate

    You're welcome & thanks for the feedback

+ 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. [SOLVED] Index/Aggregate formula calculates correct row but does not yield name from Index array
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 05:07 PM
  2. [SOLVED] Index & aggregate
    By elatreille in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2019, 08:22 AM
  3. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  4. [SOLVED] Create List - Index Match or Index Aggregate or other?
    By bambamclint in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-10-2019, 01:30 PM
  5. [SOLVED] INDEX-AGGREGATE with OR criteria
    By Glenn Kennedy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-16-2018, 09:32 AM
  6. Index, Aggregate, Row - Removing Duplicate W/ Index Help
    By adbexcel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-04-2016, 03:53 PM
  7. INDIRECT, INDEX, AGGREGATE?? Help!
    By bbr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-26-2013, 08:03 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