Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

pivot tables

ResolvedVersion 2010

Claire has attended:
Excel VBA Intro Intermediate course
Excel Advanced course

Pivot tables

I use Pivot tables already, but I can't automate the last function I need to perform.
If I have two pivot tables (one of internal data and one is external data), they are copied one under the other and I need to find differences between the two, but if I click on a cell in the one macro and subtract from a cell in the other macro, it will return a value, but if I autofill a section from this formula,it doesn't work. The only way the formula will work is if I actually type the cell reference i.e A1-A17, then this can be autofilled, but problem is the pivot table may not have same lines of data everytime. Is there a way I can fix this with VBA or another method?

RE: Pivot tables

Hi Claire

Thanks for getting in touch. This is a piece of PivotTable functionality by design. It's invoking a process called "GetPivotData" - if you look at the formula that's created you'll see that function.

You should try creating another formula but with GetPivotData turned off. To do this, select any cell in the PivotTable. On the ribbon, under the Options menu, click the drop-down arrow for Options, and click the Generate GetPivotData command to turn the feature off or on.

Try building the formula again and you should have a formula you can fill or drag.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Mon 17 Mar 2014: Automatically marked as resolved.

Excel tip:

Applying and removing border from cell in Excel 2010

Did you know the shortcut key for applying and removing the outline border for a cell?

CTRL+SHIFT+& Applies the outline border to the selected cells.
CTRL+SHIFT_ Removes the outline border from the selected cells.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.