+ Reply to Thread
Results 1 to 10 of 10

Grouping rows similar to outlining with blank row in between

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Grouping rows similar to outlining with blank row in between

    I have a sheet with 36000 rows I need to edit. There are 9 columns. Column A has groups of numbers as the rows go down the sheet. I would lkike to insert a blank row after each unique grouping of numbers.
    See attached sample.
    Attached Files Attached Files

  2. #2
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Grouping rows similar to outlining with blank row in between

    Hi StreekyD

    In the attached I assumed you have a Header Row. Let me know of issues.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Grouping rows similar to outlining with blank row in between

    Another option
    Please Login or Register  to view this content.
    Last edited by ChemistB; 09-14-2012 at 02:31 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Grouping rows similar to outlining with blank row in between

    @ChemistB

    Your approach is the one I normally would have suggested but I was concerned about this
    I have a sheet with 36000 rows
    What do you think?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Grouping rows similar to outlining with blank row in between

    Good point John, I probably should at least add
    Please Login or Register  to view this content.
    to make it run a little faster. going back to amend the code in post 3. Maybe Streeky will tell us.

  6. #6
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Grouping rows similar to outlining with blank row in between

    Thank you for the response Jaslake and ChemistB
    Yes I do have Header rows. I tried the sample file you attached.

    So what/where/how do I apply your resolve? I know enough to get me in trouble but an not intuitive to understand how to apply.
    It appears this is a macro. I can copy the macro to my sheet but do not understand how to make it run

    Do I need to add a sheet with the headers? Like you did?
    Last edited by StreekyD; 09-14-2012 at 03:06 PM.

  7. #7
    Forum Guru jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Grouping rows similar to outlining with blank row in between

    Hi StreekyD

    There's a couple ways to do this...we'll take the easiest route first...please answer these few questions:
    1. What's the NAME of the File where your data lives?
    2. Are there any LINKS in the File (to other Workbooks for example)?
    3. What's the NAME of the Tab where your data lives?
    4. Are there any REFERENCES to other worksheets in this Tab (in Formulas for example)?
    5. In Excel 2010 do you have Developer in your Ribbon (way up on top)?

  8. #8
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Grouping rows similar to outlining with blank row in between

    What's the NAME of the File where your data lives?
    Price compare
    Are there any LINKS in the File (to other Workbooks for example)?
    No
    What's the NAME of the Tab where your data lives?
    Price compare
    Are there any REFERENCES to other worksheets in this Tab (in Formulas for example)?
    No
    In Excel 2010 do you have Developer in your Ribbon (way up on top)?
    Yes

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Grouping rows similar to outlining with blank row in between

    For Jaslake's macro,
    first, insert a new sheet and name it Lists (or rename a blank sheet Lists)
    second, Hit Alt F11 to open the VBA editor.
    Insert> Module and paste his code in that text box.
    Change "Sheet1" to "Price Compare" wherever it appears in the code
    Close VBA editor
    and go to the Developer tab or View Tab and click on the Macro's icon and run Insert_breaks

    For mine, the same thing except without the List sheet.
    Any questions?

  10. #10
    Registered User
    Join Date
    12-14-2011
    Location
    NH
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Grouping rows similar to outlining with blank row in between

    Perfect, Thank you ChemistB and Jaslake for you time.

    I used ChemistB I did try both!

+ 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