Function SommeJour(plage As Range, dates As Range, jour$)
Dim critere, i%, j%
critere = Array("CP", "Récup", "Repos", "Conv", "Dem", "Repos", "Sup")
For i = 1 To plage.Count
If IsNumeric(Application.Match(plage(i), critere, 0)) Then
For j = i To 1 Step -1
If dates(j) <> "" Then
If Format(dates(j), "dddd") = LCase(jour) Then SommeJour = SommeJour + 1
Exit For
End If
Next j
End If
Next i
End Function