+ Reply to Thread
Results 1 to 5 of 5

Index(Match) on a Pivot table duplicating last true value instead of returning blank

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    tacoma, wa
    MS-Off Ver
    excel 2010
    Posts
    53

    Index(Match) on a Pivot table duplicating last true value instead of returning blank

    I am quite lost here. I have asked Google in every way I know how to no avail.

    I have the formula: =IFERROR(INDEX(Pivots!$F$11:$F$30,MATCH(TRIM(Export!H11),Pivots!$A$11:$A$30)),"")


    It's matching the value on a worksheet EXPORT and looking for it on worksheet PIVOT. The problem is that when there is no match on the pivot that the export sheet is looking for instead of returning a blank, it returns the next value above that does have a match. (if shop 57 exists on the export tab where the formula lives and not on the pivot tab but shop 56 exists on both, shop 57 will return shop 56's pivot value throwing off the subtotal)

    I know a workbook is preferred but I work for the DoD and would have to strip everything that makes up the pivot table rendering it useless anyway.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index(Match) on a Pivot table duplicating last true value instead of returning blank

    Maybe this...

    =IFERROR(INDEX(Pivots!$F$11:$F$30,MATCH(TRIM(Export!H11),Pivots!$A$11:$A$30,0)),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Index(Match) on a Pivot table duplicating last true value instead of returning blank

    =IFERROR(INDEX(Pivots!$F$11:$F$30,MATCH(TRIM(Export!H11),Pivots!$A$11:$A$30,0)),"")

    You need Match(value, array, 0) for exact match
    Frob first, tweak later

  4. #4
    Registered User
    Join Date
    08-02-2013
    Location
    tacoma, wa
    MS-Off Ver
    excel 2010
    Posts
    53

    Re: Index(Match) on a Pivot table duplicating last true value instead of returning blank

    yep! that worked perfectly.

    I had resorted back to vlookups......

    Thank you both!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index(Match) on a Pivot table duplicating last true value instead of returning blank

    You're welcome. We appreciate 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, Match, or VLoopup? Returning a table value based on criteria from two drop down's
    By jkwlvsky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2015, 06:40 PM
  2. Replies: 2
    Last Post: 12-18-2014, 09:52 AM
  3. [SOLVED] Index Match Match returning incorrect value from table
    By DaveBre in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2014, 08:01 PM
  4. [SOLVED] Index/Match/Large Duplication of items; not returning true values
    By Darren_Rix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2013, 07:27 AM
  5. Excel 2007 : Index, Match, True returning #NA??
    By Martin Chamberlin in forum Excel General
    Replies: 1
    Last Post: 10-08-2011, 02:20 PM
  6. Excel 2010 Pivot Table Returning Count of Blank Cells
    By snikrs11 in forum Excel General
    Replies: 0
    Last Post: 03-07-2011, 04:45 PM
  7. [SOLVED] Returning row # using match or index of repeated text in a complex table
    By General in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2005, 11:05 AM

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