ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Setting up and Configuration of Excel (https://www.excelbanter.com/setting-up-configuration-excel/)
-   -   How to Use pivot tables in a calculation (https://www.excelbanter.com/setting-up-configuration-excel/213335-how-use-pivot-tables-calculation.html)

Mervyn Thomas[_2_]

How to Use pivot tables in a calculation
 
I have some data in a pivot table which I want to use in a calculation but
when I try to key off a cell in the table the new cell is a calculation
....GetPivotTable....... and it is impossible to drag this cell down to
other cells that correspond to other cells in the pivot table.
Am I explaining myself??
Or: How do I refer to the contents of a cell in a pivot table?



Max

How to Use pivot tables in a calculation
 
Manually type a simple link formula
which points to the top left cell within the pivot, eg: =B5
Then you can copy it across/down as required

Debra explains how to switch the feature off he
http://www.contextures.com/xlPivot06.html
Excel -- Pivot Tables -- GetPivotData
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:365 Subscribers:65
xdemechanik
---
"Mervyn Thomas" wrote:
I have some data in a pivot table which I want to use in a calculation but
when I try to key off a cell in the table the new cell is a calculation
....GetPivotTable....... and it is impossible to drag this cell down to
other cells that correspond to other cells in the pivot table.
Am I explaining myself??
Or: How do I refer to the contents of a cell in a pivot table?



Roger Govier[_3_]

How to Use pivot tables in a calculation
 
Hi Mervyn

You can replace the direct row names in the GetPivotData formula, with the
cell reference that contains the name.
Then, as you copy down, the formula adjusts to suit the row name.
The same applies to columns.

Take a look at the help on this function at
http://www.contextures.com/xlPivot06.html

It just takes a little while to get used to tweaking the GetPivotData
function, but it is far better than using direct cell references, as there
is no guarantee that the references will remain th same after additions to
the source data and a Refresh.

--
Regards
Roger Govier

"Mervyn Thomas" wrote in message
...
I have some data in a pivot table which I want to use in a calculation but
when I try to key off a cell in the table the new cell is a calculation
...GetPivotTable....... and it is impossible to drag this cell down to
other cells that correspond to other cells in the pivot table.
Am I explaining myself??
Or: How do I refer to the contents of a cell in a pivot table?



All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com