No worries I've changed it up to go in cell B2 sheet 1
=INDEX(Sheet2!$1:$1048576,MATCH("*"&D2&"*",Sheet2!$B:$B,0),12)
First part of the Index is the array, I am assuming you have data in sheet2
Second part I match a wild card of cell D2 to Sheet 2 column B to give me a row number
Third part I return column 12 as column number
B2 equals Sheet 2 Cell (L whatever the row number is)