Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Todd1
 
Posts: n/a
Default Excel PivotTable sort of dates

I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd

  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:
I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd



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

  #3   Report Post  
LukeM
 
Posts: n/a
Default

Hello Debra,

Me on the other hand, I try not to sort the data entries when crearing a
pivot table, leaving it as in the data source. The option that enables that
is inactive in 'Advanced' table field properties. How can I enable it and use
it to keep the oryginal order of entries?
Thanks, best regards,
Lukasz

"Debra Dalgleish" wrote:

Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:
I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd



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


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel PivotTable sort of dates

I am responding to an old post about problems with dates that sort like they
are text. I too have gone back to the source and reformated as dates and
tried to rerun the pivot tables. I even reran them without using a previous
table so the formatting wouldn't carry over.

I also tried the edit replace suggestion (from Contextures), using "/" in
the Find and "/" with the replace and it states that it didn't find the
records with "/".

Once I get the dates sorted, I wanted to group the dates in 3 month
increments, significantly reducing the number of columns in my table. Any
ideas that don't involve VBA would be appreciated.

Ken

"Debra Dalgleish" wrote:

Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:
I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd



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


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Excel PivotTable sort of dates

What do the dates in the source data look like?
Select one of the dates, and choose FormatCells, and select a different
date format. Does the format of the date in the cell change?

Kelcom wrote:
I am responding to an old post about problems with dates that sort like they
are text. I too have gone back to the source and reformated as dates and
tried to rerun the pivot tables. I even reran them without using a previous
table so the formatting wouldn't carry over.

I also tried the edit replace suggestion (from Contextures), using "/" in
the Find and "/" with the replace and it states that it didn't find the
records with "/".

Once I get the dates sorted, I wanted to group the dates in 3 month
increments, significantly reducing the number of columns in my table. Any
ideas that don't involve VBA would be appreciated.

Ken

"Debra Dalgleish" wrote:


Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:

I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel PivotTable sort of dates

The dates look like m/dd/yyyy. When I try to format them nothing happens.
Also, there were two date columns in the source spreadsheet. One column
contained some cells that didn't have a date in them. So, I created a
formula cell that said that if one date was greater than the other, then use
the greatest on, if not use the other. The calculation worked, displaying
dates in each cell. This made me think that they weren't formatted as text,
as text shouldn't return a result. I even tried to use this column as my
source and formatted them all as mm/dd/yy. I still get the same results. I
already tried not using a previous pivot table creation, because it already
returned the wrong results. Any ideas on what to try next?

"Debra Dalgleish" wrote:

What do the dates in the source data look like?
Select one of the dates, and choose FormatCells, and select a different
date format. Does the format of the date in the cell change?

Kelcom wrote:
I am responding to an old post about problems with dates that sort like they
are text. I too have gone back to the source and reformated as dates and
tried to rerun the pivot tables. I even reran them without using a previous
table so the formatting wouldn't carry over.

I also tried the edit replace suggestion (from Contextures), using "/" in
the Find and "/" with the replace and it states that it didn't find the
records with "/".

Once I get the dates sorted, I wanted to group the dates in 3 month
increments, significantly reducing the number of columns in my table. Any
ideas that don't involve VBA would be appreciated.

Ken

"Debra Dalgleish" wrote:


Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:

I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Excel PivotTable sort of dates

HI

Just formatting the column after data has been entered as text values will
not change the data.
Try highlighting the columnDataText to ColumnsNextNextDate dropdown
select M/D/YFinish

See if that solves the problem. If not you can email the file directly to me
and I will take a look
send to
roger at technology4u dot co dot uk
Do the obvious thing with at and dots.
--
Regards
Roger Govier



"Kelcom" wrote in message
...
The dates look like m/dd/yyyy. When I try to format them nothing happens.
Also, there were two date columns in the source spreadsheet. One column
contained some cells that didn't have a date in them. So, I created a
formula cell that said that if one date was greater than the other, then
use
the greatest on, if not use the other. The calculation worked, displaying
dates in each cell. This made me think that they weren't formatted as
text,
as text shouldn't return a result. I even tried to use this column as my
source and formatted them all as mm/dd/yy. I still get the same results.
I
already tried not using a previous pivot table creation, because it
already
returned the wrong results. Any ideas on what to try next?

"Debra Dalgleish" wrote:

