+ Reply to Thread
Results 1 to 4 of 4

text to columns-- to certain columns depending on the text value

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    9

    text to columns-- to certain columns depending on the text value

    I have downloaded survey data from an online survey that comes as comma separated values in a cell. I need to split the cell values into columns, but I want the values to go into certain columns depending on the value.

    My example (see attached): survey takers can select up to 6 items from a list. Because they each select different items, if I use text-to-columns, the values are moved to columns, but the columns become first selection, second selection, etc. Instead, I want each column to be a certain item/value. So if a person did not select the first value, there is nothing in the first column for that person. And so on.

    I have attached a file with an example of the raw data and the desired output (note: I am not wedded to the column headings).

    I believe others must have already asked about this, but unfortunately I cannot find the answer. Thank you for any help you can give.

    --Moni
    Attached Files Attached Files
    Last edited by MoniNalu; 09-19-2012 at 07:37 PM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: text to columns-- to certain columns depending on the text value

    Heres a macro that will do it.

    survey_responses_SingleColumnRawData.xlsm
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: text to columns-- to certain columns depending on the text value

    You are awesome! Thank you so very much (mahalo a nui loa, as we say here in the islands).

    Moni

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: text to columns-- to certain columns depending on the text value

    (A`ole pilikia) or how we say in Keys Youre Welcome No problem

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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