Results 1 to 18 of 18

complex split string (delimit-text to columns)

Threaded View

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    29

    complex split string (delimit-text to columns)

    Hi i need a function to split names from a single column to many.

    We have a column where 2 or more party names may be in 1 cell, like "John Smith and Jane Smith".

    Names can also be like "John A. Smith" or "John A. Smith and Mary Smith"

    the end result would be columns on 1 row that look like
    A= (source data column)
    B= JOHN A.
    C= SMITH
    D= MARY
    E= SMITH

    when i do this manually, i do a find/replace on " and ", change to a PIPE |,
    then i used data/text to columns/set delimiter to | and split so i now have 2 cols with a full party name in each column b and c. then i add 3 or 4 columns between those 2.
    then i delimit spaces on each of the combined names columns.
    then i concat fname+mi columns back, then copy/paste values over the formulas and clean up the columns to reorder..

    as you can see, many manual steps so would be time consuming and confusing to my very basic general excel users. these manual splits and concats are alot to ask them to do manually.

    i tried recording a macro while i did a simple text to columns, but when i ran it the workbook went crazy.. plus given strict security on our network i think vba code to replicate the above would be best solution.

    i'm also uploading a demo worksheet with raw data names as they would appear on my sheet, any help/suggestions would be so much appreciated, thanks!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 04-09-2014, 11:48 AM
  2. [SOLVED] Split text string into 5 columns
    By Desree86 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-14-2014, 10:07 AM
  3. Advanced Split Function: Need to pull text string in quotes, within a text string
    By Zamboni in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-27-2013, 04:38 PM
  4. Delimit string to columns after using TRIM?
    By peepingtom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2013, 09:52 PM
  5. Split text string to different columns
    By liarliar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2008, 09:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1