Can I pull multple months with GETPIVOTDATA

steve1040

New Member
Joined
Sep 20, 2011
Messages
44
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Is it possible to get multple months in a getpivotdata this formula

So I want to get data for Jan & Feb

=GETPIVOTDATA("Sales",named_range,"Name","Simon","Month","Jan")

Thanks
Steve
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
You can do it by
=GETPIVOTDATA("Sales",named_range,"Name","Simon","Month","Jan")+GETPIVOTDATA("Sales",named_range,"Name","Simon","Month","Feb")

If you need to do ad hoc months why not set the report up so the months are in your rows and the getpivot formula points to them and do quick sum statements for when you need it
 
Upvote 0
The one suggested by GNB is probably the easiest.

If you can alter the source data of the pivot you can add another column (quarter / half year / season etc.) which can include multiple months.

You can then use this in the pivot table rather than the month to sum up.

HTH
dmadeka
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

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