Formule SI selon une liste déroulante

Résolu/Fermé
Paulo69007 Messages postés 4 Date d'inscription lundi 3 septembre 2018 Statut Membre Dernière intervention 3 septembre 2018 - 3 sept. 2018 à 10:08
baladur13 Messages postés 46375 Date d'inscription mercredi 11 avril 2007 Statut Modérateur Dernière intervention 15 avril 2024 - 3 sept. 2018 à 10:39
Bonjour,

J'ai besoin d'aide sur un problème que je n'arrive pas du tout à résoudre seul.
Le voici:
J'ai créer une liste déroulante qui comprend 11 éléments (Tous;3001;3002;...;3010) et j'aimerais, selon l’élément choisi avec cette liste, ainsi que 2 autres conditions, calculer un nombre de case qui répondent à ces trois critères.
Donc voici ce sur quoi je suis parti avec N13 ma liste déroulante et les trois critères Famille Achats / 14001 / RSE signée

=SI(N13="Tous";NB.SI.ENS(Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3001";NB.SI.ENS(Tableau2[Famille Achats];"3001";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3002";NB.SI.ENS(Tableau2[Famille Achats];"3002";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3003";NB.SI.ENS(Tableau2[Famille Achats];"3003";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3004";NB.SI.ENS(Tableau2[Famille Achats];"3004";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3005";NB.SI.ENS(Tableau2[Famille Achats];"3005";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3006";NB.SI.ENS(Tableau2[Famille Achats];"3006";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3007";NB.SI.ENS(Tableau2[Famille Achats];"3007";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3008";NB.SI.ENS(Tableau2[Famille Achats];"3008";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3009";NB.SI.ENS(Tableau2[Famille Achats];"3009";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(N13="3010";NB.SI.ENS(Tableau2[Famille Achats];"3010";Tableau2[14001];"14001";Tableau2[RSE signée];"0");0)))))))))))

Le problème, c'est que ça ne marche que pour Tous, et que mon résultat passe a 0 quand je choisi une autre famille dans ma liste déroulante.

Voila voila, j'espère que vous pourrez m'aider, j'espère avoir était clair mais n’hésitez pas à me demander de réexpliquer.

Merci
A voir également:

2 réponses

M-12 Messages postés 1333 Date d'inscription lundi 22 septembre 2008 Statut Membre Dernière intervention 8 avril 2023 299
3 sept. 2018 à 10:10
Bonjour,

Un p’tit classeur avec 10/15 données serait mieux pour régler le soucis :yum:

Tu vas dans https://www.cjoint.com/
Tu cliques sur "PARCOURIR" pour sélectionner ton fichier
Clic le bouton "CREER LE LIEN"
Clic droit quand le lien est créé "COPIER LE LIEN"
Sur ton message Clic droit "Coller".
0
Paulo69007 Messages postés 4 Date d'inscription lundi 3 septembre 2018 Statut Membre Dernière intervention 3 septembre 2018
3 sept. 2018 à 10:23
0
Paulo69007 Messages postés 4 Date d'inscription lundi 3 septembre 2018 Statut Membre Dernière intervention 3 septembre 2018
3 sept. 2018 à 10:33
du coup la formule change un peu ça donnerai en S6:

=SI(04="Tous";NB.SI.ENS(Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3001";NB.SI.ENS(Tableau2[Famille Achats];"3001";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3002";NB.SI.ENS(Tableau2[Famille Achats];"3002";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3003";NB.SI.ENS(Tableau2[Famille Achats];"3003";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3004";NB.SI.ENS(Tableau2[Famille Achats];"3004";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3005";NB.SI.ENS(Tableau2[Famille Achats];"3005";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3006";NB.SI.ENS(Tableau2[Famille Achats];"3006";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3007";NB.SI.ENS(Tableau2[Famille Achats];"3007";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3008";NB.SI.ENS(Tableau2[Famille Achats];"3008";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3009";NB.SI.ENS(Tableau2[Famille Achats];"3009";Tableau2[14001];"14001";Tableau2[RSE signée];"0");SI(O4="3010";NB.SI.ENS(Tableau2[Famille Achats];"3010";Tableau2[14001];"14001";Tableau2[RSE signée];"0");0)))))))))))
0
M-12 Messages postés 1333 Date d'inscription lundi 22 septembre 2008 Statut Membre Dernière intervention 8 avril 2023 299
3 sept. 2018 à 10:33
Re,

Depuis ton classeur en PJ
tu places cette formule en S6 et tu la tires jusqu'à S9

=SI($O$4="Tous";NB.SI.ENS(H:H;14001;J:J;R6);NB.SI.ENS(F:F;$O$4;H:H;14001;J:J;R6))
0
Paulo69007 Messages postés 4 Date d'inscription lundi 3 septembre 2018 Statut Membre Dernière intervention 3 septembre 2018 > M-12 Messages postés 1333 Date d'inscription lundi 22 septembre 2008 Statut Membre Dernière intervention 8 avril 2023
3 sept. 2018 à 10:37
C'est parfait ..
Merci beaucoup M-12 ! j'aimerais avoir ton talent.
0
baladur13 Messages postés 46375 Date d'inscription mercredi 11 avril 2007 Statut Modérateur Dernière intervention 15 avril 2024 13 209 > Paulo69007 Messages postés 4 Date d'inscription lundi 3 septembre 2018 Statut Membre Dernière intervention 3 septembre 2018
3 sept. 2018 à 10:39
0