Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

WorksheetFunction.sumproduct..

1 réponse
Avatar
Yvan
Bonjour,

Quelle syntaxe utiliser avec cette fonction ??? La suivante ne fonctionne
pas :

Label1.Caption = WorksheetFunction.SumProduct((Sheets("Journal des
Dépôts").Range("P5:P5000") >= Sheets("Infos").Range("G3")) * (Sheets("Journal
des Dépôts").Range("P5:P5000") <= Sheets("Infos").Range("H3")),
Sheets("Journal des Dépôts").Range("N5:N5000"))

--
Merci pour vos réponses.

1 réponse

Avatar
AV
Une syntaxe simplifiée :
Label1.Caption = [sumproduct(('Journal des Dépôts'!P5:P20>=Infos!G3)*('Journal
des Dépôts'!P5:P20<=Infos!H3)*Infos!N5:N20)]

PS : les noms de feuilles ou de fichiers ou... comportant des espaces présentent
surtout des inconvénients...
AV