=IF(ISNA(MATCH(LEFT(c1,5),LEFT(A1:A10,5),0)),"No
match",INDEX(B1:A10,MATCH(LEFT(C1,5),LEFT(A1:A10,5 ),0)))
which is an array formula so commit with ctrl-shift-enter.
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Deeds" wrote in message
...
I am trying to ultimately do a lookup...I will word it out so as to
explain
my goal....If the 1st 5 digits of the number in Cell A1 equals the 1st 5
digits of a number in a range....then bring back the corresponding flag
from
the range (table) of numbers. I want it to look at a table and find the
number that begins with the same 5 digits and return it's corresponding
flag
(column b).
Thanks in advance!
|