Excel Macro to Combine data

hishamash

New Member
Joined
Jun 26, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi ,

I have around 200 + Excel sheets in a folder. Each sheet is named as Club 1.xlsx, Club 2.xlsx, Club 3.xlsx and simultaneously till the last excel sheet.

I have a master data sheet(mds) with the name coordinator_data.xlsx. In the master data sheet i have 4 different tabs
Tab1 : coordinator
Tab2 : employee data
Tab3: Lookup_Club
Tab4: Lookup_Location

The below is the sample data which will be in source sheets club 1, club 2, club 3 etc

Coordinators Name
Phone Number
Commercial license number

club name according the commercial license

Facility location
بيانات العاملين / Employee Data
SlNo

Full Name
ID Number
Phone Number

Residence
1
2
3
4


Could you please help me with a macro to copy the below details

1) Copy certain fields from each source excel to the master data sheet coordinator tab ,

Club No will be Excel sheet number say if the excel sheet is Club 1, the Club No should be 1 , If the excel sheet is Club 2 the Club No should be 2 simultaneously for all the sheets.
DataType Should be Facility Coordinator data for each row created.

Data Type​
Club No.​
Coordinator name​
Phone​
Commercial​
Club name​
Facilty location​
State​


2) Copy employee data certain fields from source excel to the master data sheet employee data tab
Club No will be Excel sheet number say if the excel sheet is Club 1, the Club No should be 1 , If the excel sheet is Club 2 the Club No should be 2 simultaneously for all the sheets.
DataType Should be Employee Data each row created.

Data TypeClub No.Full NameID No.ID SourcePhone No.Residence


3) Copy Club name data fields from source excel to master data sheet lookup_club tab
Club No.​
Club Name​

Club No will be Excel sheet number say if the excel sheet is Club 1, the Club No should be 1 , If the excel sheet is Club 2 the Club No should be 2 simultaneously for all the sheets.

4) Facility location data fields from source excel to master data sheet lookup_location

Location Name​

Please help me to make a macro and also very important is that each time a new excel is saved in the folder the master data sheet should be updated with the new data.



Thank You
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,907
Messages
6,122,181
Members
449,071
Latest member
cdnMech

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