Hello à tous,
J'ai ce bout de code qui fonctionne tres bien mais qui est tres lent :
With Worksheets("CRM")
Range("F7") = Application.CountIfs(.Range("G20:G20000"), "NMA", .Range("B20:B20000"), "<=" & Format(Date, "dd/mm/yyyy"))
End With
Ce que je voudrais faire c'est pouvoir cumuler les COUNTIFS mais dès que j'en mets un deuxiemme ca fait planter excel ...
Je voudrais arriver a un code qui fasse ceci :
With Worksheets("CRM")
Range("F7") = Application.CountIfs(.Range("G20:G20000"), "NMA", .Range("B20:B20000"), "<=" & Format(Date, "dd/mm/yyyy"))
Range("E7") = Application.CountIfs(.Range("G20:G20000"), "ADU", .Range("B20:B20000"), "<=" & Format(Date, "dd/mm/yyyy"))
Range("G7") = Application.CountIfs(.Range("G20:G20000"), "CCA", .Range("B20:B20000"), "<=" & Format(Date, "dd/mm/yyyy"))
End With
Voilà
Merci bcp
Nico