Arbre des probabilités

Bonjour, je suis bloquer sous excel. J'ai beau chercher dans aide je ne trouve pas.

Je voudrais crée un tableau partant d'un arbre des probabilités Je m'explique :

Par exemple, à chaque cellule j'ai le choix entre 1,2,3,4 et j'ai 5 cellules, le tableau donnerait :

11111

11112

11113

11114

11121

11122

11123

11124

Y a t il une formule pour faire ceci ?

Je vous remercie si vous pouvez m'aider.

Bonjour

Avec de A1 à E1 le chiffre 1

De G1 à J1 1, 2, 3,4

Formule en A2 incrémentée sur A2:E1024

=CHOISIR(COLONNE();SI(MOD(LIGNE();MAX($G$1:$J$1)^4)=1;$A1+1;$A1);SI(MOD(LIGNE();MAX($G$1:$J$1)^4)=1;$C2;SI(MOD(LIGNE();MAX($G$1:$J$1)^3)=1;$B1+1;$B1));SI(MOD(LIGNE();MAX($G$1:$J$1)^3)=1;$D2;SI(MOD(LIGNE();MAX($G$1:$J$1)^2)=1;$C1+1;$C1));SI(MOD(LIGNE();MAX($G$1:$J$1)^2)=1;$E2;SI($E1=MAX($G$1:$J$1);$D1+1;$D1));SI(MOD(LIGNE();MAX($G$1:$J$1))=0;MAX($G$1:$J$1);MOD(LIGNE();MAX($G$1:$J$1))))

ou formule2 utilisant le Nom Nos

=CHOISIR(COLONNE();SI(MOD(LIGNE();MAX(Nos)^4)=1;$A1+1;$A1);SI(MOD(LIGNE();MAX(Nos)^4)=1;$C2;SI(MOD(LIGNE();MAX(Nos)^3)=1;$B1+1;$B1));SI(MOD(LIGNE();MAX(Nos)^3)=1;$D2;SI(MOD(LIGNE();MAX(Nos)^2)=1;$C1+1;$C1));SI(MOD(LIGNE();MAX(Nos)^2)=1;$E2;SI($E1=MAX(Nos);$D1+1;$D1));SI(MOD(LIGNE();MAX(Nos))=0;MAX(Nos);MOD(LIGNE();MAX(Nos))))

ou formule 3 utilisant le chiffre 4

=CHOISIR(COLONNE();SI(MOD(LIGNE();4^4)=1;$A1+1;$A1);SI(MOD(LIGNE();4^4)=1;$C2;SI(MOD(LIGNE();4^3)=1;$B1+1;$B1));SI(MOD(LIGNE();4^3)=1;$D2;SI(MOD(LIGNE();4^2)=1;$C1+1;$C1));SI(MOD(LIGNE();4^2)=1;$E2;SI($E1=4;$D1+1;$D1));SI(MOD(LIGNE();4)=0;MAX(Nos);MOD(LIGNE();4)))

Cordialement

869classeur2.zip (34.45 Ko)

merci pour la réponse et le classeur c'est tip top, je vous mets 20/20.

Salut tout le monde,

J'ai un petit soucis, en effet j'ai un nombre de possibilité de produit X et je ne sais pas comment avoir toutes les possibilités.

Par exemple j'ai 5 produit A B C D E je souhaiterai avoir le résultat suivant :

ABCDE

ABCED

ABDCE

ABDEC

Si quelqu’un pourrait m'aider sa serait sympa

bonjour,

solution via une macro

Sub aargh()
For i1 = 1 To 5
 For i2 = 1 To 5
  If i1 <> i2 Then
   For i3 = 1 To 5
    If i1 <> i3 And i2 <> i3 Then
     For i4 = 1 To 5
      If i1 <> i4 And i2 <> i4 And i3 <> i4 Then
       For i5 = 1 To 5
        If i1 <> i5 And i2 <> i5 And i3 <> i5 And i4 <> i5 Then
         i = i + 1
         Cells(i, 1) = Chr(64 + i1) & Chr(64 + i2) & Chr(i3 + 64) & Chr(i4 + 64) & Chr(i5 + 64)
        End If
       Next i5
      End If
     Next i4
    End If
   Next i3
  End If
 Next i2
Next i1
End Sub

Sa marche super bien, merci beaucoup

Rechercher des sujets similaires à "arbre probabilites"