Originally Posted by
NBVC
It would be recommended to have a last name initial for everyone, because names like THOMAS and THOMAS G would be a problem if they are different people.
If you can do that, then you can follow these steps.
Add a helper column formula in D2:
=IF(ISNUMBER(MATCH(TRIM(C2)&"*",$B$2:$B$13,0)),COUNT(D$1:D1)+1,"")
copied down
In E2:
=MAX(D:D) to give total matches.
then in A2:
=IF(ROWS($A$1:$A1)>$E$2,"",INDEX($C$2:$C$9,MATCH(ROWS($A$1:$A1),$D$2:$D$9)))
copied down.
In the sample I removed a row from column B to show what the helper column and column A look like if a name is missing.
Bookmarks