View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.setup
Roger Govier[_3_] Roger Govier[_3_] is offline
external usenet poster
 
Posts: 2,480
Default 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?