Re,
mon but c'est que la macro remplis uniquement les cellule vides en respectant les condition de recherche sur les colonnes.
Pas sûr de tout comprendre....
Donc si G est vide, tu appliques la formule en G, sinon tu laisses la valeur déjà présente en G ?
Sub test()
Dim F1 As Worksheet, F2 As Worksheet
Dim pl1 As Range, pl2 As Range, pl3 As Range, pl4 As Range
Dim i As Integer, dl As Integer, dl2 As Integer
Set F1 = Sheets("Feuil1")
dl = F1.Range("A" & Rows.Count).End(xlUp).Row
Set F2 = Sheets("Feuil2")
dl2 = F2.Range("A" & Rows.Count).End(xlUp).Row
Set pl1 = F2.Range("G2:G" & dl2)
Set pl2 = F2.Range("C2:C" & dl2)
Set pl3 = F2.Range("D2:D" & dl2)
Set pl4 = F2.Range("E2:E" & dl2)
Application.ScreenUpdating = False
For i = 2 To dl
If F1.Range("G" & i) = "" Then
F1.Range("G" & i) = Application.WorksheetFunction.SumIfs(pl1, pl2, F1.Range("C" & i), pl3, F1.Range("D" & i), pl4, F1.Range("E" & i))
End If
Next i
Application.ScreenUpdating = True
End Sub
Cordialement,