Pivot Help - GetPivotData for a value split into two pieces

Roseus

Board Regular
Joined
Dec 20, 2010
Messages
87
I have a Pivot of monthly data. For a subset of my team, I need to use weekly data. I have the Week data as a row label under Month:

Sum of Sales
Agent's Name
...1 (Month)
.......2 (Week)
.......3 (Week)
.......4 (Week)
.......5 (Week)
.......6 (Week)
...2 (Month)
.......6 (Week)
.......7 (Week)
.......8 (Week)
.......9 (Week)
.......10 (Week)

The problem comes in at Week 6. Because it is split between Month 1 and 2, I cannot get it to return the total value.

I of course cannot simply order the data by Week number, because I'd encounter the same problem with my Monthly data.

I'd like to avoid having to create a second pivot, due to the size.

Below is the stripped down formula. Can anyone make it work? Or help me in a different direction to the same result? Thanks!

Code:
=GETPIVOTDATA("Sum of Sales Count",$A$5,"Agent",BM5,"Week Num","6")
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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