Hello everyone
I ran into a problem with Excel that i hope you can help me
The thing i have to do is as following:
In a spreadsheet (attached file), in Sheet 1, i have a column represents the Name, and a column represents a Company Code,
and another column represent the Number Code
In sheet 2, i have a column represents the Name Tag, a column represents a Company Code, and another column represent the Number Code
and i want to match the data in sheet 2 into sheet 1 in the following way:
if the company code AND the number code of a row in sheet 2 matches the company code and the number code of a row in sheet 1,
then i want to create a new column in sheet 1 , contains the Name Tag taken from Sheet 2 correspond to the company and number code
those that are in sheet 2 and not in sheet 1 will be filled in at LAST (i.e, there will be blank cells to the left of the column we created in sheet 1)
Those that are in sheet 1 but not in sheet 2 will be left blank
The attachment i have is just a small sample
i hope you can help me come up with a VBA code for doing this
or if there is another easier way to do this, please help me
thank you very much
appreciated it.
I ran into a problem with Excel that i hope you can help me
The thing i have to do is as following:
In a spreadsheet (attached file), in Sheet 1, i have a column represents the Name, and a column represents a Company Code,
and another column represent the Number Code
In sheet 2, i have a column represents the Name Tag, a column represents a Company Code, and another column represent the Number Code
and i want to match the data in sheet 2 into sheet 1 in the following way:
if the company code AND the number code of a row in sheet 2 matches the company code and the number code of a row in sheet 1,
then i want to create a new column in sheet 1 , contains the Name Tag taken from Sheet 2 correspond to the company and number code
those that are in sheet 2 and not in sheet 1 will be filled in at LAST (i.e, there will be blank cells to the left of the column we created in sheet 1)
Those that are in sheet 1 but not in sheet 2 will be left blank
The attachment i have is just a small sample
i hope you can help me come up with a VBA code for doing this
or if there is another easier way to do this, please help me
thank you very much
appreciated it.
Comment