Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default sorting dates in a pivot table

I have a pivot table that toggles markets and products with metrics as row
labels and weeks as column labels. I would like the dates to be sorted from
oldest to most recent but cannot find any ways to do this. I have the
previous 52 weeks ending on 10/24/09 and the first week (when I tell Excel to
sort ascending by weeks is 1/10/09 and then there are some 2008 weeks a few
columns in. I've also tried to change the format of both the data set and
the dates in the pivot table but to no avail. Any thoughts?

Thanks in advance for your help with this.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default sorting dates in a pivot table

If you change the format of the cell and the display doesn't change, then your
values aren't really dates--they're just text masquerading as dates.

I'd convert the dates in the table and then refresh the pivottable.

One easy way to change text dates to date dates is
select the column
data|text to columns (xl2003 menus)
Fixed width (but remove any lines that excel guessed)
choose date (mdy for the order)
and plop back where you found them.

Then give this range a nice unambiguous date format so that it'll be easy to
check:

mmmm dd, yyyy

If any cells don't change the display, then they didn't get converted correctly.

In fact, if you had cells that did change format before this correction, then
I'm betting your data was originally some sort of text. And it was imported to
excel.

The bad news is that the cells that contain actual dates may not be correct.
I'd go back to the original source and see if you had dates that looked like:

01/02/03
and if the equivalent field in excel is whatever that original date was supposed
to be (Jan 02, 2003 or feb 01, 2003 or whatever...)





Mike wrote:

I have a pivot table that toggles markets and products with metrics as row
labels and weeks as column labels. I would like the dates to be sorted from
oldest to most recent but cannot find any ways to do this. I have the
previous 52 weeks ending on 10/24/09 and the first week (when I tell Excel to
sort ascending by weeks is 1/10/09 and then there are some 2008 weeks a few
columns in. I've also tried to change the format of both the data set and
the dates in the pivot table but to no avail. Any thoughts?

Thanks in advance for your help with this.


--

Dave Peterson
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 and Pivot Table dates are not in correct order ls Charts and Charting in Excel 3 July 14th 09 04:02 PM
Sorting in Pivot Table Volkan Cetin Excel Worksheet Functions 1 June 15th 09 02:14 PM
Sorting a Pivot Table cware Excel Worksheet Functions 2 August 26th 08 12:27 AM
Pivot Table sorting TomHinkle Excel Discussion (Misc queries) 5 June 2nd 05 09:14 PM
Need help sorting pivot table Randy Harris Excel Discussion (Misc queries) 6 April 25th 05 05:38 AM


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

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"