Forum Discussion
COUNTIFS avec criteres multiples
If you try to count suppliers which are simultaneously Supplier1 AND Supplier2, correct formula is like
=COUNTIFS(Inbound! H:H,DashBoard!A6,Inbound!P:P,"supplier1",Inbound!P:P,"supplier2")
but that has no sense from logic point of view. If to count Supplier1 OR Supplier2 than like
=COUNTIFS(Inbound! H:H,DashBoard!A6,Inbound!P:P,{"supplier1","supplier2"})
with constants, or
=COUNTIFS(Inbound! H:H,DashBoard!A6,Inbound!P:P,"supplier1")+COUNTIFS(Inbound! H:H,DashBoard!A6,Inbound!P:P,"supplier2")- al_BANSep 30, 2019Copper Contributor
Merci beaucoup pour ce retour!
J'ai finalement trouve la bonne synthaxe pour la formule qui est celle que vous proposez. Je me heurte a une autre difficulte:
Si maintenant je souhaite compter les fournisseurs d'une liste de 20 fournisseurs. Dois-je entre un a un la liste des fournisseurs ou je peux utiliser une formule de ce genre:
=COUNTIFS(Inbound! H:H,DashBoard!A6,Inbound!P:P,{Supplier!C21:C41})Je n'arrive pas a trouver un moyen plus synthetique, pour le moment je rentre les criteres manuellement ce qui est tres repetitifs.
Pour le moment j'ai des formules qui ressemblent a cela:
=COUNTIFS(Inbound!$AF:$AF,"Yes",Inbound!$H:$H,DashBoard!$A17, Inbound!$E:$E, DashBoard!E$4,Inbound!P:P, "<>"&Supplier!C40,Inbound!P:P, "<>"&Supplier!C43, Inbound!P:P, "<>"&Supplier!C41, Inbound!P:P, "<>"&Supplier!C42, Inbound!P:P, "<>"&Supplier!C34,Inbound!P:P, "<>"&Supplier!C35, Inbound!P:P, "<>"&Supplier!C36, Inbound!P:P, "<>"&Supplier!C37, Inbound!P:P, "<>"&Supplier!C38, Inbound!P:P, "<>"&Supplier!C39)Vous pouvez constater que c'est assez illisible !
Je decouvre tout juste la puissance d'excel! Merci pour votre aide.
Merci encore pour votre aide!
- SergeiBaklanOct 01, 2019Diamond Contributor
- al_BANOct 02, 2019Copper Contributor
It's not working...
I tried but the result is 0 each time.
Are you sure your formula is correct?
Thank you for your help, I really appreciate.