+ Reply to Thread
Results 1 to 4 of 4

Formula to find label for top five values using INDEX / AGGREGATE

  1. #1
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Formula to find label for top five values using INDEX / AGGREGATE

    Good morning,

    I have a pivot table with phone call and email audit scores. I want to automatically find the top five scores per month. So I can use an =LARGE sum for the number, but then finding the associated label is causing me issues.
    I can't use a vlookup to the value because the values can be identical. I found a YouTube video which shows a workaround, but I've done something wrong as my formula is finding the wrong label for the value.

    I've attached a spreadsheet with my pivot which shows the label in column A (e.g. Greeting), and the score for email and phone in columns B and C. The two adjacent tables show the top five issues for phone and email (or should be), so next month I can refresh my pivot and hey presto! The tables update.

    Please help!

    Jemma
    Attached Files Attached Files
    Last edited by heytherejem; 07-10-2017 at 05:34 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Formula to find label for top five values using INDEX / AGGREGATE

    No file attached.

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to find label for top five values using INDEX / AGGREGATE

    f3=INDEX($A$5:$A$48,MATCH(LARGE(INDEX($B$5:$B$48+1/ROW($B$5:$B$48),0),$E3),INDEX($B$5:$B$48+1/ROW($B$5:$B$48),0),0))
    j3=INDEX($A$5:$A$48,MATCH(LARGE(INDEX($C$5:$C$48+1/ROW($C$5:$C$48),0),$I3),INDEX($C$5:$C$48+1/ROW($C$5:$C$48),0),0))
    Tryt this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: Formula to find label for top five values using INDEX / AGGREGATE

    @nflsales - you, are a legend. It works!

    Thank you

+ 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. Index/Aggregate Function for Lookup
    By VirenS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2017, 12:09 PM
  2. Index Aggregate Troubleshoot
    By VirenS in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-16-2016, 07:32 AM
  3. Index/Aggregate Function for Lookup
    By VirenS in forum Excel General
    Replies: 0
    Last Post: 06-16-2016, 04:28 AM
  4. Convert INDEX, AGGREGATE to Macro
    By VirenS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2016, 02:08 PM
  5. Index Formula to find Multiple Values not working
    By cost9170 in forum Excel General
    Replies: 4
    Last Post: 03-18-2016, 04:35 PM
  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

Tags for this Thread

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