GETPIVOTDATA() Help

BrianM

Well-known Member
Joined
Jan 15, 2003
Messages
768
Office Version
  1. 2016
Platform
  1. Windows
I'm not sure how to use the GETPIVOTDATA() function or if it will do what I'm looking for. I just want to subtract the amount in the pivottable by 6. Or should I just use =C4-6

Thanks,
Brian
Worksheet in Basis (1)
BCDE
2Count of Material
3MaterialTotal
41154443529
51155152829
61168602029
7Grand Total8329
Sheet2
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If you don't want it don't use it - view toolbars / pivot table toolbar - use the GetPivotData icon to turn it off.
 
Upvote 0
It's not that I don't want to use it, but want to understand it. When I copy it down it appears to be absolute; nothing changes. Can GETPIVOTDATA() do this, or is it not intended for this type of equation?

Thanks,
Brian
 
Upvote 0
You need to remove most if not all of the constants in a getpivotdata statement, if you want to copy/paste the formula to other cells.

Typically, I would change yours to read

=GETPIVOTDATA("Material",$B$2,$B$3,B4) - 6

The first parameter is the fieldname of the total column whose value you are returning, the 2nd is a constant that identifies the pivottable to use, 3rd and 4th are the attributes you are filtering on.

You can use INDIRECT($F$1) in place of $B$2 to have an additional criteria to choose from among several pivottables, instead of hardcoding to just one. The cell F1 must evaluate to an address that falls within a pivottable or an error results.

If you substitute a formula for the first parameter, the formula must evaluate to the name of a column in the data area (check the Wizard,Layout to see what columns can be used).
 
Upvote 0
By the way, I forgot to mention that getpivotdata() works exceptionally well in Excel 2003. I didn't use it much in 2002, and could not get it to do anything useful in 2000.
 
Upvote 0

Forum statistics

Threads
1,203,514
Messages
6,055,842
Members
444,828
Latest member
StaffordStag

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