try this
Sub ertert()
Dim x, i&, j&, s: Application.ScreenUpdating = False
x = Range("A1:E" & Cells(Rows.Count, 1).End(xlUp).Row).Value
With CreateObject("Scripting.Dictionary")
.CompareMode = 1
For i = 1 To UBound(x)
If Len(x(i, 3)) Then .Item(Trim(x(i, 3))) = Array(x(i, 2), x(i, 3), x(i, 4), x(i, 5))
Next i
For i = 1 To UBound(x)
If Len(Trim(x(i, 2))) = 0 Then 'new line
s = Split(x(i, 1))
For j = 0 To UBound(s)
If .Exists(Trim(s(j))) Then Cells(i, 2).Resize(, 4).Value = .Item(Trim(s(j))): Exit For
Next j
End If
Next i
End With: Application.ScreenUpdating = True
End Sub
Bookmarks