+ Reply to Thread
Results 1 to 2 of 2

Macro to select rolling/latest 6 weeks in a pivot table

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    6

    Macro to select rolling/latest 6 weeks in a pivot table

    Hi All,

    Need help with macros.
    I have a raw data in one file and then another file contains pivot table linked to the raw data. In the dashboard i need to show last 6 weeks trend which is linked to the pivot table. Currently i am manually unselecting previous week and selecting the latest week.
    Ex: This week i select weeks 5, 6, 7, 8, 9, 10 from the pivot for the dashboard. When new data is updated next week, i want to select 6, 7, 8, 9, 10, 11. I cannot delete as i need the historical data.

    I am using Microsoft Excel 2010.

    Can anyone please help

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to select rolling/latest 6 weeks in a pivot table

    No need of any macros and all just keep a helper column with a formula directed to your date and update the week # in that helper column with the combination of if function to show the latest week #'s alone as result.

    Add that helper column in your pivot.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. Sample of latest 20 entries into pivot table
    By cloudwalking in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-11-2013, 03:25 PM
  2. Getting the earliest and latest date in Pivot Table
    By dluhut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2013, 01:54 PM
  3. [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
  4. Macro to auto select months in a Pivot Table
    By gautamacharya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2011, 02:53 PM
  5. [SOLVED] Macro - Pivot Table - Select Items
    By S Sainsbury in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2005, 11:30 AM

Tags for this Thread

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