Adjusting Pivot Table source data based on cell value

jwarren73

New Member
Joined
Jan 22, 2015
Messages
37
I'm trying to adjust a reporting file that currently looks at raw data for a one week period and generates reports through pivot tables. Each week's source data has to be on its own sheet, so traditionally, a new file is created each week. Other parts of the file generate data on a two week period, so I'm trying to adjust the file so that everything works across two weeks for consistency - if pivot tables would let me use a formula for this it would be easy, but I'm far from fluent enough in vb to code a solution.

Date selection will be a drop-down in Reports!E4. PivotTable2 and PivotTable4 need to be able to look at this date, and set the source as Data!$A:$M for the first 7 selections, or Data Week 2!$A$M for selections 8-14.

Any suggestions would be greatly appreciated.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,216,426
Messages
6,130,547
Members
449,584
Latest member
kennysmith1

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