+ Reply to Thread
Results 1 to 6 of 6

Organize Column A into multiple Columns

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Saint Louis, Missouri
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Organize Column A into multiple Columns

    Hello all, first time poster here with what is (to me, at least) a conundrum. I have a spreadsheet with all of my data in Column A (the data came from an HTML file that was converted to a .txt file and then imported into Excel 2010).

    There are subject headings within Column A, but they're all in the pattern of:
    Row 1: Heading 1
    Row 2: ------------------ [there are literally dashes in this cell]
    Row 3 through 15: <data that needs to be in a different column>
    Row 16: [empty cell]
    Row 17: Heading 2
    Row 18: ------------------ [again, dashes under each heading]
    Row 19-27: <Data that needs to be in a different column>
    Row 28: Heading 3...

    And it continues. It's somewhat of a repeating pattern in that after several different Headings (I think 47?) you get back to Heading 1, and the whole thing repeats (but with different <Data that needs to be in a different column> each time).

    What I'm looking for is some macro or VBA script or voodoo spell that will put everything that is currently between Heading 1 and Heading 2 into Column B, everything between Heading 2 and Heading 3 into Column C, etc... and do that for each occurrence of Heading 1, Heading 2, etc.

    Is something like this even possible? Or am I simply in for a LOT of copying and pasting?

    Thanks in advance for any help/insight you can offer.

    (P.S. Sorry if this is in the wrong thread, but I'm not sure what I need exactly as a solution, so I stuck to the general forum.)

  2. #2
    Registered User
    Join Date
    09-17-2011
    Location
    Prattville, Alabama
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Organize Column A into multiple Columns

    Do you have this already in a spreadsheet that could be downloaded?

  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    Saint Louis, Missouri
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Organize Column A into multiple Columns

    Absolutely; sorry for the long wait, I had some errands to run. Here it is: Average CAW.xlsx

    It's Sheet2 I'm looking at.

  4. #4
    Registered User
    Join Date
    09-17-2011
    Location
    Prattville, Alabama
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Organize Column A into multiple Columns

    Try this. It works on mine. You can modify it easily.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Organize Column A into multiple Columns

    Hi -

    Use find method as below;
    Please Login or Register  to view this content.
    Regards,
    Event

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Organize Column A into multiple Columns

    @ event21,

    Not bad at all.

    I would change Col=10 to Col=2, since that is what Enzio states:
    What I'm looking for is some macro or VBA script or voodoo spell that will put everything that is currently between Heading 1 and Heading 2 into Column B
    and add the following:

    Please Login or Register  to view this content.
    Last edited by Winon; 12-15-2012 at 03:52 AM. Reason: Correcred code indentation
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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