var2=LEFT( var1, LEN(var1) - 5 )
Sub RemoveLast5()
Dim lr As Long
lr = Cells(Rows.Count, "A").End(xlUp).Row
For i = 2 To lr
Cells(i, 2) = Left(Cells(i, 1), Len(Cells(i, 1)) - 5)
Next i
End Sub
Sub Maybe_A()
With Range("B2:B" & Cells(Rows.Count, 1).End(xlUp).Row)
.Formula = "=LEFT(RC[-1],FIND(""_"",RC[-1])-1)"
.Value = .Value
End With
End Sub
Sub Maybe_B()
Dim i As Long
For i = 2 To Cells(Rows.Count, 1).End(xlUp).Row
Cells(i, 2).Value = Trim(Split(Cells(i, 1), "_")(0))
Next i
End Sub