Bonsoir à tous,
une proposition presqu'aussi courte que celle d'Amadeus en VBA
Sub calcul()
Dim Lig As Long, Col As Integer, aa As String, bb, dercol As Integer, myRange As Range
Application.ScreenUpdating = False
Range("E3:E13").ClearContents
dercol = Cells(14, Columns.Count).End(xlToLeft).Column
c = 3
Do Until IsEmpty(Cells(c, 1))
aa = Cells(c, 1)
On Error Resume Next
Lig = Range(Range("A15"), Range("A15").End(xlDown)).Find(aa, , xlValues, xlWhole).Row
If Lig = 0 Then MsgBox aa & " ne se trouve pas dans le tableau": Exit Sub
bb = Cells(c, 2)
If Not IsDate(bb) Then MsgBox "L'entrée de votre cellule " & Cells(c, 2).Address & " est erronée.": Exit Sub
Col = Rows(14).Find(bb, , xlValues, xlWhole).Column
If Col = 0 Then MsgBox "La date du " & CDate(bb) & " ne se trouve pas dans le tableau": Exit Sub
On Error GoTo 0
Set myRange = Range(Cells(Lig, Col), Cells(Lig, dercol))
Cells(c, 5) = Application.WorksheetFunction.Sum(myRange)
c = c + 1
Loop
Application.ScreenUpdating = True
End Sub
à coller dans le module de la feuille correspondante