+ Reply to Thread
Results 1 to 3 of 3

Date formatting for Pivot tables

  1. #1
    Registered User
    Join Date
    03-06-2009
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    12

    Date formatting for Pivot tables

    Hi all, apologies if this is covered already.

    I am trying to find out how to format a date so that it groups it by month in a pivot table. e.g

    if I have several dates 21/02/08, 13/02/08 and so on I want the pivot table to display the data as Feb 08.

    I have added another cell next to te current date e.g 13/02/08 and tried a different dispaly format like the US Month-year split however the pivot table is still picking up the serial number and displaying 13/02/08 rather than Feb-08

    Any ideas?

    Thanks

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Date formatting for Pivot tables

    Hi Matt,

    The problem is with your understanding of the concepts (if you don;t mind me saying so). The point of formatting is that it is a mask over existing data to show the data in the way you like. So if you have the dates from 1st - 28th Feb and format the cells "mmmm-yy" you will just see February 28 times - but the numbers haven't gone anywhere.

    This means if you format your source data for a pivot table, Excel still stores the true dates in the pivot cache - it doesn't care how you've asked it to display the data, they are still numbers...

    In terms of achieving what you're trying to achieve - via source data you would have to add a column which "simplifies" the raw data to monthly groups - for example =date(year(<original>),month(<original>),1) which would standardise every date entry to the first of its month. Far superior to this though, is to create the pivot table as before, then right-click on the field button ->group and outline -> group -> then select your options; this shuold be quite self-explanatory.

    HTH

  3. #3
    Registered User
    Join Date
    03-06-2009
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Date formatting for Pivot tables

    Great, thanks for your help

+ 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