No clever programming required...
Enter =VLOOKUP(Sheet2!A1,Sheet1!A1:B5,2,0) into
cell Sheet2!B1 where Sheet1 is your Source and
Sheet2 is your Target.
Minor revision... plus additional instructions...
Enter =VLOOKUP(Sheet2!A1,Sheet1!$A$1:$B$5,2,0) into
cell Sheet2!B1... and copy down to Sheet2!B5.
Re: Minor revision... plus additional instructions...
Almost works but not quite. The problem is that I have multipule rows in the target column that refer to only one row in the source.
Source data:
1 American Motors
2 Jeep
3 AM General
6 Chrysler
7 Dodge
etc...
Target data:
1
1
1
2
2
3
3
3
3
6
6
etc
Here's what I get when I use your program:
1 American Motors
1 #N/A
1 #N/A
2 #N/A
etc...
Shouldn't make any difference...
Are you sure that you're using...
=VLOOKUP(Sheet2!A1,Sheet1!$A$1:$B$5,2,0)
...where Sheet2 is your Target and Sheet1 is
your Source?
I get...
{1,"American Motors"
;1,"American Motors"
;1,"American Motors"
;2,"Jeep"
;2,"Jeep"
;3,"AM General"
;3,"AM General"
;3,"AM General"
;3,"AM General"
;6,"Chrysler"
;6,"Chrysler"}
Works great now. Thanks so much. :)
I entered: =VLOOKUP(Sheet2!A1,Sheet1!A1:B5,2,0) into cell Sheet2!B1 where Sheet1 is Source and Sheet2 is Target.
I see in your latest email a different code. It looks like you put in some dollar signs. Perhaps that is why. Thanks again. Are you sure that you're using... =VLOOKUP(Sheet2!A1,Sheet1!$A$1:$B$5,2,0) ...where Sheet2 is your Target and Sheet1 is }