Sub trier()
With ActiveSheet
If .Range("AW1") = "AUXIL" Then .Columns("AW:AW").Delete
.Columns("AW:AW").Insert: .Range("AW1") = "AUXIL"
With .Range("AM2:BA" & .Range("AM" & Rows.Count).End(xlUp).Row)
.Sort key1:=.Cells(2, 3), order1:=xlAscending, Header:=xlNo
.Columns(11).FormulaR1C1 = "=IF((R2C37-RC[1])>=R1C37,"""",ROW())"
.Columns(11).Value = .Columns(11).Value
.Sort key1:=.Cells(2, 11), order1:=xlAscending, Header:=xlNo
On Error Resume Next
Intersect(.Columns(11).SpecialCells(xlCellTypeBlanks).EntireRow, .Rows).Clear
End With
If .Range("AW1") = "AUXIL" Then .Columns("AW:AW").Delete
End With
End Sub