Break up the formula I gave you.
=VLOOKUP(A1,Sheet2!A1:B4,2,FALSE)
=VLOOKUP(source data cell,data range,
column number,FALSE)
The 'FALSE' condition sets it to look for exactly that value. Bear in mind that if there are duplicate values in the first column, Excel will return the first result, e.g. using '4' as the search value:
1
2
3
4 (this is the one returned, and the others are ignored)
4
4
5
That aside if you're looking at A1 to D25, your code would be:
For cell B1 (first sheet):
=VLOOKUP(A1,Sheet2!A1:D25,
2,FALSE)
cell C1:
=VLOOKUP(A1,Sheet2!A1:D25,
3,FALSE)
cell D1:
=VLOOKUP(A1,Sheet2!A1:D25,
4,FALSE)
~~~~~~~~~~
© Camieabz 2002-2012
All Connection Data ~
plusnet
Scottish Labour politician: �The SNP are on a very dangerous tack. What they are doing is trying to build up a situation in Scotland where the services are manifestly better than south of the border in a number of areas.�
Interviewer: �Is that a bad thing?�
Scottish Labour politician: �No, but they are doing it deliberately.�
Edited by camieabz (Sun 12-Feb-12 14:02:36)