Macro fro transferring data from multiple sheets onto one and in a certain order

Tonyk1051

Board Regular
Joined
Feb 1, 2021
Messages
132
Office Version
  1. 2019
Platform
  1. Windows
So every 2 weeks I get a 2 workbooks, the first workbook has 3 worksheets which i need to match the data from all 3 into a new worksheet, making sure the coulmn header and data is correct. Each worksheet usually has 10000 lines and im only only copying and pasting 8 or 9 columns worth of data . (Basically all 3 worksheets have the same header name in a differnt order and the amount for each is differnt so i put the total amount in sheet 4 in a certain order of course) The second workbook only has one worksheet worth of data about 20000 lines which only has to be re oraganized. So technically 2 macros 1 for each workbook

Sample 1.xlsm ( this is workbook1 with the 3 worksheets)

Sample 2.xlsm (this is workbook 2 that only has 1worksheet)

let me know if you need more info
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
So easy when headers names are the same between worksheets but when it's not the case like here​
you must create an header table in a 'Settings' worksheet in order to match the headers in source worksheets with the headers of result worksheet​
or hardcode them …​
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,575
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top