+ Reply to Thread
Results 1 to 11 of 11

Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological order

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Leeds
    MS-Off Ver
    Microsoft Office 365
    Posts
    279

    Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological order

    Good afternoon,

    I have pulled data for the last 3 financial years (Apr-18 to March-21). Basically, I have two columns, Months and No of items. The Months are shown as three letter-year e.g. Apr-18 to Mar-21. In my Pivot table the months are shown as follows:
    Apr-18
    Apr-19
    Apr-20
    Aug-18
    Aug-19
    Aug-20
    instead of
    Apr-18
    Feb-18
    Mar-18
    I managed to solve the problem by dragging the month cells but I would really appreciate a proper solution. I am not an advanced Excel user.

    Thank you in advance!

    Kind Regards,
    Jignesh
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    you dont have dates in the data - can you perhaps change to dates and then you could use MMM-YY as a format to show as you seem to want ?
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Leeds
    MS-Off Ver
    Microsoft Office 365
    Posts
    279

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    I am so sorry I don't know how to perform that step.
    Thank you so much for your help. I really appreciate it.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,107

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    In C2 put:
    Formula: copy to clipboard
    =A2+0
    and copy down to the end of the data. Now pivot using columns B and C.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Leeds
    MS-Off Ver
    Microsoft Office 365
    Posts
    279

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    I am so sorry I managed to copy the step but still don't know the logic behind it. Because I have used the formula I couldn't delete the column A. I am still confused.
    Thank you so much!

  6. #6
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Leeds
    MS-Off Ver
    Microsoft Office 365
    Posts
    279

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    I tried to use "Get and Transform Data" option under the Data menu. I have managed to get column A in proper Date format but my pivot table (Power Pivot in the attachment) doesn't show the months like shown in the
    sheet "Pivot 3 Year Apr-18 to Mar-21).
    I want Jan 18, Feb-18, Mar-19...

    Power Pivot (Second sheet) is showing the total value for Apr-18 + Apr-19+ Apr-20. I don't want that. I want the Power Pivot (second sheet) to be exactly like the one shown in the first sheet.


    Thank you!
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,107

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    You're welcome. Thanks for the rep.


    See the updated example. I have put the formula (=A2+0) in cell C2 and formatted as "mmm-yy", and then copied the formatted formula/format down. I have then inserted a new pivot table on the same page. Rather than selecting your Month column, I have used the new Date column.
    Attached Files Attached Files

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    i dont have power pivot an my mac vesion
    @TMS suggested using in column C A2+0
    then if you Copy C
    and use a Paste Special > value into column A
    now column A is setup as a date

    Now the pivot table will order by date , as my example

    The logic is that you need dates , in order to sort by the date , otherwise if text , it will sort alphabetically and not in date order

    did my example spreadsheet actually give you want you wanted ?

  9. #9
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Leeds
    MS-Off Ver
    Microsoft Office 365
    Posts
    279

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    Thank you! Yes, It did help.

  10. #10
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Leeds
    MS-Off Ver
    Microsoft Office 365
    Posts
    279

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    then if you Copy C
    and use a Paste Special > value into column A
    now column A is setup as a date
    I can't replicate the above steps. I haven't used it before.

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Month-year (Apr-18) in Pivot table in an alphabetical order instead of chronological o

    which bit can you not do

    you click on the letter C over the column and now the whole column is highlighted
    whilst the mouse is over the C , right click and Copy
    Now click on the letter A over the column and now the whole column is highlighted
    Then from the Menu > choose Paste Special and Select Value
    OR
    whilst the mouse is over the A , right click and Paste Special , then choose VALUE

    Now the Values from column C are copied into column A

    https://www.youtube.com/watch?v=PLRQ2YCQAAM

+ 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. How to order columns of Pivot table in correct month order
    By Cordelia123 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-23-2021, 08:29 AM
  2. [SOLVED] Pivot table: can't sort Months in chronological order
    By Jigneshbharati in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 12-04-2020, 03:19 AM
  3. pivot table doesn't show dates in chronological order
    By danielpak in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-22-2019, 12:28 PM
  4. Pivot Table Not Sorting Time Period in Chronological Order
    By evarjas in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-13-2018, 10:17 PM
  5. Pivot Table/Chart - Months in Alphabetical order
    By MunichMag in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 09-04-2013, 09:06 AM
  6. Replies: 7
    Last Post: 10-27-2009, 02:17 PM
  7. How to arrange your tabnames in alphabetical / chronological order
    By Dbase Beginner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2005, 09:12 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