Macro to collect data and update rows

egyblind

New Member
Joined
Dec 4, 2020
Messages
2
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,213,501
Messages
6,114,010
Members
448,543
Latest member
MartinLarkin

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