Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Pivottable, month, sorting

Hi,

On my worksheet, I have a number of invoicedates of this variety:
20031119, 20031126, 20031217 etc.

Using MID, I take the month part and SELECT CASE it to the 'name' of the
month, which I then write in another column on the same row. Prior to
that I had formatted that cell to contain "month only" dates.
It should be clear to Excel that my new column contains months.


Now I can use this 'month dimension' in my pivottable.



Problem is, when I drag the month dimension into the pivot's row area,
the months are sorted using their value, instead of their chronical
order. Data sorting (asc/desc) doesn't help.



thx

Ward



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Pivottable, month, sorting

If you're using the full month names, or three letter abbreviations, the
months should sort in chronological order.

Or you could add a column in which you calculate the date from the
invoice date, e.g.
=DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2))

Add that column to the pivot table, and group by month.

Ward wrote:
Hi,

On my worksheet, I have a number of invoicedates of this variety:
20031119, 20031126, 20031217 etc.

Using MID, I take the month part and SELECT CASE it to the 'name' of the
month, which I then write in another column on the same row. Prior to
that I had formatted that cell to contain "month only" dates.
It should be clear to Excel that my new column contains months.


Now I can use this 'month dimension' in my pivottable.



Problem is, when I drag the month dimension into the pivot's row area,
the months are sorted using their value, instead of their chronical
order. Data sorting (asc/desc) doesn't help.



thx

Ward





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
Sorting on PivotTable MDW Excel Worksheet Functions 1 March 14th 06 01:18 AM
PivotTable Group by Week and Month Monica Hall Excel Discussion (Misc queries) 5 January 9th 06 11:11 PM
Week/month/year rollovers with PivotTable Rayo K Excel Worksheet Functions 5 December 28th 05 09:25 PM
Sorting in PivotTable Aaron Howe Excel Discussion (Misc queries) 5 July 12th 05 09:49 PM
PivotTable - Count by Month Gigi Excel Worksheet Functions 3 January 1st 05 12:30 PM


All times are GMT +1. The time now is 07:34 AM.

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

About Us

"It's about Microsoft Excel"