+ Reply to Thread
Results 1 to 6 of 6

INDEX MATCH function not working on filtered pivot

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

    INDEX MATCH function not working on filtered pivot

    Stuck again.

    I have a pivot table of people's user ID, name and scores. I'm then using a table to find the top five highest and lowest scorers.
    I'm using an index match formula to find the user ID associated to the top and bottom scores.

    When the pivot isn't filtered, both tables work fine.
    When the pivot is filtered on month, year or both, the bottom five table kicks off. No idea why.

    Both formulae for looking up the top and bottom five are identical with the exception of (LARGE(INDEX and (SMALL(INDEX so I don't understand the issue.

    My formula, and spreadsheet are attached.

    PHP Code: 
    =INDEX($A$9:$A$120,MATCH(SMALL(INDEX($D$9:$D$120+1/ROW($D$9:$D$120),0),$N9),INDEX($D$9:$D$120+1/ROW($D$9:$D$120),0),0)) 
    Attached Files Attached Files

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX MATCH function not working on filtered pivot

    When you select a month and/or a year then the table shrinks, but the formula is still looking at the entire table.
    That means that the rows between the last row with data and row 120 are empty. But something makes Excel think there some small value in it.
    End of it all is that the match function is looking for a value which is not there. That gives an #N/A error.
    To avoid these "ghost values" change the formula to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Notice the brackets meaning it's an array formula. Close it with [Ctrl]+[Shift]+[Enter]
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

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

    Re: INDEX MATCH function not working on filtered pivot

    Great! That's worked perfectly. Thanks! :-)

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: INDEX MATCH function not working on filtered pivot

    Glad I could help. Thx for the rep

  5. #5
    Registered User
    Join Date
    11-28-2017
    Location
    viale tyres
    MS-Off Ver
    2013
    Posts
    1

    Re: INDEX MATCH function not working on filtered pivot

    Hi

    Could I continue on this post? I have the same problem
    {=INDEX('CM Pvt by ITNO'!$G$6:$G$3138,MATCH('BL-FA'!$C7&'BL-FA'!$E7,'CM Pvt by ITNO'!$B$6:$B$3138&'CM Pvt by ITNO'!$C$6:$C$3138),0)}

    Thanks.

    Regards
    h0raz0n

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: INDEX MATCH function not working on filtered pivot

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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/Match for Filtered result
    By FarEast07 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2016, 04:51 AM
  2. [SOLVED] Index, Match & And function doesn't seem to be working when there is duplicate data
    By penexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-26-2013, 07:08 PM
  3. Index and Match function not working
    By Ystar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-02-2013, 07:11 AM
  4. Replies: 2
    Last Post: 05-24-2013, 09:32 AM
  5. [SOLVED] Index/Match Function not working
    By melnemac32 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2013, 07:11 AM
  6. [SOLVED] ISNA with INDEX(MATCH) function not working
    By wyndland in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-22-2013, 11:37 PM
  7. Index-Match Function Not Working all the time
    By hoosierhunter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-08-2007, 06:58 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