Aug 19

Hallo zusammen,

ich hatte heute auf Arbeit die Gelegenheit mich mal wieder mit Excel und seinem Formelbereich zu beschäftigen. Dabei entstand in Zusammenarbeit eine tolle Formel die ich euch nicht vorenthalten möchte. Ich würde gern wissen, wie man diese noch optimiert.

Übersetze nach en fr

So haben wir das mal gelöst :-)

CODE:
=WENN(ISTFEHLER(ERSETZEN(S2;SUCHEN(LINKS(S2;SUCHEN("","";S2;1));S2;SUCHEN("""";S2));LÄNGE(LINKS(S2;SUCHEN("","";S2;1)));""und""));""Fehler"";ERSETZEN(S2;SUCHEN(LINKS(S2;SUCHEN("","";S2;1));S2;SUCHEN("" "";S2));LÄNGE(LINKS(S2;SUCHEN("","";S2;1)));""und""))"

Die Idee ist, dass man eine Zelle mit folgendem Aufbau hat.

Nachname, 1. Vorname Nachname, 2. Vorname.

Letzendlich sollte es aber so aussehen. Nachname, 1. Vorname und 2. Vorname

Beispiel

Müller, Hans Müller, Frieda

Müller, Hans und Frieda

Wenn die Beispielkonstellation nicht enthalten ist, so sollte ein Fehler drin stehen.

Wir wollten diese Dann als Marko aufzeichnen, dass schlägt aber fehl. Ich hasse MS. Aber schön war es trotzdem, mit Excel-Formel zu hantieren...

Viele Grüße

Marcus Radisch

P.S.: Natürlich unterliegen alle hier verwendeten Zeichen in Formeln und Namen Microsoft... Nur das keiner meckert, ich würde Patente verletzten.

Posted by Marcus Radisch

0 Trackbacks

  1. No Trackbacks

1 Comments

Display comments as(Linear | Threaded)
  1. Stefan says:

    Ich würde dir ja regex empfehlen ;-)
    Das kannst du auch irgendwie per Makro einbauen :-)

Add Comment


E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

BBCode format allowed
Standard emoticons like :-) and ;-) are converted to images.
:'( :-) :-| :-O :-( 8-) :-D :-P ;-)