What do the dates in the source data look like?
Select one of the dates, and choose FormatCells, and select a different
date format. Does the format of the date in the cell change?

Kelcom wrote:
I am responding to an old post about problems with dates that sort like
they
are text. I too have gone back to the source and reformated as dates
and
tried to rerun the pivot tables. I even reran them without using a
previous
table so the formatting wouldn't carry over.

I also tried the edit replace suggestion (from Contextures), using "/"
in
the Find and "/" with the replace and it states that it didn't find the
records with "/".

Once I get the dates sorted, I wanted to group the dates in 3 month
increments, significantly reducing the number of columns in my table.
Any
ideas that don't involve VBA would be appreciated.

Ken

"Debra Dalgleish" wrote:


Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:

I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the
way I
would like. I want it to sort in ascending or descending order, but
it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel
workbook if
needed.

Thanks. Todd



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Excel PivotTable sort of dates

An IF formula, such as: =IF(C2B2,C2,B2)
would work with text or numbers, so that's not a reliable test to
determine if a cell contains text or numbers.

You could try the following on the column of dates:
Select the cells that contain dates
Choose DataText to Columns
Click Next twice, to go to Step 3
For Column Data Format, select Date, and in the dropdown, select the
option that matches the month, day and year order in your dates, e.g. MDY.
Click Finish

Kelcom wrote:
The dates look like m/dd/yyyy. When I try to format them nothing happens.
Also, there were two date columns in the source spreadsheet. One column
contained some cells that didn't have a date in them. So, I created a
formula cell that said that if one date was greater than the other, then use
the greatest on, if not use the other. The calculation worked, displaying
dates in each cell. This made me think that they weren't formatted as text,
as text shouldn't return a result. I even tried to use this column as my
source and formatted them all as mm/dd/yy. I still get the same results. I
already tried not using a previous pivot table creation, because it already
returned the wrong results. Any ideas on what to try next?

"Debra Dalgleish" wrote:


What do the dates in the source data look like?
Select one of the dates, and choose FormatCells, and select a different
date format. Does the format of the date in the cell change?

Kelcom wrote:

I am responding to an old post about problems with dates that sort like they
are text. I too have gone back to the source and reformated as dates and
tried to rerun the pivot tables. I even reran them without using a previous
table so the formatting wouldn't carry over.

I also tried the edit replace suggestion (from Contextures), using "/" in
the Find and "/" with the replace and it states that it didn't find the
records with "/".

Once I get the dates sorted, I wanted to group the dates in 3 month
increments, significantly reducing the number of columns in my table. Any
ideas that don't involve VBA would be appreciated.

Ken

"Debra Dalgleish" wrote:



Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:


I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd


--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel PivotTable sort of dates

Debra and Roger - Thanks! I did go back to the cells and sure enough they
had a ' in front of them. Last night I kept trying to get into my ebook:
"Excel Pivot Tables Recipe Book - A Problem-Solution Approach" written by
Debra Dalgleish herself. I kept searching for the password to open it and
finally located it on the Apress website. In her book, it mentioned "Text to
Columns" solution, which I just tried before reading your replies, in which
you are both right! This worked and now, all is well. I still would like to
put in a good word rfor Debra's book. An excellent resource! - Ken

"Debra Dalgleish" wrote:

An IF formula, such as: =IF(C2B2,C2,B2)
would work with text or numbers, so that's not a reliable test to
determine if a cell contains text or numbers.

You could try the following on the column of dates:
Select the cells that contain dates
Choose DataText to Columns
Click Next twice, to go to Step 3
For Column Data Format, select Date, and in the dropdown, select the
option that matches the month, day and year order in your dates, e.g. MDY.
Click Finish

Kelcom wrote:
The dates look like m/dd/yyyy. When I try to format them nothing happens.
Also, there were two date columns in the source spreadsheet. One column
contained some cells that didn't have a date in them. So, I created a
formula cell that said that if one date was greater than the other, then use
the greatest on, if not use the other. The calculation worked, displaying
dates in each cell. This made me think that they weren't formatted as text,
as text shouldn't return a result. I even tried to use this column as my
source and formatted them all as mm/dd/yy. I still get the same results. I
already tried not using a previous pivot table creation, because it already
returned the wrong results. Any ideas on what to try next?

"Debra Dalgleish" wrote:


What do the dates in the source data look like?
Select one of the dates, and choose FormatCells, and select a different
date format. Does the format of the date in the cell change?

