Bonjour,
S'il faut faire suivre le format des cellules de la colonnes B, il faut passer par un bout de code en VBA.
Exemple;
Sub Tri()
Dim i As Long, DerLig As Long
Application.ScreenUpdating = False
DerLig = Range("A" & Rows.Count).End(xlUp).Row
Range("A2:C" & DerLig).Sort [A1], 1
With Range("B2:B" & DerLig)
.Borders(xlEdgeBottom).LineStyle = xlNone
.Borders(xlDiagonalDown).LineStyle = xlNone
End With
For i = 2 To DerLig
If Cells(i, "B") = "" Then
With Cells(i, "B").Borders(xlDiagonalDown)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThick
End With
With Cells(i, "B").Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThick
End With
End If
Next i
End Sub
Le fichier
Cdlt