extend formulas when pivot table length changes?

mcgew

Board Regular
Joined
Sep 4, 2002
Messages
75
I have a pivot table, and then a column of vlookup formulas referring to it, to the right.
rather than have vlookups in every cell in that column (i want to keep my file size down) - i would like the formulas to extend to the end of the pivot table, and match it if changed when refreshed.
Any ideas?

Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,427
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
You can use code in the worksheet's pivottableupdate event for this. What is the formula you want?
 
Upvote 0

Fazza

MrExcel MVP
Joined
May 17, 2006
Messages
9,368
Maybe not relevant, but perhaps you can use a query table instead of a pivot table? It has an option to fill down formulas automatically. So the formulas extend automatically with refreshing the query table. (This then doesn't need VBA.)

However a query table does not have the wonderful dynamic flexibility of a pivot table.

HTH, Fazza
 
Upvote 0

z3115

Board Regular
Joined
Nov 1, 2013
Messages
71
I realize this is an old post, but did anyone ever find a solution? I am in the same situation, and I am working with a lot of pivot tables and rows of data, so I as hoping to find a less manual way.

I have a pivot table, and then a column of vlookup formulas referring to it, to the right.
rather than have vlookups in every cell in that column (i want to keep my file size down) - i would like the formulas to extend to the end of the pivot table, and match it if changed when refreshed.
Any ideas?
 
Upvote 0

Forum statistics

Threads
1,191,558
Messages
5,987,274
Members
440,087
Latest member
Ruppert23

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
Top