Solved

Index match formula pulling data from pivot table

Posted on 2014-03-05
5
3,224 Views
Last Modified: 2014-03-11
Hi Experts Excel 2007

I am using the following formula =IFERROR(INDEX(J:j,MATCH(B1,C:C,0)) +INDEX(J:j,MATCH(B1,D:D,0)) +INDEX(J:j,MATCH(B1,H:H,0)),"")

How every the formula sometime does not read the data from the pivot table if the order of the data changes....looking to make this dynamic
             01.01.2014.        02.01.2014.       03.01.2014.      04.01.2014.       05.01.2014
Labels
Abc
Def
Ghi
Jkl
0
Comment
Question by:route217
  • 2
  • 2
5 Comments
 

Author Comment

by:route217
ID: 39907728
Ok here's a more realistic index match formula...

=IFERROR(INDEX('Pivot '!$B$3:$AZ$14,MATCH($A$154,'Pivot '!$B$3:$B$14,0),MATCH(D152,'Pivot '!$B$2:$AZ$2))+
INDEX('Pivot '!$B$3:$AZ$14,MATCH($A$155,'Pivot '!$B$3:$B$14,0),MATCH(D152,'Pivot '!$B$2:$AZ$2))+ INDEX('Pivot '!$B$3:$AZ$14,MATCH($A$156,'Pivot '!$B$3:$B$14,0),MATCH(D152,'Pivot '!$B$2:$AZ$2)),"")
0
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 39908578
Hi,

Not all your match functions have a matchtype 0, it assumes MatchType 1( thus the data being in ascending order)

Regards
0
 

Author Comment

by:route217
ID: 39908690
Thanks for the feedback
0
 
LVL 32

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 39910769
You can also use GETPIVOTDATA function.

To see the syntax, type = in a cell and then select a value from within the pivot. Press enter, the selection criteria for the pivot data will be hardcoded in the formula but can be changed to cell references containing the pivot field name and the pivot field value.

Thanks
Rob
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 39910781
Or, extract the result you want from the source data rather than the pivot using SUMIFS function.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question