Macro to collect data and update rows

egyblind

New Member
Joined
Dec 4, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
hello dears

i'm using ms-excel 2016, under windows-7 sp1.

i usually get files workbooks each one has 1 or many sheets
i want to collect data from these files / sheets into master workbook in one sheet
will copy all data mostly but in some columns by different order.


sheets have data like this:
id, name, address, telephone,branch,area, ...

master sheet will have:
id, name,adress,telephone-1, telephone-2,area,branch

in most cases if customer has 2 telephones data entery system enter it in 2 rows, like this:

id, name, address, telephone,branch,area
g13, jake, 7 st., 23456343, ,
k12,johne,ca st., 142635, ,
k12,johne,ca st.,150979, ,

in master sheet will be like this:

id, name, address, telephone-1,telephone-2,area,branch,verified_id
g13, jake, 7 st.,456343, , ,
k12,johne,ca st.,142635,150979, , ,k12

just will add the id at the end to verify that this data coppied from the same customer id.

hope i explained it fine, as a visually impaired unable to show screenshot.

many thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,144,684
Messages
5,725,760
Members
422,639
Latest member
i have a question

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
Top