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
Microsoft OfficeMicrosoft ExcelVBA
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
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
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