Salut Toto,
Salut les as,
en VBA, en double-cliquant sur la feuille pour démarrer la macro, affichage en [H:I], sur base des commentaires précédents, la colonne [H:H] étant déjà formatée en Heures.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'
Cancel = True
'
Range("A1:C" & Range("A" & Rows.Count).End(xlUp).Row).Sort key1:=[A2], order1:=xlAscending, Orientation:=xlTopToBottom, Header:=xlYes
tTab = Range("A2:C" & Range("A" & Rows.Count).End(xlUp).Row).Value
Range("I2:I362").Value = 0
tOut = Range("H2:I362").Value
'
For x = 1 To UBound(tOut, 1)
If x > 1 Then tOut(x, 2) = tOut(x - 1, 2)
For y = 1 To UBound(tTab, 1)
If Format(TimeValue(CDate(tTab(y, 1))), "hh:mm") = Format(TimeValue(CDate(tOut(x, 1))), "hh:mm") Then tOut(x, 2) = tTab(y, 3)
Next
Next
Range("H2").Resize(UBound(tOut, 1), 2).Value = tOut
'
End Sub
A+
EDIT
Avec le fichier, c'est mieux!
Autre précision : je ne construis pas le tableau des heures : je profite de son existence en colonne [H:H] !!