+ Reply to Thread
Results 1 to 5 of 5

Convert comma-separated values into columns

  1. #1
    Registered User
    Join Date
    04-11-2021
    Location
    Luxembourg
    MS-Off Ver
    2016
    Posts
    3

    Question Convert comma-separated values into columns

    Hello,

    I`m new here so apologies if I`m missing anything in the explanation

    I have a dataset that shows to which vacancy(ies) a candidate has applied for. The problem is that I have a row for each candidate, but the last 3 columns (I-K) contain comma-separated values related to the vacancies (Vacancies to which they have applied, Date of application and Current Stage). If for example someone has applied to 3 different vacancies I want to have 3 rows with the candidate details (Columns A-H) and the details for each vacancy in each row.

    If first row is:
    Name ... Sourced by Vacancies Vacancies Date Vacancies Stage
    Tom ... Mark Vac1, Vac2, Vac 3 5/6/20,2/5/20,6/4/20 PRO,PRO,PRO

    I want it to breakdown as follows:

    Name ... Sourced by Vacancies Vacancies Date Vacancies Stage
    Tom ... Mark Vac1 5/6/20 PRO
    Tom ... Mark Vac2 2/5/20 PRO
    Tom ... Mark Vac 3 6/4/20 PRO

    What I currently have is this. I`m looking for help on how to transpose the information to the newly created rows. If there is a more efficient way of doing this please let me know, I`m still starting with VBA. Thanks in advance!
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Many thanks!
    Edu
    Attached Files Attached Files
    Last edited by alansidman; 04-11-2021 at 08:47 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: Convert comma-separated values into columns

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Convert comma-separated values into columns

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    04-11-2021
    Location
    Luxembourg
    MS-Off Ver
    2016
    Posts
    3

    Re: Convert comma-separated values into columns

    Hi alansidman,

    Thanks for spotting this and for amending, I`ll make sure to do so in the future

    Edu

  5. #5
    Registered User
    Join Date
    04-11-2021
    Location
    Luxembourg
    MS-Off Ver
    2016
    Posts
    3

    Re: Convert comma-separated values into columns

    Thanks AlphaFrog,

    Amazing! works perfectly and looks much cleaner. Still a long learning way for me I guess.

    Thanks again for your support!
    Edu

+ 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. Replies: 4
    Last Post: 12-01-2020, 01:20 PM
  2. Replies: 3
    Last Post: 09-25-2014, 02:14 PM
  3. Error in a existing Macro used for compare the Comma Separated Values present in 2 columns
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2014, 05:44 AM
  4. [SOLVED] Facing problem in a Macro which compares 2 columns having comma separated / single values
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2014, 11:18 PM
  5. Comma Separated values in Rows and columns
    By abhijeet_gole in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2013, 12:45 AM
  6. Programatically Convert comma separated 'Text to Column'
    By super_duper_guy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-01-2012, 08:04 PM
  7. [SOLVED] How do I convert an excel file into a comma separated values file
    By Conquerer in forum Excel General
    Replies: 3
    Last Post: 08-17-2006, 04:25 PM

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