Formule avec condition illimitée

ClineGrD Messages postés 1 Date d'inscription   Statut Membre Dernière intervention   -  
PapyLuc51 Messages postés 4519 Date d'inscription   Statut Membre Dernière intervention   -
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 4519 Date d'inscription   Statut Membre Dernière intervention   1 486
 
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 4519 Date d'inscription   Statut Membre Dernière intervention   1 486
 
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