Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
I'm pretty new with VBA scripting. But what i want is the following. I have 2 sheets. in Sheet 1 I have som1 names of som different companies at the A column. These companies are also presented in sheet 2 at the C column. In sheet 2 in Column A are the names of the employee's. What i want is a VBA script that looks in column A of sheet 1 and search for the same companie name in sheet 2 at column C. If there is a match he should copy the names of the employee's to sheet 1 behind the company name in the G column. The problem is that there are som employees who work in 2 companies. These companies are in the same cell separated by a ';' . Here a little example. sheet 1: A B C D E F G 1 Farm 2 Electro 3 ICT 4 Mechanic In G1 should come all employees of farm in one cell, seperated by a ';' . Sheet 2 A B C 1 Piet ICT 2 Henk Mechanic 3 Klaas Farm;Electro Hope it is clear. If you come with a VBA script, please give a explanation so i can learn something. Sorry for my bad English. Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match with copy | Excel Discussion (Misc queries) | |||
Match and copy | Excel Worksheet Functions | |||
Match and Copy | Excel Worksheet Functions | |||
Copy to next empty row, if not a match | Excel Discussion (Misc queries) | |||
Maybe this isn't possible to match name and copy? | Excel Programming |