Réduire la longueur de ma formule

Bonsoir à tous,

j'ai utilisé une formule avec des fonctions SI, ET imbriquées, mais elle est très longue

Voici la formule:

=SI(ET(C4=horaires!$D$14;D4=horaires!$C$15);horaires!$D$15;SI(ET(C4=horaires!$D$14;D4=horaires!$C$16);horaires!$D$16;SI(ET(C4=horaires!$D$14;D4=horaires!$C$17);horaires!$D$17;SI(ET(C4=horaires!$E$14;D4=horaires!$C$15);horaires!$E$15;SI(ET(C4=horaires!$E$14;D4=horaires!$C$16);horaires!$E$16;SI(ET(C4=horaires!$E$14;D4=horaires!$C$17);horaires!$E$17;SI(ET(C4=horaires!$F$14;D4=horaires!$C$16);horaires!$F$16;SI(ET(C4=horaires!$F$14;D4=horaires!$C$17);horaires!$F$17))))))))+SI(ET(C5=horaires!$D$14;D5=horaires!$C$15);horaires!$D$15;SI(ET(C5=horaires!$D$14;D5=horaires!$C$16);horaires!$D$16;SI(ET(C5=horaires!$D$14;D5=horaires!$C$17);horaires!$D$17;SI(ET(C5=horaires!$E$14;D5=horaires!$C$15);horaires!$E$15;SI(ET(C5=horaires!$E$14;D5=horaires!$C$16);horaires!$E$16;SI(ET(C5=horaires!$E$14;D5=horaires!$C$17);horaires!$E$17;SI(ET(C5=horaires!$F$14;D5=horaires!$C$16);horaires!$F$16;SI(ET(C5=horaires!$F$14;D5=horaires!$C$17);horaires!$F$17))))))))+SI(ET(C6=horaires!$D$14;D6=horaires!$C$15);horaires!$D$15;SI(ET(C6=horaires!$D$14;D6=horaires!$C$16);horaires!$D$16;SI(ET(C6=horaires!$D$14;D6=horaires!$C$17);horaires!$D$17;SI(ET(C6=horaires!$E$14;D6=horaires!$C$15);horaires!$E$15;SI(ET(C6=horaires!$E$14;D6=horaires!$C$16);horaires!$E$16;SI(ET(C6=horaires!$E$14;D6=horaires!$C$17);horaires!$E$17;SI(ET(C6=horaires!$F$14;D6=horaires!$C$16);horaires!$F$16;SI(ET(C6=horaires!$F$14;D6=horaires!$C$17);horaires!$F$17))))))))+SI(ET(C7=horaires!$D$14;D7=horaires!$C$15);horaires!$D$15;SI(ET(C7=horaires!$D$14;D7=horaires!$C$16);horaires!$D$16;SI(ET(C7=horaires!$D$14;D7=horaires!$C$17);horaires!$D$17;SI(ET(C7=horaires!$E$14;D7=horaires!$C$15);horaires!$E$15;SI(ET(C7=horaires!$E$14;D7=horaires!$C$16);horaires!$E$16;SI(ET(C7=horaires!$E$14;D7=horaires!$C$17);horaires!$E$17;SI(ET(C7=horaires!$F$14;D7=horaires!$C$16);horaires!$F$16;SI(ET(C7=horaires!$F$14;D7=horaires!$C$17);horaires!$F$17))))))))+SI(ET(C8=horaires!$D$14;D8=horaires!$C$15);horaires!$D$15;SI(ET(C8=horaires!$D$14;D8=horaires!$C$16);horaires!$D$16;SI(ET(C8=horaires!$D$14;D8=horaires!$C$17);horaires!$D$17;SI(ET(C8=horaires!$E$14;D8=horaires!$C$15);horaires!$E$15;SI(ET(C8=horaires!$E$14;D8=horaires!$C$16);horaires!$E$16;SI(ET(C8=horaires!$E$14;D8=horaires!$C$17);horaires!$E$17;SI(ET(C8=horaires!$F$14;D8=horaires!$C$16);horaires!$F$16;SI(ET(C8=horaires!$F$14;D8=horaires!$C$17);horaires!$F$17))))))))

Désolé, c'est pas très lisible.

Est il possible de la réduire?

Merci par avance pour ceux qui pourront m'aider si cela est possible

Bonsoir

Avec un fichier en expliquant les conditions, cela sera peut-être plus facile de trouver une réponse à ton problème

En attendant (sans garantie)

=SI(OU(ET(C4=Horaires!$D$14;D4=Horaires!$C$15);ET(C5=Horaires!$D$14;D5=Horaires!$C$15);ET(C6=Horaires!$D$14;D6=Horaires!$C$15);ET(C7=Horaires!$D$14;D7=Horaires!$C$15);ET(C8=Horaires!$D$14;D8=Horaires!$C$15));Horaires!$D$15;0)+SI(OU(ET(C4=Horaires!$D$14;D4=Horaires!$C$16);ET(C5=Horaires!$D$14;D5=Horaires!$C$16);ET(C6=Horaires!$D$14;D6=Horaires!$C$16);ET(C7=Horaires!$D$14;D7=Horaires!$C$16);ET(C8=Horaires!$D$14;D8=Horaires!$C$16));Horaires!$D$16;0)+SI(OU(ET(C4=Horaires!$D$14;D4=Horaires!$C$17);ET(C5=Horaires!$D$14;D5=Horaires!$C$17);ET(C6=Horaires!$D$14;D6=Horaires!$C$17);ET(C7=Horaires!$D$14;D7=Horaires!$C$17);ET(C8=Horaires!$D$14;D8=Horaires!$C$17));Horaires!$D$17;0)

Bonjour, voici le fichier

Je souhaiterais, suivant mes choix dans le tableau semaine via mes listes, que ça choisisse dans le tableau temps, la cellule à l'intersection des deux.

Exemple: dans le tableau semaine,ligne lundi, je choisis a la colonne E: matin, et la colonne M: soir, la cellule D6 du tableau temps doit être prise en compte. Ainsi de suite pour les autres jours du tableau.

Et pour finir, j'aimerais, que dans la cellule C20, qu'apparaisse le total des 5 jours suivant mes choix.

J'espère avoir bien expliqué lol

Merci pour ton aide

17test.xlsx (11.83 Ko)

Bonjour

Pas spécialiste es formulas

Surement plus simple

A tester

Impeccable Banzai64, c'est exactement ce que je souhaitais, en plus ça la réduit pas mal

Encore merci pour ta patience, bonnes fêtes

Rechercher des sujets similaires à "reduire longueur formule"