Referencing Pivot Tables correctly using Index/Match

ExcelAtEverything

Active Member
Joined
Jan 30, 2021
Messages
351
Office Version
  1. 2019
Platform
  1. Windows
I have Pivot Tables which will expand & retract over time depending on the current information loaded into them. There are times when I am using Index/Match to retrieve info from the Pivot Table, as opposed to GETPIVOTDATA. What I am noticing however is that when I select the array for the Index or Match formula (& select the entire range from left side of table all the way to the right side in any given row), sometimes it selects actual cell references, and sometimes it gives me actual table references. This is confusing to me because I thought that as long as I copied the entire row, that my formulas that reference this Pivot Table would expand or retract to match the Pivot Table info (as the info increased or decreased in number of cells over time). So when I am seeing cell references it's making me think that it is going to expand when the data does. Can anyone help me understand this?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
and sometimes it gives me actual table references
That only happens when you select a single cell in the pivot table, more than one cell selected will give you regular cell references.

Is there any reason why you can't use GETPIVOTDATA for all instead of trying to use INDEX and MATCH for some?
 
Upvote 0
Yes. Here is the short thread explaining th answer to your question.
 
Upvote 0
What I just sent there is just a link to another thread I have going here where I am having problems using GETPIVOTDATA for this same issue.
 
Upvote 0

Forum statistics

Threads
1,223,718
Messages
6,174,077
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top