Formule avec condition illimitée

Fermé
ClineGrD Messages postés 1 Date d'inscription mardi 13 mars 2018 Statut Membre Dernière intervention 13 mars 2018 - 13 mars 2018 à 08:48
PapyLuc51 Messages postés 4302 Date d'inscription dimanche 3 mai 2009 Statut Membre Dernière intervention 25 avril 2024 - 13 mars 2018 à 10:06
Bonjour,

Je contextualise : des personnes s'inscrivent en ligne sur une plateforme, de celle-ci j'exporte un listing. Je colle cet export dans un excel et en suite je lui demande de me le trier par région et de m'envoyer les données dans une autre feuille, chaque feuille étant une région.
Pour certaines régions, j'y suis arrivée sans trop de difficulté car j'avais des fourchettes de codes postaux et 3ou 4 conditions. Mais pour une région j'ai 12 conditions. J'ai essayé un SI.CONDITION, SI ET, SI OU, SI ... La dernière étant celle-ci
=SI('EXPORT ENCODAGE'!$J3>="7700";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3<="7799";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="8500";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="8790";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="8791";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="8792";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="8793";'EXPORT ENCODAGE'!C3;FAUX)))))))&SI('EXPORT ENCODAGE'!$J3="8880";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="8890";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="8930";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="9690";'EXPORT ENCODAGE'!C3;SI('EXPORT ENCODAGE'!$J3="9790";'EXPORT ENCODAGE'!C3;FAUX)))))

Le problème c'est qu'il ne trie pas et me mets toutes réponses suivies d'un FAUX -> 4101FAUX Ce n'est évidement pas ce que je souhaite. Auriez-vous une idée?

Un grand merci d'avance
A voir également:

2 réponses

PapyLuc51 Messages postés 4302 Date d'inscription dimanche 3 mai 2009 Statut Membre Dernière intervention 25 avril 2024 1 406
Modifié le 13 mars 2018 à 10:07
Bonjour

Avec le retrait de guillemets autour des nombres et une réduction de la formule ça devrait fonctionner

=SI(OU(ET('EXPORT ENCODAGE'!$J3>=7700;'EXPORT ENCODAGE'!$J3<=7799);'EXPORT ENCODAGE'!$J3=8500;'EXPORT ENCODAGE'!$J3=8790;'EXPORT ENCODAGE'!$J3=8791;'EXPORT ENCODAGE'!$J3=8792;'EXPORT ENCODAGE'!$J3=8793;'EXPORT ENCODAGE'!$J3=8880;'EXPORT ENCODAGE'!$J3=8890;'EXPORT ENCODAGE'!$J3=8930;'EXPORT ENCODAGE'!$J3=9690;'EXPORT ENCODAGE'!$J3=9790);'EXPORT ENCODAGE'!C3;FAUX)

Cordialement
0
PapyLuc51 Messages postés 4302 Date d'inscription dimanche 3 mai 2009 Statut Membre Dernière intervention 25 avril 2024 1 406
13 mars 2018 à 10:06
Formule qui peut encore être réduite à :

=SI(OU(ET('EXPORT ENCODAGE'!$J3>=7700;'EXPORT ENCODAGE'!$J3<=7799);'EXPORT ENCODAGE'!$J3=8500;ET('EXPORT ENCODAGE'!$J3>=8790;'EXPORT ENCODAGE'!$J3<=8793);'EXPORT ENCODAGE'!$J3=8880;'EXPORT ENCODAGE'!$J3=8890;'EXPORT ENCODAGE'!$J3=8930;'EXPORT ENCODAGE'!$J3=9690;'EXPORT ENCODAGE'!$J3=9790);'EXPORT ENCODAGE'!C3;FAUX)

Cordialement
0