Public Sub NRF95()
Const START_ROW = 2, START_COL = 1
Dim ws As Worksheet, lr As Long, lFormula As String, rFormula As String
Dim sortL As Range, sortR As Range
Application.ScreenUpdating = False
Set ws = ThisWorkbook.Worksheets("Sheet1")
lr = ws.Cells(Rows.Count, "A").End(xlUp).Row
ws.Columns(START_COL + 1).Insert Shift:=xlToRight
ws.Columns(START_COL + 2).Insert Shift:=xlToRight
lFormula = "=LEFT(" & Replace(ws.Cells(START_ROW, START_COL).Address, "$", "") & ",5)"
rFormula = "=RIGHT(" & Replace(ws.Cells(START_ROW, START_COL).Address, "$", "") & ",2)"
With ws.UsedRange 'Apply Formulas
.Columns(START_COL + 1).Offset(1).Formula = lFormula
.Columns(START_COL + 2).Offset(1).Formula = rFormula
Set sortL = .Columns(START_COL + 1).Offset(1).Resize(lr - 1)
Set sortR = .Columns(START_COL + 2).Offset(2).Resize(lr - 1)
End With
With ws.Sort 'Apply Sort
With .SortFields
.Clear
.Add Key:=sortR
.Add Key:=sortL
End With
.SetRange ws.UsedRange.Offset(1).Resize(lr - 1)
.Apply
End With
ws.Columns(START_COL + 2).Delete 'Remove helper columns (if needed)
ws.Columns(START_COL + 1).Delete 'Remove helper columns (if needed)
Application.ScreenUpdating = True
End Sub