Index match formula pulling data from pivot table

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
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

route217JuniorAuthor 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)),"")

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

route217JuniorAuthor Commented:
Thanks for the feedback
Rob HensonFinance AnalystCommented:
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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
Or, extract the result you want from the source data rather than the pivot using SUMIFS function.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.