+ Reply to Thread
Results 1 to 13 of 13

Conversion: Horizontal, Grouped Data to Vertical, Separated Data

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    Hey people,

    Newbie here. With a fairly unique problem, I think.

    Right now, my data looks like this:

    BOB A B C E J Y
    SAM A E J Y
    JILL P A C M


    In the future, I would love a two-column arrangement that looks like:

    BOB A
    BOB B
    ...
    SAM A
    SAM E
    ...
    JILL P
    JILL A
    ...


    Is that possible?

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    This should do what you want:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    Thank you!

    I'm still somewhat confused however: how would I use that formula to create the new table? I want to convert a large dataset that is in the first format.

  4. #4
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    But I think cdkeil wants them in two different columns.

    Assuming data starts in col A1, you can use this formula in cell B1
    Please Login or Register  to view this content.
    and this in cell C1
    Please Login or Register  to view this content.
    then copy cells B1 and C1 down

    NSV

    Edit: I forgot to change my semicolons to commas - corrected now

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    You can take the results of =LEFT(A2,SEARCH(" ",A2,1)+1) and copy the column of results and immediately Paste Values and that will get rid of the formulae. Now you can move the column to another location or delete the first column....you are free to do as you like now that you have the data that you need.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    I was misreading the original problem.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    Hello everyone,

    I really appreciate the responses - but I still think I've been explaining this poorly. I've been able to separate the data into different columns (using text to columns, with a delimiter -- was initially confusing because there were line breaks, but I cleaned the data to get rid of them), but I would still like a different organization.

    I've attached a file to explain what I have (INPUT), and what I'd like the data to look like (OUTPUT).

    Again - thank you so much for your quick replies, this community is extremely impressive for its fast turnaround... and I apologize for my poor explanation above.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    The attached solution is a macro and there is a button on sheet1.
    The outout is on new sheet created by the code itself.
    Attached Files Attached Files

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    Maybe this will help.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    That macro worked perfectly! Time for me to learn VisualBasic I guess...

  11. #11
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    And thanks for your help, newdoverman!

  12. #12
    Registered User
    Join Date
    01-06-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    Quote Originally Posted by AB33 View Post
    The attached solution is a macro and there is a button on sheet1.
    The outout is on new sheet created by the code itself.
    Hi AB33,

    Thank you so much for this macro! It works perfectly.

    If I wanted to make it grab (and repeat) the columns A and B, varying by columns C-..., how would I edit the code? The below attachment shows my new request.

    Thanks again,
    CK
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Conversion: Horizontal, Grouped Data to Vertical, Separated Data

    I did not follow the output data. See if this is what you want.
    Attached Files Attached Files

+ 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: 10
    Last Post: 06-26-2015, 09:05 AM
  2. vertical alignment of data greater than '0' from horizontal layout data
    By itsmesunilb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-26-2012, 12:00 PM
  3. Convert Vertical data to grouped horizontal Data
    By robot1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2012, 05:51 PM
  4. Replies: 7
    Last Post: 12-11-2009, 05:03 AM
  5. Replies: 5
    Last Post: 08-01-2006, 12:23 AM

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