+ Reply to Thread
Results 1 to 5 of 5

[SOLVED] date format with Pivot Table

  1. #1
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    [SOLVED] date format with Pivot Table

    I have a row of data that I'm using to convert a date into just the year (using format cell = yyyy function). I'm trying to have a pivot table for the data to filter by year. However when i make the filter table and add that column into the filter it doesn't combine the years....instead each "year" is its own line. I attached a sample document.

    Basically i'm trying to sort my pivot table by YEAR but i have to work with a standard date entry.
    Attached Files Attached Files
    Last edited by adamheon; 11-07-2016 at 03:56 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Date format with Pivot Table

    Only a quick answer, why dont you just make column A the year =year(c2) instead of c2 for your first cell. formats only change the appearance of data, they do not change the underlying values.

  3. #3
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    Re: Date format with Pivot Table

    i tried that first....but it comes 1905 in the cell. i couldn't get it working.

  4. #4
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    Re: Date format with Pivot Table

    all set...i had to use the formula =TEXT(C2,"YYYY") to convert the date properly.

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: [SOLVED] date format with Pivot Table

    or if you had formatted the cell with the year in as a number and not as a date with a number format it would have displayed 2016

    for your information if you type 2016 in a cell and format as YYYY it will display as 1905

+ 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. Date format in pivot table headers
    By buhaj47 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-11-2016, 11:42 PM
  2. Date format in pivot table
    By Shadmani in forum Excel General
    Replies: 2
    Last Post: 07-26-2016, 10:29 AM
  3. Date format in Pivot table.
    By srmani44 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-25-2012, 08:03 AM
  4. [SOLVED] Macro to update pivot item (date format) in pivot table to latest date from data source.
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2012, 03:18 AM
  5. Pivot Table Date Format/Sort
    By devo in forum Excel General
    Replies: 4
    Last Post: 08-07-2012, 04:50 PM
  6. How to format date for pivot table graph
    By Onestopfanshop in forum Excel General
    Replies: 3
    Last Post: 09-11-2010, 06:43 AM
  7. Excel 2007 : Pivot Table Date Format
    By techiemom60 in forum Excel General
    Replies: 0
    Last Post: 02-16-2010, 04:29 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