Copy rows to other sheets based on criteria

opislak

Board Regular
Joined
Feb 28, 2017
Messages
68
Hi all,

I would like to copy data from one (master) sheet to different other sheets, based on data in each of the rows. The raw data is not sorted.

The raw data looks like this (I hereby only show 2 relevant columns, but there are many more that should also be copied. The range goes from A to AH):
- column A: name of the coworker
- column B: group where the colleague works
- and a lot of other columns...
You only see a part of the list (totals 850 names) and not all coworkers are ICT-personnel.

In the example, the code after "ICT" is the group-name (e.g. "AT" stands for "Architecture Team", "IS" for "Infrastructure Services", etc.) Regardless of the code following "AT" (like "DA" or "TC", they all have to get on the tab of the Architects.
The list of raw data changes regularly. So I would like to automate the different tabs, so I only have to maintain the "master" sheet. How should I proceed in VBA to append name per name to the right sheet?

Many thanks!!
Patrick.

NameGroup
GlenICT/AT/DA
MarkICT/AT/DA
BjornICT/AT/DA
TimICT/AT/TC
PeterICT/AT/TC
RobertICT/AT/TC
ChrisICT/IS/DMS
BrendanICT/IS/DMS/ASE
FrankICT/IS/DMS/ASE
DustyICT/IS/DMS/ASE
AlanICT/IS/DMS/DBA
FranckyICT/IS/DMS/DBA
VincentICT/IS/DMS/DBA
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,213,583
Messages
6,114,495
Members
448,575
Latest member
hycrow

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