Bonsoir,
Peut-être à régler
2 solutions, l'une en formule, l'autre en Dur
Sub EssaiFormules()
Dim Lg&, i%
Lg = Range("a" & Rows.Count).End(xlUp).Row
For i = 2 To Lg
Cells(i, "c") = "=AVERAGE(b" & i & ":b" & i + 3 & ")"
Cells(i, "d") = "=AVERAGE(c" & i - 1 & ":c" & i & ")"
Next i
End Sub
Sub EssaiDur()
Dim Lg&, i%
Lg = Range("a" & Rows.Count).End(xlUp).Row
For i = 2 To Lg
Cells(i, "c") = Application.Average(Cells(i, "b").Resize(4, 1))
Cells(i, "d") = Application.Average(Cells(i - 1, "c").Resize(2, 1))
Next i
End Sub
Amicalement
Claude