Formula to input value
And you don't need the list sorted if you add the FALSE argument.
=VLOOKUP(C1,$A$1:$B$3,2,FALSE)
Which will return #N/A is no match found.
You may want to mask the error by adding the ISNA function.
=IF(ISNA(VLOOKUP(C1,$A$1:$B$3,2,FALSE)),"",VLOOKUP (C1,$A$1:$B$3,2,FALSE))
Gord Dibben MS Excel MVP
On Wed, 1 Apr 2009 11:50:14 -0700, JonR
wrote:
Lisa,
My bad -- I should have told you to use absolute references for your data
range
=VLOOKUP(C1,$A$1:$B$3,2)
The $ character 'locks' the reference to the column or row. This way when
you drag the formula down you will continue to refer to the correct range of
cells.
=VLOOKUP(C1,$A$1:$B$3,2)
=VLOOKUP(D1,$A$1:$B$3,2)
=VLOOKUP(E1,$A$1:$B$3,2)
|