Sub Essai()
If Month(Date) = 5 Then
Cells(5, 1) = Application.SumProduct([A1:A4], [B1:B4]) ' A adapter
Else
Cells(5, 1) = ""
End If
End Sub
If Month(Date) = 5 Then
[A5] = Evaluate("SumProduct((B2:B4)*(C2:C4))") 'Ta formule somme Prod
Else
[A5] = ""
End If
Sub Essai()
If Month(Date) = 5 Then
Cells(5, 1) = Application.SumProduct([A1:A4], [B1:B4]) ' A adapter
Else
Cells(5, 1) = ""
End If
End Sub
Sub Essai_Ter()
Cells(5, 1) = Application.SumProduct([A1:A4], [B1:B4]) * -(Month(Date) = 5)
End Sub