Hi,

a first approach could be


Formula: copy to clipboard
=index(data(b$2:b$1000,match(left(b1,find(" ",b1)-1),data!a$2:a$1000,0))


A sample file could be helpful to adjust formula references