I have been tasked with a extracting some data from a spreadsheet not being that good i would like some help with VBA
all the data is on sheet 1 and there is duplicated through out.
the way it is layed out is where ever there is a part number there is a serial number in the right hand cell. What i want to do is use list of part numbers in Colmn A sheet 2 search in sheet 1 and Paste the found serial numbers next to the selected part numbers in sheet 2 if that maked sense.
Thanks
Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Part 1[/TD]
[TD]Serial [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]part2[/TD]
[TD]serial[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Part3[/TD]
[TD]Serial[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Part 5[/TD]
[TD]Serial[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2 [TABLE="width: 100"]
<tbody>[TR]
[TD]Part 1[/TD]
[TD]Serial[/TD]
[/TR]
[TR]
[TD]Part2
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Part 3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Part 4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Part 5[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
all the data is on sheet 1 and there is duplicated through out.
the way it is layed out is where ever there is a part number there is a serial number in the right hand cell. What i want to do is use list of part numbers in Colmn A sheet 2 search in sheet 1 and Paste the found serial numbers next to the selected part numbers in sheet 2 if that maked sense.
Thanks
Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Part 1[/TD]
[TD]Serial [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]part2[/TD]
[TD]serial[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Part3[/TD]
[TD]Serial[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Part 5[/TD]
[TD]Serial[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2 [TABLE="width: 100"]
<tbody>[TR]
[TD]Part 1[/TD]
[TD]Serial[/TD]
[/TR]
[TR]
[TD]Part2
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Part 3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Part 4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Part 5[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]