+ Reply to Thread
Results 1 to 7 of 7

how can I change the default month names for dates grouping in pivot tables

  1. #1
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    how can I change the default month names for dates grouping in pivot tables

    hello there,

    I have a data set with dates that I chart grouping by month and year
    however it sets month names in "mmm" format, and in the default language (spanish) for my computer. Is there a way to change that to month number (1,2,3..), or to english abreviations at least, so that the chart is more international-oriented?

    I tried changing format of everything, from axes to field settings to cell format... nothing worked

    thanks a lot!
    Last edited by bagullo; 03-25-2011 at 05:25 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: how can I change the default month names for dates grouping in pivot tables

    Have you tried formatting the dates with custom format

    m

    ? That will give you just the month number.

  3. #3
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Re: how can I change the default month names for dates grouping in pivot tables

    Quote Originally Posted by teylyn View Post
    Have you tried formatting the dates with custom format

    m

    ? That will give you just the month number.
    the thing is that I need them in date format so that I can group by month and year using the pivot table options

    not only to group by month, but also to show items with no data

    if the dates are in "m" format I cannot do that anymore

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: how can I change the default month names for dates grouping in pivot tables

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  5. #5
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Re: how can I change the default month names for dates grouping in pivot tables

    Quote Originally Posted by teylyn View Post
    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    I thought I had uploaded my file just to see now that I didn't succeed...
    anyway here it comes!

    thanks in advance
    Attached Files Attached Files

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: how can I change the default month names for dates grouping in pivot tables

    Hello,

    When you use the grouping by Year and month, Excel seems to automatically spell out the month in text format. I have not found a way to display the month as a number.

    You will need to include another column in the pivot table source that calulates the month number (see attached file and the pivot table in sheet1)

    You can then group by year and month, include the month field in the pivot table and then delete the column with the text month values.

    cheers,
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    09-30-2009
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    274

    Lightbulb Re: how can I change the default month names for dates grouping in pivot tables

    Quote Originally Posted by teylyn View Post
    Hello,

    When you use the grouping by Year and month, Excel seems to automatically spell out the month in text format. I have not found a way to display the month as a number.

    You will need to include another column in the pivot table source that calulates the month number (see attached file and the pivot table in sheet1)

    You can then group by year and month, include the month field in the pivot table and then delete the column with the text month values.

    cheers,
    Hi teylyn,

    thank you for your effort!
    In the example your approach seems to work fine changing the field setting of "Month" to show items with no data, and I am sure that it would work in 99% of time . The only concern I have is that if there is no items for a certain month of all years then that month will not display in the chart --- am I right?

    I just thought of another possibility, which is your approach complemented with 12 dummy lines (one for each month) with a 0 number in de docs columns. That would force the pivot table to display the field no matter what, without affecting the data.


    regards!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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