Sort Grouped Dates in Pivot Table

hwcarter11

New Member
Joined
Sep 19, 2006
Messages
7
I am grouping dates in a pivot table by month and day so users can easily select various ranges, but when I do this the day portion of the date is formatted dd-mmm and sorts incorrectly. I am trying to sort descending on the date field. Any suggestions?

Here is my output. Although I can't seem to get it formatted correctly in the post, I think you can see what it's doing.

Sum of Amount DOW
Months Date Monday Tuesday
Sep 9-Sep
7-Sep
6-Sep
5-Sep $3,407.05
1-Sep
14-Sep
13-Sep
12-Sep $2,337.73
11-Sep $3,637.47
Aug 9-Aug
8-Aug $10,880.04
7-Aug $8,499.01
4-Aug
3-Aug
31-Aug
30-Aug
2-Aug
 
That's fascinating Andrew! I can't even get the formatting to change. My SP2 ref is (11.8012.6568). I thought all our machines were configured to pick up all Office 2003 updates, but now I'm wondering...
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
still no issue:
Book3
ABCDEFG
1DatenumSum of num
21/01/20011MonthsDateTotal
32/01/20012Jan5-Jan4
41/01/200134-Jan5
55/01/200142-Jan2
64/01/200151-Jan4
71/02/20016Feb5-Feb7
85/02/200171-Feb14
91/02/20018Grand Total36
10
Sheet1


...still no issue on 2003 SP2 11.8033.2028
 
Upvote 0
Paddy, would the dates you have there generate the error? In addition to the ones you show, you'd need a couple in the teen and twenties to test. Andrew's results though make me think you're going to come out okay. Right now I am installing all of the MS updates that the MS Update site indicated that I was short. None however appears to be a general SP2 for Office 2003? :unsure: So I can't figure out why you two's SP ref numbers are greater than mine. I'm plumb confuddled (not that this is uncommon :rolleyes: ).
 
Upvote 0
"Paddy, would the dates you have there generate the error?"

Good point. With the extra data elements, I can now re-create your problem. Equally, I cannot solve it.

It seems the autosort is pathelogically picking up the format, not the value - can be confirmed by trying to do a manual sort on the data - it's defaulting to labels as the key??

Hhmmm....
 
Upvote 0

Forum statistics

Threads
1,214,869
Messages
6,122,015
Members
449,060
Latest member
LinusJE

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