+ Reply to Thread
Results 1 to 4 of 4

Split multiple Delimiter field with Header into Multiple Columns and Rows

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    6

    Split multiple Delimiter field with Header into Multiple Columns and Rows

    Hi;

    I have a multiple columns containing rows of concatenated columns with header delimited seperate by Colon and Field by Tilde.

    Some of the Columns does not have any data due to Employee departure from the company.

    RowID LocationID Employee 1 Employee 2 Employee 3
    1 123456 First Name :John~Last Name :Smith~DOB :01-Jan-1990~Gender :Male~Salary Range :15-21 First Name :Robert~Last Name :Great~DOB :25-Jun-1967~Gender :Male~Salary Range :75-90 First Name :Adele~Last Name :Rose~DOB :18-Sep-1987~Gender :Male~Salary Range :25-30
    2 123457 First Name :Angelica~Last Name :Johnson~DOB :11-Feb-1978~Gender :Female~Salary Range :40-50 First Name :Oliver~Last Name :Anderson~DOB :06-May-1970~Gender :Male~Salary Range :40-50


    What i need is a VBA Macro that will Split the records into columns with Headers and rows.

    RowID LocationID EmployeeID First Name Last Name DOB Gender Salary Range
    1 123456 123456-001 John Smith 01-Jan-1990 Male 15-21
    2 123456 123456-002 Robert Great 25-Jun-1967 Male 75-90
    3 123456 123456-003 Adele Rose 18-Sep-1987 Male 25-30
    4 123457 123457-001 Angelica Johnson 11-Feb-1978 Female 40-50
    5 123457 123457-002 Oliver Anderson 06-May-1970 Male 40-50


    Any help will be much appreciated.

    Thanks
    Omer.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Split multiple Delimiter field with Header into Multiple Columns and Rows

    Try
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Split multiple Delimiter field with Header into Multiple Columns and Rows

    Try this:-
    Results sheet2
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Registered User
    Join Date
    08-16-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    6

    Re: Split multiple Delimiter field with Header into Multiple Columns and Rows

    WOW Perfect ... you are a super star

    It works great.

    I am quite novice in VB, do you mind explaining the code so i can have a better understanding on how you did it. It may help others who try to do the same thing.

    Thank you so very much.
    Omer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Split text and number field with no delimiter
    By lasario in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2014, 07:06 PM
  2. split multiple semicolon separated values into new rows for multiple columns
    By bruno08102013 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-05-2014, 05:27 PM
  3. Calculate field based on multiple columns and rows
    By Fade-e in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 07-30-2013, 02:27 AM
  4. [SOLVED] Split column into multiple columns at predetermined rows
    By nukeemaway in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-30-2012, 09:32 AM
  5. [SOLVED] How do I split a cell into multiple rows/columns?
    By SKA in forum Excel General
    Replies: 1
    Last Post: 01-17-2006, 08:10 PM

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