• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

routine task to automate|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / routine task to automate|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…routine task to automate
sp_PrintTopic sp_TopicIcon
routine task to automate
Avatar
Yuan Zhang
Member
Members
Level 0
Forum Posts: 26
Member Since:
December 2, 2021
sp_UserOfflineSmall Offline
1
March 9, 2023 - 2:51 am
sp_Permalink sp_Print

every month, I need to copy the formulas from last month (in the example month P03 on column e.g. X4=+C4 ) into the closing month (in the example month P04 on column Y). I need to then copy paste the value on column X into hard coded value. Then after I refreshed the pivot table, the value for the closing month will be updated in column Y but past periods will stay hard coded with the historical values. Can it be automated without using vba? Thanksmanual-work-1.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage manual-work-1.png (85 KB)
sp_AnswersTopicSeeAnswer See Answer
Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 440
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
2
March 9, 2023 - 4:47 pm
sp_Permalink sp_Print

You don't mention how the underlying data is structured, but perhaps you can keep the data for all periods in one large table and then create the pivot table with "Comp" as the row header and "Period" (i.e. P01, P02 etc,) as the column header. Then there is not need to do any copying and pasting. All will update dynamically when you refresh the pivot table.

Avatar
Yuan Zhang
Member
Members
Level 0
Forum Posts: 26
Member Since:
December 2, 2021
sp_UserOfflineSmall Offline
3
March 9, 2023 - 6:55 pm
sp_Permalink sp_Print

Thanks Riny for your help! Indeed I had the same thought to have all data listed in the 'input' sheet so there is no need for the client to copy paste anything. I was just wondering maybe there is another way if we don't have all database listed.

Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 440
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
4
March 9, 2023 - 7:34 pm
sp_Permalink sp_Print

Can imagine you could use Power Query to connect all files in a folder that contain the periodic files. Combine them into one large table for the year to date and then create a pivot table from that one. No VBA but it requires a Refresh when the next period's data comes in.

sp_AnswersTopicAnswer
Answers Post
Avatar
Yuan Zhang
Member
Members
Level 0
Forum Posts: 26
Member Since:
December 2, 2021
sp_UserOfflineSmall Offline
5
March 20, 2023 - 10:29 pm
sp_Permalink sp_Print

Thank you for your help! @Riny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Lawrence Smith
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Michelle Neven
Andrew Kuhn
Angela Paul
Forum Stats:
Groups: 3
Forums: 24
Topics: 6206
Posts: 27202

 

Member Stats:
Guest Posters: 49
Members: 31875
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.