Jamsandwich
New Member
- Joined
- Sep 25, 2014
- Messages
- 44
Hey guys,
I am currently using the below formula to pull data from a pivot table -
However, the column that I want to get the data from may be dynamic. As an example, I may have 5 columns in my new table: AB, CH, FR, BL, RN. Columns in the pivot table will have the same headers, but not necessarily in the same order, and it is possible that the order may change. So a GETPIVOTDATA formula that looks at the specific column header is required.
I now have -
My next problem is the row reference in that formula. The rows are dynamic too. Currently the "StopTime" column goes from 01-Mar to 15-Jun but these will change each time the workbook is updated, rendering my formulas useless on the new table.
Is it possible to reference row numbers as part of the GetPivotTable function, instead of "StopTime" & "Years"?
I am currently using the below formula to pull data from a pivot table -
Code:
=PivotSheet!J5
However, the column that I want to get the data from may be dynamic. As an example, I may have 5 columns in my new table: AB, CH, FR, BL, RN. Columns in the pivot table will have the same headers, but not necessarily in the same order, and it is possible that the order may change. So a GETPIVOTDATA formula that looks at the specific column header is required.
I now have -
Code:
=GETPIVOTDATA("Rejects",PivotSheet!$A$3,"Code","CH",[COLOR=#ff0000]"StopTime",61,"Years",2016[/COLOR])
My next problem is the row reference in that formula. The rows are dynamic too. Currently the "StopTime" column goes from 01-Mar to 15-Jun but these will change each time the workbook is updated, rendering my formulas useless on the new table.
Is it possible to reference row numbers as part of the GetPivotTable function, instead of "StopTime" & "Years"?