Sorting columns within pivot table

RogerC

Well-known Member
Joined
Mar 25, 2002
Messages
536
I need to sort the totals that result from a count of data in the second column in a pivot table. When I right-click on the column header for the column of data whose totals I need sorted and choose Field Settings, Advanced, Decending, the data in the column itself (names of Sales-people) sorts alphabetically. But I need to sort the totals for the data, not the names that are in the actual column. For example; In the pivot table, column A2 is a list of Customer Names. B2 contains a list of Sales-people for each Customer (5 or 6 per Customer). In the source data, each Sales-person's name is listed multiple times for each Customer. For each Customer, the pivot table counts the number of times each Sales-person is listed. The totals appear in C2. So... at each change in Customer name, I need the totals of the Sales-people to sort and then sort the totals for the Sales-people under the next Customer name, etc... Of course, it's possible to sort the subgroups of Sale-people totals individually, but I can't really do this because I have over 600 Customer names and I don't get paid for overtime. :) Any help is appreciated.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

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