Forum Discussion
Bonjour, souhait de faire une fonction SI
Bonjour
Je suis sur un tableau fournisseur.
Je souhaiterais ajouter une colonne ou dedans il y aurait deux choix : "oui" et "non".
Le "oui" serait Si un fournisseur (colonne C) intervient dans plusieurs catégories (colonne E), c'est à dire 3 minimum.
Si le fournisseur intervient dans moins de 3 catégories, alors un "non".
J'ai l'impression que les formules "SI" ne se font que si on cherche des Chiffres et dans mon cas, je cherche à mettre des conditions sur le nombre des différentes catégories par fournisseur.
Auriez vous une idée pour m'aider svp ? Merci
10 Replies
- PeterBartholomew1Silver Contributor
- afoucaulCopper Contributor
The Excel is like that so when i write the formula; Neither the Supplier; neither Oui or Non works
- PeterBartholomew1Silver Contributor
Hopefully this is a step in the right direction.
= IF(MAP(Fournisseur, CategoryCountλ)>=3, "Oui", "Non") CategoryCountλ = COUNTA(UNIQUE(FILTER(Category, Fournisseur = s)))
- PeterBartholomew1Silver Contributor
COUNTIFS works for text fields.
= MAP(Supplier, LAMBDA(s, COUNTA(UNIQUE(FILTER(Category, Supplier=s))) ))
Counts the number of categories that are listed for each supplier. Using a Lambda function, this could be expressed
= MAP(Supplier, CategoryCountλ)
Putting this together and one gets
= IF(MAP(Supplier, CategoryCountλ)>=3, "Oui", "Non")