Sub Nombre()
Columns("A:A").Sort Key1:=Range("A1"), Order1:=xlAscending
derlign = Range("A65000").End(xlUp).Row
A = 1
B = 1
i = 1
Do
Do
If Cells(A, 1) > i Then
Cells(B, 2) = i
B = B + 1
End If
i = i + 1
Loop Until Cells(A, 1) = i - 1
A = A + 1
Loop Until A = derlign + 1
End Sub