ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sorting Pivot Table by Grand Total (https://www.excelbanter.com/excel-discussion-misc-queries/83160-sorting-pivot-table-grand-total.html)

Meg W

Sorting Pivot Table by Grand Total
 

I have created a pivot table which displays the sum of premiums. I have
the data divided by two variables (company and state) in the columns and
by one in the row (class) to show the Grand Total of premiums by class
across which company and state are selected. I am having trouble
sorting the data by size of the grand total of premium instead of
class; every time the pivot table is adjusted to show a different
number of columns, I must resort the data. Is there a macro that can
be created or a way of adjusting the table so that the data is
automatically sorted by premium size?

Any help would be greatly appreciated!

Thanks,
Meg W


--
Meg W
------------------------------------------------------------------------
Meg W's Profile: http://www.excelforum.com/member.php...o&userid=33475
View this thread: http://www.excelforum.com/showthread...hreadid=532784


Debra Dalgleish

Sorting Pivot Table by Grand Total
 
Right-click the Company field button, and choose Field Settings
Click the Advanced button
Under AutoSort, select Ascending
Under Using Field, choose Sum of Premiums
Click OK, click OK

Do the same for the State field button.

Meg W wrote:
I have created a pivot table which displays the sum of premiums. I have
the data divided by two variables (company and state) in the columns and
by one in the row (class) to show the Grand Total of premiums by class
across which company and state are selected. I am having trouble
sorting the data by size of the grand total of premium instead of
class; every time the pivot table is adjusted to show a different
number of columns, I must resort the data. Is there a macro that can
be created or a way of adjusting the table so that the data is
automatically sorted by premium size?

Any help would be greatly appreciated!

Thanks,
Meg W




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


Meg W

Sorting Pivot Table by Grand Total
 

Thanks so much! It worked perfectly.

Meg W


--
Meg W
------------------------------------------------------------------------
Meg W's Profile: http://www.excelforum.com/member.php...o&userid=33475
View this thread: http://www.excelforum.com/showthread...hreadid=532784



All times are GMT +1. The time now is 11:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com