Sub estrazione() Dim r, d, x For x = 2 To Cells(Rows.Count, 1).End(xlUp).Row d = Cells(x, 1) If Cells(x, 2) Like d & "*" Then Cells(x, 3) = Mid(Cells(x, 2), Len(d) + 2) Next x End Sub