+ Reply to Thread
Results 1 to 5 of 5

Date Sort in Pivot Table - Not working properly

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    brazil
    MS-Off Ver
    Excel 2010
    Posts
    14

    Date Sort in Pivot Table - Not working properly

    Hello my friends, this is my first thread.

    I have a column in my excel that has only Dates. Later I created an Pivot Table.
    The first colunm in the Pivot Table is the column that has the Dates.

    The problem is that when I sort the Dates in the pivot table, the dates are being sorted wrongly like below:

    1/2/2001
    1/2/2002
    1/2/2003
    1/2/2005
    1/2/2006
    1/2/2007
    1/2/2008
    1/2/2010
    1/2/2011
    1/2/2012
    1/2/2013
    1/3/1999
    1/3/2000
    1/3/2001
    1/3/2002
    1/3/2003
    1/3/2004
    1/3/2005
    1/3/2006

    How can I sort them as real Dates, Like Day, month and year?

    Thanks.

    Claudio.

  2. #2
    Registered User
    Join Date
    07-12-2013
    Location
    brazil
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Date Sort in Pivot Table - Not working properly

    Hi I got it, I neede to convert the Dates from text to dates. Many thanks anyway.

    Claudio

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Date Sort in Pivot Table - Not working properly

    Hi and welcome to the forum

    The dates that you are basing your PT on, are probably not dates, but text that looks like dates. To test, use =isnumber(cell-ref)...FALSE indicates text.

    If they are all text, try this trick...

    Highlight the entire range of "dates"
    on DATA tab, Data Tools, select Text-to-Columns
    select next/next/finish
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    brazil
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Date Sort in Pivot Table - Not working properly

    Thank you very much friend.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Date Sort in Pivot Table - Not working properly

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1