+ Reply to Thread
Results 1 to 6 of 6

VBA Pivot Table fixed Row Fields

  1. #1
    Registered User
    Join Date
    09-30-2010
    Location
    Ashville, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    VBA Pivot Table fixed Row Fields

    I have a master report that I update using data from another excel daily report that has the data organized via a pivot table. Some of the row fields that have pivot data are not constant from day to day. It would be great to run the pivot and include data as a row field that is not actually in the daily report. Is there a way to do this? it would make things easier when copying the data to the master report.

    example:

    Daily report:

    Day 1
    black 5
    blue 5
    red 4
    green 3

    Day 2
    black 4
    red 2
    green 1

    Day 3
    Black 2
    Blue 1


    Master:
    Day1 Day2 Day 3
    Black 5 4 2
    Blue 5 0 1
    Red 4 2 0
    Green 3 1 0

    Would like the daily report to show all colors if there is data or not.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: VBA Pivot Table fixed Row Fields

    Does the attached work for you?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-30-2010
    Location
    Ashville, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA Pivot Table fixed Row Fields

    Quote Originally Posted by MarvinP View Post
    Does the attached work for you?
    Thanks for the reply and the help.
    However, the data will not in one file but a separate file each day.
    I would like all the items to show on each days pivot to make copying and pasting into the master report easier.

    For example, when I run the daily report for day 3, all the items will be in the pivot but only 2 will have data (black and blue.)

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: VBA Pivot Table fixed Row Fields

    I'd copy the daily data into a master file and run the pivot table on it daily.

  5. #5
    Registered User
    Join Date
    09-30-2010
    Location
    Ashville, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA Pivot Table fixed Row Fields

    Quote Originally Posted by MarvinP View Post
    I'd copy the daily data into a master file and run the pivot table on it daily.
    The actual daily file has several hundred rows. During the course of a month, it turns into a few thousand.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: VBA Pivot Table fixed Row Fields

    I have a pivot table dealing with over 100,000 rows. It collects water meter reading from 137 homes, 4 times a day. We've collected data since Nov 2009.

    If you have a few hunded rows a day and start again each month, you are fine. The more data the more effective pivot tables are.

+ 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