The preceding play extracts in col C
.. names in col B which are within col A,
with all results neatly bunched at the top
If you need to (conversely) match it the other way around
(i.e. names in col A with those within col B),
just similarly ..
Place in C1:
=IF(ISERROR(SMALL(D:D,ROW(A1))),"",INDEX(A:A,MATCH (SMALL(D:D,ROW(A1)),D:D,0)))
In D1:
=IF(A1="","",IF(ISNUMBER(MATCH(A1,B:B,0)),ROW(),"" ))
Select C1:D1, fill down to last row of data in col A
Col C will auto-extract the names in col A which are within col B,
with all results neatly bunched at the top ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---