+ Reply to Thread
Results 1 to 7 of 7

'Unconcatenate' several columns

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    'Unconcatenate' several columns

    Pete_UK very kindly helped me with a this query this morning - http://www.excelforum.com/excel-form...their-own.html but I have since realised my data gets more complicated than that.

    As per the updated attachment, I not only have the potential for more than two variations in a cell, I also have more than one column like this.

    So I had thought I could just copy the column to the end of the spreadsheet (as the number of potential variables is not fixed) and use the data> text to columns trick, using '>' as the delimiter. However, it's impossible to have both columns at the end of the sheet.

    It may be something that isn't solvable as code as it seems to be an issue of structure too. Basically what I want to be able to do is segment the data in several ways such as:

    - x number of people picked blue as the first colour as well as picking cup as the last object
    - y number of people chose both green and flower at some point.

    Ta

    Glayva
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-22-2013
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003/2007 & 2010
    Posts
    90

    Re: 'Unconcatenate' several columns

    If you have a known number of variations you could use =SEARCH("COLOUR";A1;1). If true, one named the colour otherwise not.

    Other way is to use text-to-columns with ">" as delimiter. You can indicate where it has to go so column does not need to be the last column. You can click "Next" instead of "Finish" when using the text-to-columns, which then somewhere gives you an option "destination". Just indicate what is the most topleft cell where you want to copy the data to and you're done?

    Is that what you're after?

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: 'Unconcatenate' several columns

    Did you look at my suggestion in your earlier post? Post #4, drag it Across as far as you need, and then Down.

    Extracting two variables from one cell and placing them into columns of their own

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Marcol; 06-17-2013 at 10:48 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: 'Unconcatenate' several columns

    Thanks both - both of your suggestions work when I have one column like this, but there is still the problem of the second column getting in the way. As I say - I think this is a structure thing more than anything so will have a think.

    Thanks

  5. #5
    Registered User
    Join Date
    04-22-2013
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003/2007 & 2010
    Posts
    90

    Re: 'Unconcatenate' several columns

    What do you exactly mean with "the second column getting in the way"? You can apply the text-to-columns technique regardless of where your first and second column are placed, and regardless of where you have space to copy the data to as long as you have some empty columns left. You can paste them in XYZ if you want to..

    I think before putting much effort in restructuring your complete Excel file you should give either solution above another go.

  6. #6
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: 'Unconcatenate' several columns

    I have tried both options Matijnvc. The text to columns does not work as I have to know how many variables will be in the cells, so do not know how to many columns to keep free. If I choose 8 columns and add the next full column to be broken down in the 9th column, for example, but there are 9 variables split by the delimiters, the text-to-columns action will run into the 9th column.

    As I don't have a known number of variations the other suggestion will not work either.

    Thanks

    Glayva

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: 'Unconcatenate' several columns

    The problem is, as you are aware, is with the layout of your data.
    You need to know how many columns to leave before you begin the next set of results, no?
    This CSE array will tell you that, confirm with Ctrl+Shift+Enter not just Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or if you want both result tables to be the same width, again CSE entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you get this info first, and layout your sheet accordingly, any of the solutions offered can then be used.

    Personally, I would re-think the layout.
    Last edited by Marcol; 06-19-2013 at 05:09 AM.

+ 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