Kelcom wrote:

I am responding to an old post about problems with dates that sort like they
are text. I too have gone back to the source and reformated as dates and
tried to rerun the pivot tables. I even reran them without using a previous
table so the formatting wouldn't carry over.

I also tried the edit replace suggestion (from Contextures), using "/" in
the Find and "/" with the replace and it states that it didn't find the
records with "/".

Once I get the dates sorted, I wanted to group the dates in 3 month
increments, significantly reducing the number of columns in my table. Any
ideas that don't involve VBA would be appreciated.

Ken

"Debra Dalgleish" wrote:



Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:


I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd


--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Excel PivotTable sort of dates

Thanks for letting us know how you solved the problem, and I'm glad you
like the book!

Kelcom wrote:
Debra and Roger - Thanks! I did go back to the cells and sure enough they
had a ' in front of them. Last night I kept trying to get into my ebook:
"Excel Pivot Tables Recipe Book - A Problem-Solution Approach" written by
Debra Dalgleish herself. I kept searching for the password to open it and
finally located it on the Apress website. In her book, it mentioned "Text to
Columns" solution, which I just tried before reading your replies, in which
you are both right! This worked and now, all is well. I still would like to
put in a good word rfor Debra's book. An excellent resource! - Ken

"Debra Dalgleish" wrote:


An IF formula, such as: =IF(C2B2,C2,B2)
would work with text or numbers, so that's not a reliable test to
determine if a cell contains text or numbers.

You could try the following on the column of dates:
Select the cells that contain dates
Choose DataText to Columns
Click Next twice, to go to Step 3
For Column Data Format, select Date, and in the dropdown, select the
option that matches the month, day and year order in your dates, e.g. MDY.
Click Finish

Kelcom wrote:

The dates look like m/dd/yyyy. When I try to format them nothing happens.
Also, there were two date columns in the source spreadsheet. One column
contained some cells that didn't have a date in them. So, I created a
formula cell that said that if one date was greater than the other, then use
the greatest on, if not use the other. The calculation worked, displaying
dates in each cell. This made me think that they weren't formatted as text,
as text shouldn't return a result. I even tried to use this column as my
source and formatted them all as mm/dd/yy. I still get the same results. I
already tried not using a previous pivot table creation, because it already
returned the wrong results. Any ideas on what to try next?

"Debra Dalgleish" wrote:



What do the dates in the source data look like?
Select one of the dates, and choose FormatCells, and select a different
date format. Does the format of the date in the cell change?

Kelcom wrote:


I am responding to an old post about problems with dates that sort like they
are text. I too have gone back to the source and reformated as dates and
tried to rerun the pivot tables. I even reran them without using a previous
table so the formatting wouldn't carry over.

I also tried the edit replace suggestion (from Contextures), using "/" in
the Find and "/" with the replace and it states that it didn't find the
records with "/".

Once I get the dates sorted, I wanted to group the dates in 3 month
increments, significantly reducing the number of columns in my table. Any
ideas that don't involve VBA would be appreciated.

Ken

"Debra Dalgleish" wrote:




Excel is probably seeing the dates in the source table as text. There
are some techniques here that you can use to convert the text to dates,
so they can be sorted correctly:

http://www.contextures.com/xlDataEntry03.html

Todd1 wrote:



I have used pivot tables quite a bit in the last year.
I have a pivot table with dates and can't get the sorting to work the way I
would like. I want it to sort in ascending or descending order, but it is
sorting like this:
9/19/2005
9/2/2005
9/20/2005
9/21/2005
9/23/2005
9/3/2005
9/4/2005
I have tried formatting the data source, and it is formatted using the
mm/dd/yyyy format.
Can anyone help? I would even be willing to send you the excel workbook if
needed.

Thanks. Todd

--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Contextures
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
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
Help with sort in Excel 2000 TagKory Excel Discussion (Misc queries) 2 July 20th 05 06:32 PM
Excel Sort should prompt headers before fields; selections erase. Jon_Leong Charts and Charting in Excel 0 July 7th 05 07:19 PM
Excel not recognizing Dates properly. Dan Excel Discussion (Misc queries) 1 March 23rd 05 07:19 PM
How do I activate sort in Excel? [email protected] Excel Discussion (Misc queries) 1 March 15th 05 10:27 PM


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