• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Automatically copy and paste values in excel, to create historical table|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Automatically copy and paste values in excel, to create historical table|VBA & Macros|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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 ForumVBA & MacrosAutomatically copy and paste values…
sp_PrintTopic sp_TopicIcon
Automatically copy and paste values in excel, to create historical table
Avatar
C. Toppin
Member
Members
Level 0
Forum Posts: 6
Member Since:
December 21, 2019
sp_UserOfflineSmall Offline
1
December 21, 2019 - 10:01 am
sp_Permalink sp_Print sp_EditHistory

Hello Excel Fans.

I am working on a plan and I want you to feel comfortable rejecting the plan and feel free to give me your ideas, that's best for all of us.

My problem here is this:

On "sheet 1". I am receiving multiple "data from excel web" AUTOMATICALLY on "Column A (Countries)",  "Column B (Dates)" and "Column C (Values)"

In "sheet 1", how can I copy individual row at the same time and paste each row values into separate "worksheets" to create historical data.

Or to create a historical list for each country.

See example below. 

Sheet1: A1, B1 & C1 values paste into Sheet2 A1, B1 & C1
Sheet1: A2, B2 & C2 values paste into Sheet3 A1, B1 & C1
Sheet1: A3, B3 & C3 values paste into Sheet4 A1, B1 & C1
Sheet1: A4, B4 & C4 values paste into Sheet5 A1, B1 & C1                                                                                                                      Sheet1: A5, B5 & C5 values paste into Sheet6 A1, B1 & C1

Also See Pic. Example. The color codes represents where the historical data is storing. 

Every new data is paste in the next available row.

How can you help me?

NB: SHEET 3 ON THE PHOTO SHOULD HAVE BEEN SHEET 1 IT'S AN ERROR

 

21.PNGImage Enlarger

22.PNGImage Enlarger
1423.PNGImage Enlarger
24.PNGImage Enlarger
25.PNGImage Enlarger
26.PNGImage Enlarger
27.PNGImage Enlarger
28.PNGImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage 21.PNG (35 KB)
  • sp_PlupImage 22.PNG (29 KB)
  • sp_PlupImage 23.PNG (29 KB)
  • sp_PlupImage 24.PNG (30 KB)
  • sp_PlupImage 25.PNG (29 KB)
  • sp_PlupImage 26.PNG (28 KB)
  • sp_PlupImage 27.PNG (28 KB)
  • sp_PlupImage 28.PNG (29 KB)
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1529
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
December 21, 2019 - 2:24 pm
sp_Permalink sp_Print

Hi,

You can use events to detect when new data is entered into the sheet, and then use VBA to copy that data elsewhere.

Rather than use a separate sheet for each country I'd use a single table for everything.  This will make the adding of new data easier and will simplify reporting as your data will be in a tabular format in a single location rather than dotted around the place in different sheets.

Regards

Phil

Avatar
C. Toppin
Member
Members
Level 0
Forum Posts: 6
Member Since:
December 21, 2019
sp_UserOfflineSmall Offline
3
December 21, 2019 - 3:42 pm
sp_Permalink sp_Print sp_EditHistory

Quote: "You can use events to detect when new data is entered into the sheet, and then use VBA to copy that data elsewhere."

Thank you for your swift reply. 

The problem is. I have a little over of seventy countries, in total.

And i understand what you are saying, I also have thought about it that way as well. But this is what apply:

Each worksheet have a chart that represent each country data. If I follow your suggestions.

How am I going to work around that?

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
December 22, 2019 - 2:45 am
sp_Permalink sp_Print

You can consider creating a Pivot Table for each country in different sheets and then create the chart from them.

Avatar
C. Toppin
Member
Members
Level 0
Forum Posts: 6
Member Since:
December 21, 2019
sp_UserOfflineSmall Offline
5
December 22, 2019 - 2:54 am
sp_Permalink sp_Print

What are the steps to get this done? How I am going to do that?

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1529
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
6
December 22, 2019 - 9:41 am
sp_Permalink sp_Print

In each country specific sheet, create a pivot table for that country.  Info on creating and working with Pivot tables here

https://www.myonlinetraininghu.....ivot-table

then create your chart(s).

Regards

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Magnolia Stellata
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 216
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Melanie Ford
Isaac Felbah
Adele Glover
Hitesh Asrani
Rohan Abraham
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Forum Stats:
Groups: 3
Forums: 24
Topics: 6356
Posts: 27793

 

Member Stats:
Guest Posters: 49
Members: 32324
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.