Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Index match formula pulling data from pivot table

Posted on 2014-03-05
Medium Priority
4,280 Views
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
Question by:route217
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2
• 2

Author Comment

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 53

Expert Comment

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

ID: 39908690
Thanks for the feedback
0

LVL 33

Accepted Solution

Rob Henson earned 2000 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 33

Expert Comment

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

## Featured Post

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month8 days, 20 hours left to enroll