+ Reply to Thread
Results 1 to 8 of 8

Index/Match formula not working properly from data in Pivot Tables - HELP!

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Question Index/Match formula not working properly from data in Pivot Tables - HELP!

    I am trying to create a SUMMARY page (tab) that draws data from 3 separate Pivot Tables (generated from downloaded reports).

    Image 2.gif

    However, my Index/Match formulas (i.e.=IFERROR(INDEX(Mileage!$B$2:$B$40,MATCH($A3,Mileage!$A$2:$A$40)),0) in each of the "Mileage", "Gallons" & "Reefer" columns isn't working properly -- meaning it is populating inaccurate data into the STATE rows (notice rows 8 & 9 in picture above ---- it is populating the data for CO into CT & DE when CT & DE should be 0).

    Since the downloaded reports do not include STATES that have no data, ALL the individual states do not appear on my pivot tables, but I need all the individual states on my SUMMARY, even if the data is zero. I'm not sure if this is creating part of the problem or not.

    I've attached my Worksheet.

    Ideally, since the Truck #'s don't appear in the same sequence on each of my Pivot Tables to the sequence in my SUMMARY, I'd like to create a formula that will also find the TRUCK # and match the corresponding "Mileage", "Gallons" & "Reefer" data to the STATE. Find Truck (row 1) and match the data found in the "Mileage", "Gallons" & "Reefer" pivot tables to the corresponding "Mileage", "Gallons" & "Reefer" columns for that truck in the SUMMARY for each of the STATES by Truck. Basically, a multiple criteria index/match formula (which I struggle with). If that makes sense.

    I can't figure out why the basic index/match formula isn't working, nor can I figure out a formula to accomplish the multiple index/match criteria described above.

    Any help and advice would be greatly appreciated! Thank You!
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Index/Match formula not working properly from data in Pivot Tables - HELP!

    "C3"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy paste down


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Re: Index/Match formula not working properly from data in Pivot Tables - HELP!

    Thank you SO much avk!! Can't believe it was so simple (missing the "0" in the match formula)!!! Now if I could only figure out how to do the multiple criteria formula (so I don't have to manually find the correct corresponding Truck column), that would be even better!!

    Thanks again for your help ... at the very least I can accomplish what I need to. YAY!

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Index/Match formula not working properly from data in Pivot Tables - HELP!

    if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved & by clicking the Add Reputation button at the foot of one of their posts.".

  5. #5
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Re: Index/Match formula not working properly from data in Pivot Tables - HELP!

    I added reputation, but didn't want to mark "solved" just yet, in case someone could help figure out the multiple criteria formula request.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Index/Match formula not working properly from data in Pivot Tables - HELP!

    Please try at B2:Vxx

    =IFNA(VLOOKUP($A3,CHOOSE(MATCH(B$2,$B$2:$D$2,),Mileage!$A$2:$I$40,Truck!$A$5:$H$33,Reefer!$A$5:$H$31),MATCH(LOOKUP("Ω",$B$1:B$1),CHOOSE(MATCH(B$2,$B$2:$D$2,),Mileage!$A$1:$H$1,Truck!$A$4:$H$4,Reefer!$A$4:$H$4),),0),"")
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,109

    Re: Index/Match formula not working properly from data in Pivot Tables - HELP!

    Hi
    in order to create an even formula that you can drag along the table - you need:

    1. to change the titles in row 4 , SUMMARY tab to match the names you gave your tabs.
    2. all titles in the tabs Mileage/Truck/Reefer need to start at the same line. I adjusted them to start from line 2

    Then in summary tab use this in B5 and across:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Limor_OP; 12-05-2020 at 11:07 AM.

  8. #8
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Re: Index/Match formula not working properly from data in Pivot Tables - HELP!

    Thank you to all who helped!!! Belinda200, I understood your solution and it works great!!! Thank you so much!!!!!

+ 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 formula not working properly
    By nikhil.mehta in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2020, 06:33 AM
  2. index and match formula extracting data and picture not working
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2019, 02:30 PM
  3. [SOLVED] Index, Match, Row, Small functions are properly not set in my formula
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-09-2016, 04:24 AM
  4. [SOLVED] Sumif with an index formula not working properly
    By Panfergrrl18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2015, 12:49 AM
  5. Index and Match across multiple rows and columns look up not working properly
    By jollyfella in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-09-2015, 12:06 AM
  6. [SOLVED] Multiple IF's & Index/Match - Not working properly
    By Pooger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2015, 04:01 PM
  7. Data Analysis using Index Match or Pivot Tables
    By rbhandair in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-27-2014, 05:23 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