Hi I have an excel file with 3 columns on sheet1 ("Name", "ID" and "Name Data"): "Name Data" is a blank column.
Name ID Name Data
Albert 4235
John 4237
Ramesh 4239
Micky 4241
Minnie 4243
Donalid 4245
Edited 4247
Goofy 4249
On sheet 2, there will be a similar ID column with only one ID: eg:
ID
4243
I want the vlooup code to match the ID value on sheet2 (in this eg, that would be "4243") with ID value on sheet 1 and copy The name associated with that ID to "Name data" of sheet1. The result should look like:
Name ID Name Data
Albert 4235
John 4237
Ramesh 4239
Micky 4241
Minnie 4243 Minnie
Donalid 4245
Edited 4247
Goofy 4249
Here is the code I have:
The only issue with this code is that it copies the name onto first cell under "Name data". Eg: it do the following:
Name ID Name Data
Albert 4235 Minnie
John 4237
Ramesh 4239
Micky 4241
Minnie 4243
Donalid 4245
Edited 4247
Goofy 4249
The minnie should get copied on 5th row under "Name data" and not on 1st row (excluding heading rows)
Can anyone please suggest me what to fix in the code?
Thanks a ton!
Bookmarks