Live-Forum - Die aktuellen Beiträge
Anzeige
Archiv - Navigation
1552to1556
Aktuelles Verzeichnis
Verzeichnis Index
Übersicht Verzeichnisse
Vorheriger Thread
Rückwärts Blättern
Nächster Thread
Vorwärts blättern
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

Formel vereinfachen

Formel vereinfachen
26.04.2017 21:21:09
Jens
Hallo zusammen,
ich habe ein Text in einer Zelle, der angepasst werden muss. Aus
P1,R1,
soll z.B. werden:
CP,C1,C,,CR,C1,
D.h. jedes Zeichen bekommt noch mal ein C davor geschaltet und die so entstandenen Pärchen werden durch Kommas erneut getrennt. Da die original Texte jetzt immer länger geworden sind - im letzten Schritt von 31 Zeichen auf jetzt 120 Zeichen und das in 25 verschiedenen Konstellationen - will ich die folgende Formel vereinfachen:

=$Y$10&TEIL(Q21;1;1)&$Y$11&TEIL(Q21;2;1)&$Y$11&TEIL(Q21;3;1)&$Y$11&TEIL(Q21;4;1)&
$Y$11&TEIL(Q21;5;1)&$Y$11&TEIL(Q21;6;1)&$Y$11&TEIL(Q21;7;1)&$Y$11&TEIL(Q21;8;1)&
$Y$11&TEIL(Q21;9;1)&$Y$11&TEIL(Q21;10;1)&$Y$11&TEIL(Q21;11;1)&$Y$11&TEIL(Q21;12;1)&
$Y$11&TEIL(Q21;13;1)&$Y$11&TEIL(Q21;14;1)&$Y$11&TEIL(Q21;15;1)&$Y$11&TEIL(Q21;16;1)&
$Y$11&TEIL(Q21;17;1)&$Y$11&TEIL(Q21;18;1)&$Y$11&TEIL(Q21;19;1)&$Y$11&TEIL(Q21;20;1)&
$Y$11&TEIL(Q21;21;1)&$Y$11&TEIL(Q21;22;1)&$Y$11&TEIL(Q21;23;1)&$Y$11&TEIL(Q21;24;1)&
$Y$11&TEIL(Q21;25;1)&$Y$11&TEIL(Q21;26;1)&$Y$11&TEIL(Q21;27;1)&$Y$11&TEIL(Q21;28;1)&
$Y$11&TEIL(Q21;29;1)&$Y$11&TEIL(Q21;30;1)&$Y$11&TEIL(Q21;31;1)&$Y$12
Die Werte in Y10, Y11, Y12 sind:
C
,C
,
Meine Idee war es über Iteration etwas zu machen:
http://www.excelformeln.de/formeln.html?welcher=155
aber das habe ich nicht hin bekommen.
Kann mir jemand helfen und die Formel vereinfachen?
Vielen Dank.

4
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: Formel kürzen klappt aber nicht
27.04.2017 10:10:56
Jens
Hallo Luschi
vielen Dank für deine Antwort.
Ich habe versucht das anzuwenden, das klappt aber nicht. Was mache ich falsch? Irgendwas habe ich nicht richtig verstanden.
Anbei ein Beispiel meiner Tabelle.
https://www.herber.de/bbs/user/113147.xlsx
Schau dir bitte mal die Zelle Y21 an. So soll das Ergebnis sein.
Mein Versuch die Formel zu kürzen ist in Zelle Y3 zu sehen. Da kommt aber nur Mist bei raus.
Was mache ich falsch?
Anzeige
Iteration funktioniert nicht
27.04.2017 13:42:17
Jens
Hallo zusammen,
ich habe jetzt noch mal etliches ausprobiert, um eine Formel hin zu bekommen, die funktioniert. Aber je mehr ich mich damit beschäftige, desto mehr bin ich der Ansicht, dass die Iteration gar nicht funktioniert.
Kann mir noch jemand helfen?
AW: jetzt gehts doch !!!
28.04.2017 11:21:12
Jens
Hallo zusammen,
jetzt konnte ich mir doch noch eine Lösung erarbeiten. Diese sieht wie folgt aus (leider in English) ich hoffe das ist OK:
1. Activate iterations in Excel with X (e.g 150) iterations: Go to 'File' --> 'Options' --> 'Formula' and activate iterations
2. This is the given text:

B2=P50,R50,P1,R1,P27,R27,
3. This is the iteration formula:
German

B3=WENN(B3

English

B3=IF(B3
Activate this cell and press enter to assure that the iteration result is X=150 or 1. Other results may occur if several recalculations have taken place shortly after each other. So one iteration process has been interrupted with the next one.
4. This is the iteration formula minus 3:

B4=B3-3

5. These are the characters that are inserted before each character of the given text:

B5=C

6. These are the characters that are inserted after each character of the given text:

B6=,

7. This is the formula to have the characters before and after each of the original characters:
German

B7==WENN($B$4

English

B7==IF($B$4
8. Just make sure that the resulting iteration formula rests at X=150 or 1 after the iteration process. You can achieve this by clicking into the cell of the iteration formula, with your cursor visible behind the formula, and then press enter
9. This is the original and the resulting text:

P50,R50,P1,R1,P27,R27,


CP,C5,C0,C,,CR,C5,C0,C,,CP,C1,C,,CR,C1,C,,CP,C2,C7,C,,CR,C2,C7,C,,
Ich hoffe das hilft irgend jemandem weiter?!
Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige