# Index match formula pulling data from pivot table

on
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
Comment
Watch Question

Do more with

EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Junior

Commented:
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)),"")
Top Expert 2016

Commented:
Hi,

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

Regards
Junior

Commented:
Thanks for the feedback
Finance Analyst
Commented:
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
Finance Analyst

Commented:
Or, extract the result you want from the source data rather than the pivot using SUMIFS function.

Do more with