De la faisabilité de multiples imbrications

Hello !

Devant faire des statistiques de plus en plus détaillées pour une association, je me mets bon gré mal gré à Excel.

Du coup, comme j'aime bien automatiser les choses, je cherche à savoir si les imbrications que je souhaite faire sont possibles.

Le but est de calculer automatiquement le tarif d'une adhésion en fonction de 5 critères.

Ce qui, logiquement, fait un total de 6 colonnes dans ma feuille.

Là, j'ai deux options.

Soit je renseigne manuellement le tarif : c'est facile, je n'ai qu'à recopier et ça prend 1/4 de seconde.

Soit j'automatise et c'est plus classe (et cela me permet par la même occasion de voir si j'ai mal rempli mon tableau ou si l'adhérent s'est trompé quelque part, ainsi que d'apprendre comment fonctionne Excel par la même occasion).

Si je pars sur de l'automatisation, je dois transformer la logique ci-dessous en format Excel.

C'est long et du peu que j'en ai vu, pour avoir testé quelques formules basiques sur d'autres classeurs, ça risque de devenir assez illisible, si tant est même que cela soit possible.

Puis-je avoir vos lumières ?

SI Entrainement EST EGAL A "INITIATION" ALORS
    Coût EST EGAL à "total"
    FIN
SINON
    SI Catégorie CONTIENT "Minibad" OU "Poussin 1" OU "Poussin 2" OU "Benjamin 1" OU "Benjamin 2" OU "Minime 1" OU "Minime 2" OU "Cadet 1" OU "Cadet 2" OU "Junior 1" ALORS
        SI Licence EST EGAL A "EXTERIEUR" ALORS
            SI Demi-Saison EST EGAL A "non" ALORS
                Coût EST EGAL A "total"
                FIN
            SINON
                Coût EST EGAL A "total"
                FIN
        SINON
            SI Catégorie CONTIENT "Minibad" ALORS
                SI Entrainement EST EGAL A "NON" ALORS
                    SI Tarif Famille EST EGAL A "non" ALORS
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                    SINON
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                SI Entrainement EST EGAL A "LUNDI" ALORS
                    ERREUR
                    FIN
                SI Entrainement EST EGAL A "VENDREDI" ALORS
                    SI Tarif Famille EST EGAL A "non" ALORS
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                    SINON
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
            SINON
                SI Entrainement EST EGAL A "NON" ALORS
                    SI Tarif Famille EST EGAL A "non" ALORS
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                    SINON
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                SI Entrainement EST EGAL A "LUNDI" ALORS
                    SI Tarif Famille EST EGAL A "non" ALORS
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                    SINON
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                SI Entrainement EST EGAL A "VENDREDI" ALORS
                    SI Tarif Famille EST EGAL A "non" ALORS
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                    SINON
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
    SINON
        SI Catégorie CONTIENT "Junior 2" OU "Senior" OU "Veteran 1" OU "Veteran 2" OU "Veteran 3" OU "Veteran 4" OU "Veteran 5" OU "Veteran 6" OU "Veteran 7" ALORS
            SI Licence EST EGAL A "EXTERIEUR" ALORS
                SI Demi-Saison EST EGAL A "non" ALORS
                    Coût EST EGAL A "total"
                    FIN
                SINON
                    Coût EST EGAL A "total"
                    FIN
            SINON
                SI Entrainement EST EGAL A "NON" ALORS
                    SI Tarif Famille EST EGAL A "non" ALORS
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                    SINON
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                SI Entrainement EST EGAL A "LUNDI" ALORS
                    SI Tarif Famille EST EGAL A "non" ALORS
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                    SINON
                        SI Demi-Saison EST EGAL A "non" ALORS
                            Coût EST EGAL A "total"
                            FIN
                        SINON
                            Coût EST EGAL A "total"
                            FIN
                SI Entrainement EST EGAL A "VENDREDI" ALORS
                    ERREUR
                    FIN

Fichier Excel :

18adhesion.xlsx (15.35 Ko)

bonjour,

la colonne f peut-elle contenir autre chose que "total" ?

Bonjour,

Pourrais tu envoyer ton classeur STP. Il me semble que la problématique ne nécessite pas une macro mais simplement des formules.

A+

Chris

h2so4 a écrit :

bonjour,

la colonne f peut-elle contenir autre chose que "total" ?

En fait j'ai remplacé toutes les valeurs par du générique

"total" représente le montant de l'adhésion, que je pense extraire de cellules pré-remplies.

CHRIS1945 a écrit :

Bonjour,

Pourrais tu envoyer ton classeur STP. Il me semble que la problématique ne nécessite pas une macro mais simplement des formules.

A+

Chris

Je purge mon classeur et l'envoie dès que je sors de ma réunion

Merci !

J'ai édité le premier message en conséquence

Rechercher des sujets similaires à "faisabilite multiples imbrications"