bonjour,
une proposition via une macro
With Feuil1
dl = .Cells(Rows.Count, 1).End(xlUp).Row
dn = Val(.Cells(dl, 1))
For i = dl - 1 To 39 Step -1
dn1 = Val(.Cells(i, 1))
If dn - dn1 > 1 Then
Rows(i + 1 & ":" & i + dn - dn1 - 1).Insert
' .Cells(i + 1, 1).Resize(dn - dn1 - 1) = Application.WorksheetFunction.Sequence(dn - dn1 - 1, 1, dn1 + 1, 1) 'version office 365
.Cells(i + 1, 1).Resize(dn - dn1 - 1) = Evaluate("=row(A" & dn1 + 1 & ":A" & dn - 1 & ")") 'version antérieure à office 365
End If
dn = dn1
Next i
End With
End Sub