http://de.wikipedia.org/wiki/Plenk#Klemp
Hallo Grußlose,
Formel in G (www.excelformeln.de) versagt wenn Leerzeichen in
den Textzellen. Sieht man in Zeile 3 u. 8.
In so Fällen nimmt man z.B. Formel in H.
@UP, Übersichtlicher sind die Formeln in S die als Hilfsspalte
benutzt wird. In S6 steht das Gesamtergebnis.
Tabellenblatt: [Mappe1]!Tabelle1
│ A │ B │ C │ D │ E │ F │ G │ H │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
1 │ a │ b │ c │ d │ e │ f │ a, b, c, d, e, f │ a, b, c, d, e, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
2 │ │ b │ c │ d │ e │ f │ b, c, d, e, f │ b, c, d, e, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
3 │ a │ b │ │ d d │ e │ f │ a, b, d, d, e, f │ a, b, d d, e, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
4 │ a │ b │ c │ d │ e │ f │ a, b, c, d, e, f │ a, b, c, d, e, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
5 │ a │ b │ c │ d │ e │ │ a, b, c, d, e │ a, b, c, d, e │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
6 │ │ b │ c │ d │ e │ │ b, c, d, e │ b, c, d, e │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
7 │ │ b │ │ d │ e │ │ b, d, e │ b, d, e │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
8 │ │ │ c │ d │ e e │ f │ c, d, e, e, f │ c, d, e e, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
9 │ │ │ │ d │ e │ │ d, e │ d, e │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
10 │ │ │ │ │ │ │ │ │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
11 │ │ │ │ │ │ f │ f │ f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
12 │ a │ │ │ │ │ │ a │ a │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
13 │ a │ b │ │ │ │ │ a, b │ a, b │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
14 │ │ │ c │ │ │ f │ c, f │ c, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
15 │ a │ b │ c │ d │ e │ f │ a, b, c, d, e, f │ a, b, c, d, e, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
16 │ a │ b │ c │ d │ e │ f │ a, b, c, d, e, f │ a, b, c, d, e, f │
───┼───┼───┼───┼─────┼─────┼───┼──────────────────┼──────────────────┤
17 │ │ │ │ d │ │ │ d │ d │
───┴───┴───┴───┴─────┴─────┴───┴──────────────────┴──────────────────┘
Benutzte Formeln:
G1 : =WECHSELN(GLÄTTEN(A1&" "&B1&" "&C1&" "&D1&" "&E1&" "&F1);" ";", ")
usw. in G
H1 : =WECHSELN(WECHSELN(WECHSELN(WECHSELN("#"&$A1&"#"&",#"&$B1&"#"&",#"&$C1
&"#"&",#"&$D1&"#"&",#"&$E1&"#"&",#"&$F1&"#";",##";"");"##,#";"");"#";"
");",";", ")
usw. in H
A1:H17
haben das Zahlenformat: Standard
Tabellenblatt: [Mappe1]!Tabelle1
│ R │ S │
──┼─────┼────────────────────┤
1 │ a │ a │
──┼─────┼────────────────────┤
2 │ s d │ a, s d │
──┼─────┼────────────────────┤
3 │ a │ a, s d, a │
──┼─────┼────────────────────┤
4 │ 4 │ a, s d, a, 4 │
──┼─────┼────────────────────┤
5 │ d │ a, s d, a, 4, d │
──┼─────┼────────────────────┤
6 │ 2 │ a, s d, a, 4, d, 2 │
──┴─────┴────────────────────┘
Benutzte Formeln:
S1: =WENN(R1="";"";R1)
S2: =WENN(S1="";"";S1)&WENN(ODER(R2="";S1="");"";", ")&WENN(R2="";"";R2)
S3: =WENN(S2="";"";S2)&WENN(ODER(R3="";S2="");"";", ")&WENN(R3="";"";R3)
usw. in S
R1:S6
haben das Zahlenformat: Standard
Tabellendarstellung erreicht mit dem Code in FAQ:2363
Gruß
Reinhard