+ Reply to Thread
Results 1 to 7 of 7

Sort Data by Date in Pivot Table

  1. #1
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Sort Data by Date in Pivot Table

    Hi Friends,

    I am using pivot table to manipulate data. I want to sort the data by date range & month/year. Somehow I am unable to sort the data in either way. Can you please help me to sort this out?

    Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Sort Data by Date in Pivot Table

    Please attach a sample workbook so we can work with your own data to work out possible solutions. Remember to remove or replace any sensitive data before uploading your file.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Sort Data by Date in Pivot Table

    Hi

    Please find the attached. PIVOT1 & PIVOT2 worksheet. I want the data to be sorted in order by month.

    Thanks heaps.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Sort Data by Date in Pivot Table

    It's because the Month column in your data sheet is not formatted as dates. Once you change this format and refresh the pivot table it will sort correctly. You will need to change the format of the date cells in the data sheet and pivot tables to your preferred format of mmm-yy.

    To sort, in the pivot table right click on the "Month" cell, select Sort, A-Z or Z-A whichever you prefer.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Sort Data by Date in Pivot Table

    Thanks..It works as expected. But How do I change the formate. I have tried copying your format but somehow it doesn't work. I have got Jul-14, Aug-14 etc. But your cell says Jul-14 but it is actually 1/07/2014. How did you change mmm-yy to date?

    Thanks again.

  6. #6
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: Sort Data by Date in Pivot Table

    Select the date cells then right click. Select Format Cells and click on Date in the left column. In the right hand column you will see the various date formats. Scroll down and click on the one that looks like "14-Mar-01". Now click on Custom in the left column and you will see the formula Excel uses to format the date. Delete dd- and click OK. The format of your daets should now be Jul-14.

  7. #7
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: Sort Data by Date in Pivot Table

    Hi

    For some reason, Its not working in my data. Can you please try in the attached & see whether it works. I have done exactly the same thing as you have mentioned but not working.

    Thanks
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Pivot table sort by calendar date quarters
    By Xx7 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-26-2014, 10:02 PM
  2. Pivot Table Date Format/Sort
    By devo in forum Excel General
    Replies: 4
    Last Post: 08-07-2012, 04:50 PM
  3. sort pivot table by date
    By reillc01 in forum Excel General
    Replies: 1
    Last Post: 10-15-2010, 04:42 PM
  4. Pivot Table sort by date
    By dblatt in forum Excel General
    Replies: 2
    Last Post: 09-30-2010, 10:29 PM
  5. Pivot Table Sort by date
    By Bush Kangaroo in forum Excel General
    Replies: 1
    Last Post: 03-09-2005, 08:34 AM

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