+ Reply to Thread
Results 1 to 5 of 5

Copy/Paste from Pivot Table with Different Years to Multiple Worksheets

  1. #1
    Registered User
    Join Date
    06-07-2017
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2016
    Posts
    9

    Unhappy Copy/Paste from Pivot Table with Different Years to Multiple Worksheets

    Hi everyone, I am new to this forum and am a summer student needing help at an internship. I'm dealing with sensitive information so unfortunately, I cannot post it here.

    I am working with a Pivot Table with many fields which include different school names and years broken down into actual and budgeted revenues/expenses. Currently, I have an excel file created with a template for each school.

    I am working with a Pivot Table with many fields which include schools, years, and their actual vs. budgeted revenues and expenses. I've been asked to create a variance analysis using that information. Currently, I have a basic template made so it will consist of one workbook per school and each workbook will have 10 sheets for 10 different years. I have been going in the Pivot Table and copying values from 2005-2006 and pasting it onto the relevant worksheet, but then I need to manually change the year to 2006-2007, and do the same thing. How can I automate this?

    I've tried recording my filter but am not sure how to automate it to loop or go to the next year...Please help as I'm currently spending about 5 minutes on each worksheet just copying and pasting information in. Essentially, I am looking to have a code that will: - change the year to the next, copy and paste actual revenue, copy and paste budgeted revenue, then repeat but with a new year. After that, I'm looking for one to to be able to do the same but with expenses instead.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Copy/Paste from Pivot Table with Different Years to Multiple Worksheets

    I'm dealing with sensitive information so unfortunately, I cannot post it here.
    You can always make a small sample that represent your data set. Desensitizing data by replacing school names with innocuous names (Ex. SchoolA, SchoolB etc). And replacing financial value with fictitious numbers.

    Also, clearly demonstrate how your end result should look like.

    Without sample workbook, it is very difficult to give you solution that fits your need.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    06-07-2017
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2016
    Posts
    9

    Re: Copy/Paste from Pivot Table with Different Years to Multiple Worksheets

    Here you go as a visual, I crossed out the school names and city.
    Pivot Table.jpgCapture.JPG

  4. #4
    Registered User
    Join Date
    06-07-2017
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2016
    Posts
    9

    Re: Copy/Paste from Pivot Table with Different Years to Multiple Worksheets

    Good idea! I just replied to this thread with screenshots. Essentially, I need to keep changing the year on the pivot table for the selected school and copy and paste into my excel file's worksheet for the same year. There are 4 tables total I need to copy and paste for each year: actual revenues, budgeted revenues, actual expenses, and budgeted expenses. I was thinking of creating two separate macros, one for revenues and one for expenses. Hope that makes sense! I just don't want to manually change the year on the filter each time and copy and paste by hand. Thank you for your help!

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Copy/Paste from Pivot Table with Different Years to Multiple Worksheets

    Please upload a sample workbook. Writing code based on image alone is difficult to say the least.

+ 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. [SOLVED] Copy and paste formula outside pivot table using information from table
    By batjl9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2014, 07:10 AM
  2. Is that possible to copy and paste pivot table to multiple sheets?
    By Yola88 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-14-2013, 05:01 PM
  3. Macro to Copy Pivot Table and Paste a Regular Data Table in the Same Position
    By webfeet2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-01-2013, 06:34 AM
  4. Copy/Paste Range of Data from Multiple Workbooks/Worksheets to Master Workbook/Worksheets
    By NumberCruncher311 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2013, 08:21 PM
  5. Copy paste multiple sheets including pivot table formats
    By Fursmanm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2012, 09:14 AM
  6. Cut and Paste Between Worksheets Breaks Pivot Table
    By Lord451 in forum Excel General
    Replies: 0
    Last Post: 02-08-2012, 02:01 PM
  7. Copy / Paste Pivot Table to PPT
    By skizz135 in forum Excel General
    Replies: 1
    Last Post: 07-08-2008, 02:36 PM

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