+ Reply to Thread
Results 1 to 2 of 2

Two formulas referencing two date ranges on one pivot table.... Possible?

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2003
    Posts
    33

    Two formulas referencing two date ranges on one pivot table.... Possible?

    Hi all!

    So I'm not sure if this is even possible, but I have a workbook that needs to reference one pivot table that encompasses several weeks worth of data. In the workbook, I have two sets of data, each referencing two different weeks. Both weeks worth of data are available in the pivot table, but of course to physically see the data, you would need to manually select the desired dates in the pivot table. Is there any way to make a formula or a macro to get the data for one week and then get the data for the other week and put it into the workbook?

    Visual, if it helps:

    Week 1:
    Data from week 1 for person 1 from pivot table
    Data from week 1 for person 2 from pivot table
    Data from week 1 for person 3 from pivot table
    Data from week 1 for person 4 from pivot table

    Week 2:
    Data from week 2 for person 1 from pivot table
    Data from week 2 for person 2 from pivot table
    Data from week 2 for person 3 from pivot table
    Data from week 2 for person 4 from pivot table

    So far, I got the following to at least fill in the data based on whatever date range is currently selected, but of course it's not relevant for both weeks, or either week if the wrong date range is chosen:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Two formulas referencing two date ranges on one pivot table.... Possible?

    Hi heather1209,

    I guess you can use GetPivotData function here... but not sure unless I see the sample workbook, please upload. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

+ 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