#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Pivot table sort

I am new to pivot tables so please bear with me...
The data in the pivot table is being used in a macro and must be in the
order of largest to smallest. The pivot table is taken form only two columns
headed "Length" and "Quantity". There may be from one to twenty entries in
each column. Eg.

Length Quantity
1840 8
1740 6
1640 6
1540 6

It is not possible to sort the data at this point.
The pivot table always sorts the data from smallest at the left hand side
but I need it to be the largest at the LHS.

Pivot table result -

Sum of Qty35 Lth35
1540 1640 1740 1840
Total 6 6 6 8

should be -

Sum of Qty35 Lth35
1840 1740 1640 1540
Total 8 6 6 6


How do I ensure that the correct sort occurs every time? I do not want to
do any manual adjustments as it is controlled by the macro.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Pivot table sort

Thanks, I have found an answer on the discussion group - Bruce 4/9/2008

"Palpha32" wrote:

I am new to pivot tables so please bear with me...
The data in the pivot table is being used in a macro and must be in the
order of largest to smallest. The pivot table is taken form only two columns
headed "Length" and "Quantity". There may be from one to twenty entries in
each column. Eg.

Length Quantity
1840 8
1740 6
1640 6
1540 6

It is not possible to sort the data at this point.
The pivot table always sorts the data from smallest at the left hand side
but I need it to be the largest at the LHS.

Pivot table result -

Sum of Qty35 Lth35
1540 1640 1740 1840
Total 6 6 6 8

should be -

Sum of Qty35 Lth35
1840 1740 1640 1540
Total 8 6 6 6


How do I ensure that the correct sort occurs every time? I do not want to
do any manual adjustments as it is controlled by the macro.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort in a Pivot Table Steve B Excel Discussion (Misc queries) 1 May 17th 08 03:09 AM
Sort top 50 in Pivot table Wanna Learn Excel Discussion (Misc queries) 2 February 6th 07 10:20 PM
How do I sort pivot table data outside a pivot table Michael Excel Worksheet Functions 1 January 4th 07 02:45 PM
Sort pivot table jbormann Excel Discussion (Misc queries) 2 July 18th 06 08:33 PM
pivot table sort entries that don't yet appear in table rachael Excel Discussion (Misc queries) 11 September 19th 05 11:29 PM


All times are GMT +1. The time now is 06:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"