Microsoft 365 Simplification d'une formule excel

samuelcouni

XLDnaute Junior
Bonjour à tous,

J'aimerai votre support pour la formule suivante:

=NB.SI.ENS('Weekly_Report-2023.xlsm'!LoC[FY plant (resp. for the defect)];"FYCC";'Weekly_Report-2023.xlsm'!LoC[Quality / Logistic];"quality";'Weekly_Report-2023.xlsm'!LoC[Quarter];$D2;'Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"fuyao";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>warranty-accumulation";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>prior cost")+NB.SI.ENS('Weekly_Report-2023.xlsm'!LoC[FY plant (resp. for the defect)];"FYCC";'Weekly_Report-2023.xlsm'!LoC[Quality / Logistic];"quality";'Weekly_Report-2023.xlsm'!LoC[Quarter];$D2;'Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"supplier";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>warranty-accumulation";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>prior cost")

J'aimerai savoir si il est possible de la simplifier?
Et j'aimerai également rajouter un critère a ceux déjà existants qui sont Fuyao & supplier. Rajouter external partner.
ce qui me ferai rajouter à la formule du dessus :
+NB.SI.ENS('Weekly_Report-2023.xlsm'!LoC[FY plant (resp. for the defect)];"FYCC";'Weekly_Report-2023.xlsm'!LoC[Quality / Logistic];"quality";'Weekly_Report-2023.xlsm'!LoC[Quarter];$D2;'Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"external partner";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>warranty-accumulation";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>prior cost")

J'espère avoir été clair. Si ce n'est pas le cas, je m'en excuse par avance.

Merci pour votre aide.
 

njhub

XLDnaute Occasionnel
Bonjour samuelcouni, le forum,

Deux propositions ci-dessous, a vous de les tester, impossible d'ici sans fichier mis à disposition...

Code:
=SI(ET('Weekly_Report-2023.xlsm'!LoC[FY plant (resp. for the defect)];"FYCC";'Weekly_Report-2023.xlsm'!LoC[Quality / Logistic];"quality";'Weekly_Report-2023.xlsm'!LoC[Quarter];$D2;'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>warranty-accumulation";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>prior cost") ;somme(NB.SI('Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"fuyao");NB.SI(''Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"supplier");NB.SI(''Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"external partner"));"")

Code:
=SI(ET('Weekly_Report-2023.xlsm'!LoC[FY plant (resp. for the defect)];"FYCC";'Weekly_Report-2023.xlsm'!LoC[Quality / Logistic];"quality";'Weekly_Report-2023.xlsm'!LoC[Quarter];$D2;'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>warranty-accumulation";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>prior cost") ;NB.SI('Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];{"fuyao"|"supplier"|"external partner"});"")

;)
 

samuelcouni

XLDnaute Junior
Bonjour samuelcouni, le forum,

Deux propositions ci-dessous, a vous de les tester, impossible d'ici sans fichier mis à disposition...

Code:
=SI(ET('Weekly_Report-2023.xlsm'!LoC[FY plant (resp. for the defect)];"FYCC";'Weekly_Report-2023.xlsm'!LoC[Quality / Logistic];"quality";'Weekly_Report-2023.xlsm'!LoC[Quarter];$D2;'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>warranty-accumulation";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>prior cost") ;somme(NB.SI('Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"fuyao");NB.SI(''Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"supplier");NB.SI(''Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];"external partner"));"")

Code:
=SI(ET('Weekly_Report-2023.xlsm'!LoC[FY plant (resp. for the defect)];"FYCC";'Weekly_Report-2023.xlsm'!LoC[Quality / Logistic];"quality";'Weekly_Report-2023.xlsm'!LoC[Quarter];$D2;'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>warranty-accumulation";'Weekly_Report-2023.xlsm'!LoC[Claim type];"<>prior cost") ;NB.SI('Weekly_Report-2023.xlsm'!LoC[Real causer of the defect];{"fuyao"|"supplier"|"external partner"});"")

;)
Salut,

Merci pour les propals.
Comme tu l'as dit sans le fichier source c'est compliqué mais c'est du pro ...
J'ai tenté les deux mais ça ne fonctionne pas et me met pour la propal 1:
1696481587646.png


et pour la deux ça me met le même message:
avec le pointeur qui se met sur fuyao:
1696481698981.png
 

danielco

XLDnaute Accro
Bonjour,

Teste :

VB:
=SOMME(NB.SI.ENS(LoC[FY plant (resp. for the defect)];"FYCC";LoC[Quality / Logistic];"quality";LoC[Quarter];$B2;LoC[Real causer of the defect];{"fuyao";"supplier"};LoC[Claim type];"<>warranty-accumulation";LoC[Claim type];"<>prior cost"))

En remettant les données dans le classeur Weekly_Report-2023.xlsm.

Daniel
 

danielco

XLDnaute Accro
teste celle-ci, normalement, elle devrait fonctionner sans modification :

Code:
=LET(tbl;'Weekly_Report-2023.xlsm'!LoC;LIGNES(FILTRE(LoC[Quarter];(INDEX(tbl;;1)="FYCC")*(INDEX(tbl;;2)="quality")*(INDEX(tbl;;3)=$B2)*((INDEX(tbl;;4)="fuyao")+(INDEX(tbl;;4)="supplier"))*(INDEX(tbl;;5)<>"warranty-accumulation")*(INDEX(tbl;5)<>"prior cost"))))
 
Dernière édition:

danielco

XLDnaute Accro
Avec le critère supplémentaire, ça donne donc :

Code:
=LET(tbl;'Weekly_Report-2023.xlsm'!LoC;LIGNES(FILTRE(LoC[Quarter];(INDEX(tbl;;1)="FYCC")*(INDEX(tbl;;2)="quality")*(INDEX(tbl;;3)=$B2)*((INDEX(tbl;;4)="fuyao")+(INDEX(tbl;;4)="supplier")+(INDEX(tbl;;4)="external partner"))*(INDEX(tbl;;5)<>"warranty-accumulation")*(INDEX(tbl;5)<>"prior cost"))))

Daniel
 

Statistiques des forums

Discussions
312 273
Messages
2 086 701
Membres
103 373
dernier inscrit
Edouard007