troubleshooting Question

Custom sort a pivot table based on the specific sorting of another pivot table

Avatar of Andreas Hermle
Andreas HermleFlag for Germany asked on
VBAMicrosoft ExcelMicrosoft Office
3 Comments1 Solution16 ViewsLast Modified:
Dear Experts: I placed two pivot table reports one next to the other on a worksheet. Both share the same datasource.

The left pivot table (MyPT-01) has been sorted by Sales 2021 descending. The corresponding countries are now in some specific order.

I would like to sort the countries of the other pivot table (MyPT-02) to match the sorting of the countries of the left Pivot Table (MyPT-01)

I am pretty sure this can only be achieved by means of a macro.

Help is much appreciated, Thank you very much in advance.

I have attached the pivot table file for your convenience.

 
sorting-based-on-another-sorting-range-pivot-vba.xlsx
ASKER CERTIFIED SOLUTION
Ejgil Hedegaard

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros