Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Date sorting in Excel 2007

Hope someone can help - I am trying to create a pivot table of data which
covers 9 years and the first thing I want to do is sort the date into months
and quarters. When I take the date across to the table and try to group them
it is telling me I cannot group the selection and I notice the dates are
listed as
1/1/2000
1/1/2001
1/1/2002
1/1/2003
1/1/2004
1/1/2005
etc then the next day follows again sorted by each year. Any suggestions
would be welcome

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Date sorting in Excel 2007

Hi,

It looks as though your dates are not Excel dates but text enties. You must
convert them to date. The following might work:

Select an empty cell and choose Copy
Select all the dates in the data source, not the pivot table and choose
Home, Paste, Paste Special, Add.

If this works you will want to format the cells as dates.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"celli57" wrote:

Hope someone can help - I am trying to create a pivot table of data which
covers 9 years and the first thing I want to do is sort the date into months
and quarters. When I take the date across to the table and try to group them
it is telling me I cannot group the selection and I notice the dates are
listed as
1/1/2000
1/1/2001
1/1/2002
1/1/2003
1/1/2004
1/1/2005
etc then the next day follows again sorted by each year. Any suggestions
would be welcome

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Date sorting in Excel 2007

You can't group non-numeric fields. And it sure looks like your dates aren't
really dates.

If you put:
=counta(a2:A999)
and
=count(a2:a999)
in a couple of helper cells in the raw data sheet, do you get the same answer?
(adjust the range to match the range of "dates".)

My bet is that some of your dates are just plain old text. You can see this if
you change the numberformat to a non-ambiguous date format: mmmm dd, yyyy

One way to change those non-date dates to real dates is to select the range
(single column at a time) and use:

Data|text to columns (xl2003 menus)
Choose fixed width
Remove any lines that excel guessed
choose the right order for the dates (ymd, dmy, mdy, ...)
(matching the order of the text dates)
and finish up the wizard/dialog.

Now format your range the way you like.

And refresh your pivottable to see if you can group the field.

If you can't do the grouping, maybe you have empty cells in that range (that's
bad, too).

If you're sure everything is ok, try rebuilding the pivottable and then try
grouping.



celli57 wrote:

Hope someone can help - I am trying to create a pivot table of data which
covers 9 years and the first thing I want to do is sort the date into months
and quarters. When I take the date across to the table and try to group them
it is telling me I cannot group the selection and I notice the dates are
listed as
1/1/2000
1/1/2001
1/1/2002
1/1/2003
1/1/2004
1/1/2005
etc then the next day follows again sorted by each year. Any suggestions
would be welcome

Thanks


--

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
Sorting in Excel 2007 Lee New Users to Excel 2 February 20th 09 02:26 AM
Excel 2007 - Sorting Nadine Excel Worksheet Functions 0 January 19th 09 10:41 PM
Excel 2007 - Sorting 3 columns sheila4typing Excel Discussion (Misc queries) 5 January 5th 09 12:27 AM
Sorting in Excel 2007 Vicky Excel Discussion (Misc queries) 0 September 12th 08 01:35 PM
Sorting by color Excel 2007 CathyZ Excel Discussion (Misc queries) 1 March 28th 07 01:12 AM


All times are GMT +1. The time now is 05:54 PM.

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"