Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 204
Default Pivot table sort order

Hello, My pivot table (on a seperate sheet in V2003) seems to sort my data
in an entirely random order. It is not in the order that the iems appear in
the original data, and it is not in size or alphabetical order, and what's
more, I can't change the order, even if I use 'Sort & Top 10' or Advanced
'Field Settings.

Why is this?

How can I determine the order? - Ideally it would be in the order tht the
iems appear, but if that's not possible, I could fiddle it, if I could sort
it at all!

Thanks
M

  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Pivot table sort order

My observation was that tinkering with 'Sort & Top 10', selecting a mixed
data field from the droplist Ascending, would sort it in the usual order,
viz. by real nums, then by text nums, then by alphas .. Give it another try?
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Michelle" wrote:
Hello, My pivot table (on a seperate sheet in V2003) seems to sort my data
in an entirely random order. It is not in the order that the iems appear in
the original data, and it is not in size or alphabetical order, and what's
more, I can't change the order, even if I use 'Sort & Top 10' or Advanced
'Field Settings.

Why is this?

How can I determine the order? - Ideally it would be in the order tht the
iems appear, but if that's not possible, I could fiddle it, if I could sort
it at all!

  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel
external usenet poster
 
Posts: 168
Default Pivot table sort order

The Field Settings option to sort Ascending, Descending, or Manual should
sort the data as you specify. You might also try refreshing the pivot table
(when you select the PT you should see a new PT toolbar pop-up, just select
the red exclamation symbol to refresh your PT).

If you're saying the items in your filter (the drop down list in the field's
header) are not sorting, that's an easy fix:
- drag it to the row area if it's not already there
- select the cell for that filter/header which is not sorting properly
- in Excel's toolbar hit the AZ sort button
- drag it back to the column or page area if needed

If all else fails, this code from contextures.com will sort all your PT
fields. Just right-click the Excel icon in the top toolbar, select "View
Code," paste this in and run it using the green play button, then delete the
macro and close the Visual Basic Editor window.

Sub SortAllFields()
On Error Resume Next
Application.ScreenUpdating = False

Dim pt As PivotTable
Dim ws As Worksheet
Dim pf As PivotField

For Each ws In ActiveWorkbook.Worksheets
For Each pt In ws.PivotTables
pt.ManualUpdate = True

For Each pf In pt.PivotFields
pf.AutoSort xlAscending, pf.Name
Next pf
pt.ManualUpdate = False
Next pt
Next ws

Application.ScreenUpdating = True

End Sub
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"Michelle" wrote:

Hello, My pivot table (on a seperate sheet in V2003) seems to sort my data
in an entirely random order. It is not in the order that the iems appear in
the original data, and it is not in size or alphabetical order, and what's
more, I can't change the order, even if I use 'Sort & Top 10' or Advanced
'Field Settings.

Why is this?

How can I determine the order? - Ideally it would be in the order tht the
iems appear, but if that's not possible, I could fiddle it, if I could sort
it at all!

Thanks
M

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
Pivot Table Sort Order Mustang Excel Discussion (Misc queries) 1 May 4th 09 12:30 PM
sort order of pivot table drill down Amedee Van Gasse Excel Discussion (Misc queries) 0 June 17th 08 02:29 PM
Pivot table sort order ajnmx Excel Worksheet Functions 1 March 27th 07 10:39 PM
Sort order not being matched in pivot table Deanery Phil Excel Discussion (Misc queries) 2 January 8th 07 08:34 AM
Pivot table sort order Vincdc Excel Discussion (Misc queries) 2 March 1st 06 05:20 PM


All times are GMT +1. The time now is 11:03 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"