+ Reply to Thread
Results 1 to 8 of 8

Slicers - Proper Month & Day Order

  1. #1
    Registered User
    Join Date
    09-05-2018
    Location
    Scottsdale AZ
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    71

    Slicers - Proper Month & Day Order

    Hello,

    I've added 3 slicers "Year" "Month" "Day" to my pivot table, how do I get the months to display in order of Jan, Feb, Mar etc and the days to display 1,2,3,4,5 etc. It appears the slicer settings ascending and descending sort is sorting the months and days by alphabetical order based on the name of the month and day.

    Thanks
    Daren
    Attached Files Attached Files
    Last edited by darenferg; 01-24-2021 at 12:20 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Slicers - Proper Month & Day Order

    Hi darenferg,

    I think it may has to to with the formula you are using in your Table in columns Z & AA. You basically formatting the value as text.

    Try using : =MONTH([@[CLOSE-DATE]]) & =DAY([@[CLOSE-DATE]])

    This will give you numbers 1-12 for the months and 1-31 for the days. Refresh the Slicers and you should get the correct sorting from 1 upwards.
    Drawback is that your month will be a number (1-12) instead of the 3 letter short form (Jan, Feb, Mar.... Dec)
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  3. #3
    Registered User
    Join Date
    09-05-2018
    Location
    Scottsdale AZ
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    71

    Re: Slicers - Proper Month & Day Order

    Morning ORoos,

    Your formulas worked, they are now in numerical order. Do you know of any workaround to have the 3 letter month display?
    As an option, I could use "1 Jan" "2 Feb" "3 Mar"

    Thanks
    Daren

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Slicers - Proper Month & Day Order

    Hi again,

    For your month; column Z, Try: =TEXT(MONTH([@[CLOSE-DATE]]),"00")&" "&CHOOSE(MONTH([@[CLOSE-DATE]]),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

    Regards,

  5. #5
    Registered User
    Join Date
    09-05-2018
    Location
    Scottsdale AZ
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    71

    Re: Slicers - Proper Month & Day Order

    ORoos,

    Unfortunately, your formula converts to numbers. I tried using VLOOKUP to convert the month number to "1 Jan."
    the period at the end of Jan tricks excel not to format the cell as a month, the only problem the slicer sorts all the "1" first.
    Any ideas how to sort them in true numeric order?

    Example:
    1 Jan.
    10 Oct.
    11 Nov.
    12 Dec.
    2 Feb.
    3 Mar.

    Thanks

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: Slicers - Proper Month & Day Order

    Hi Daren,

    The formula should return the month number in 2-digit, hence for example 01 Jan, 02 Feb....
    Yes it is text, but with the number at the front should still sort correctly.
    See attached file.
    Attached Files Attached Files

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Slicers - Proper Month & Day Order

    1. Ribbon Power Pivot > manage data * enable Power Pivot ribbon at Options > Add-ins> Com Add-ins *

    2. Add column Month no =month(Table1[CLOSE-DATE])

    3. Select column Month, Ribbon Home > sort by column > Sort Month by Month No

    4. Right-click at Month slicer > sort Data Source Order

    Power Pivot.png
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-05-2018
    Location
    Scottsdale AZ
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    71

    Re: Slicers - Proper Month & Day Order

    That worked....
    Thank you

+ 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. Proper order of COUNTIF with multiple actions
    By ddansie in forum Excel General
    Replies: 5
    Last Post: 08-01-2019, 03:46 PM
  2. Separate Slicers for month from mm/dd/yy entries?
    By shivers in forum Excel General
    Replies: 3
    Last Post: 09-06-2018, 11:20 AM
  3. New to Slicers - how to arrange button order/position?
    By trstew in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-30-2018, 11:17 AM
  4. Replies: 0
    Last Post: 03-06-2017, 03:55 PM
  5. Replies: 1
    Last Post: 08-29-2014, 01:50 PM
  6. [SOLVED] Sort in proper order
    By anindya.zen in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-22-2014, 06:34 AM
  7. [SOLVED] proper syntax order
    By Roberta H via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2006, 06:20 PM

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