This is your code.
Sub Macro13()
LR = Range("A1").End(xlDown).Offset(1, 0).Row
Columns("P:P").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("P2:P" & LR).FormulaR1C1 = _
"= MID(RC[-1], FIND(""-"", RC[-1]) + 1, FIND(""^^"", SUBSTITUTE(RC[-1], ""-"", ""^^"", 2)) - FIND(""-"", RC[-1]) - 1)"
Range("P2:P" & LR).Value = Range("P2:P" & LR).Value
End Sub
The first line tries to find your last row by looking down from A1 to find the first blank.
Change this so it matches your data.
Bookmarks