Auto Filling cells based on reference in pivot table

gunsofbrixton001

New Member
Joined
Jun 13, 2011
Messages
1
Hello,

I've been developing a front end report based on a MSQuery data feed, populating a Pivot Table. I have calculations in columns off to the end of the Pivot Table that generate custom metrics (from the table). Based on the previous day's data, the pivot table changes in size (number of rows). I want to find a way (VBA or otherwise) that will autofill calculations downwards based on whether or not a pivot table is populating the same row.

I was thinking something close to a dynamic range would accomplish this, but I don't have the insight to do it.

Thus far, my solution has simply been to include a conditional 'If' within each forumla. For instance, I would include "=IF(F11="","",SUM(G11,H11,I11)/86400)" for each calculation and fill down the max number of rows that I thought the report would ever necessitate. This however, makes the workbook about 34megs in size, so I'm looking for an alternative.

The report is also sitting on a SharePoint so I want to have the size as small as possible. Having a dynamic reference of calculations that would autofill down based on whether or not the Pivot Table filled its respective row would solution this.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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