+ Reply to Thread
Results 1 to 4 of 4

Group rows together

  1. #1
    Registered User
    Join Date
    09-17-2009
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    15

    Group rows together

    Hello!

    This is my second time posting- thank you always for all of your help! Here is what I'm trying to do.

    I have a 2000 page Word document that I need to sort through. My initial solution was to copy and paste it into Excel (see attached "before" file for a section of the copied results). As you can see, it copies all of the info into Column A.

    I then separated the data into separate columns, and deleted those that were not important to me. This is where I get stuck. I only need the groups of information that correspond to the "Z- New Constr." entry in the new Column A (See the attached "during" file for an example of where I get stuck). The groups are between dashed lines- that comes with the copy from Word.

    Is there any way to get to my "after" file without going through and manually deleting all non-New Construction entries? I tried to sort by Column A and it obviously doesn't move all of the corresponding rows.

    This file only starts with 6 entries- my real file has many more than that! Any help you can provide would be really appreciated!

    Thanks so much!

    Lauren
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-08-2007
    Posts
    93

    Re: Group rows together

    See attached.

    Copy the formulas in new colums D and E down for your entire data set.
    Copy / Paste Values for these two columns to hard-code the results
    Sort on column E
    Delete the rows you don't want
    Sort on column D to get the remaining data back to it's original order.

    Hope this helps

    SAE
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Group rows together

    LaurenR,

    See the attached workbook "Group rows together - LaurenR - VP - SDG11.xls" with macro "MoveData".

    Detach and open the attached workbook and run the "MoveData" macro.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,941

    Re: Group rows together

    A macro for your consideration:
    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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