Solved

Index match formula pulling data from pivot table

Posted on 2014-03-05
5
3,074 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 48

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 31

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 31

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now