+ Reply to Thread
Results 1 to 3 of 3

Pivot Table to show both YTD and total year based on same data

Hybrid View

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Solihull, West Midlands
    MS-Off Ver
    2010
    Posts
    19

    Pivot Table to show both YTD and total year based on same data

    Hi All,

    I'm sure this should be fairly straightforward but I'm struggling (could be down to the fact it's a Friday morning!) but here's my problem:

    I have a worksheet showing every sales transaction from every customer since the beginning of 2012. I've put this into a pivot table to sum the total sales value by customer by year (so all companies listed in rows, and the years 2012 and 2013 as column labels, with the sales value shown as a sum). What I would also like to show if possible would be a YTD comparison in the same pivot table...

    One method I tried was the following - the transaction date is shown in column D so I tried using the following formula:

    =IF(YEAR(D2)=2013,2013,IF(AND(YEAR(D2)=2012,D2<=TODAY()-365),"2012 YTD","-"))
    That way the whole of 2013 would still be shown (as this would be the YTD position anyway) and a comparison could be shown based on the same position last year... however I also want to show the total sales value for 2012 in the same pivot table.

    Is this possible?

    Any help would be greatly appreciated!

    I hope I've explained it clearly enough but if you have any questions please ask!

    Thanks in advance


  2. #2
    Registered User
    Join Date
    04-04-2013
    Location
    Solihull, West Midlands
    MS-Off Ver
    2010
    Posts
    19

    Re: Pivot Table to show both YTD and total year based on same data

    Can anyone help with this?

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Pivot Table to show both YTD and total year based on same data

    Perhaps you can provide a workbook example for us to test?

+ 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. Replies: 1
    Last Post: 12-08-2012, 07:57 AM
  2. Can a Pivot table show % to total by multi row labels?
    By juniperjacobs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2011, 03:37 PM
  3. Replies: 1
    Last Post: 08-18-2010, 02:43 AM
  4. Is there way to make a pivot table not show lines where a total is zero?
    By DanMinalt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2009, 10:38 PM
  5. Replies: 2
    Last Post: 09-15-2009, 04:25 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