+ Reply to Thread
Results 1 to 19 of 19

How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    All I want is to - Delete Multiple Consecutive Blank Rows

    For eg:

    excelforum.com
    excelforum.com
    .
    .
    .
    .
    .
    .
    excelforum.com
    .
    .
    .
    .
    .

    excelforum.com
    excelforum.com
    excelforum.com
    .
    .
    .

    excelforum.com
    .
    .
    .
    .
    .
    .
    excelforum.com
    .
    .
    .
    .
    .

    Should be like:

    excelforum.com
    excelforum.com
    excelforum.com
    excelforum.com
    excelforum.com
    excelforum.com
    excelforum.com
    excelforum.com


    The Dots (.) are Blank Rows

    I will be very gratefull to you. Please help
    Last edited by raw_geek; 11-15-2012 at 10:13 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    sort then delete the blanks? if you want to put the info back afterwards first number down in a spare column. after deleting the blanks sort again by that column
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    I want to delete the blank rows. The Dots (.) are Blank Rows

    attached are the exp. screen shots ..Pls help
    Attachment 193770Attachment 193771

    I hope this will help you!
    Last edited by raw_geek; 11-14-2012 at 07:44 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    apply filters, filter by blanks, delete those rows, remove filters
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    both will work

  6. #6
    Forum Contributor jimmalk's Avatar
    Join Date
    08-31-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    It may be convenient for you with a button? Also faster without the sort (in case you delete many rows at once):
    Please Login or Register  to view this content.
    This code can be attached to a button, then just select any cell in the row (or rows) you wish to delete. If needed, this code can be modified to check if a row is empty using Application.CountA(xMyCell.EntireRow) = 0 before deleting.
    Last edited by jimmalk; 11-15-2012 at 12:39 AM.

  7. #7
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Thanks all
    Last edited by raw_geek; 11-15-2012 at 07:35 AM.

  8. #8
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Thanks!
    Need some help
    Last edited by raw_geek; 11-15-2012 at 07:36 AM.

  9. #9
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Quote Originally Posted by FDibbins View Post
    apply filters, filter by blanks, delete those rows, remove filters
    Thank you gor your help but when I applied filters, I did not get blank option to sort and I got only (.) and excelforum.com. looking some macros....
    probably I am wrong..Sorry

  10. #10
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Quote Originally Posted by jimmalk View Post
    It may be convenient for you with a button? Also faster without the sort (in case you delete many rows at once):
    Please Login or Register  to view this content.
    This code can be attached to a button, then just select any cell in the row (or rows) you wish to delete. If needed, this code can be modified to check if a row is empty using Application.CountA(xMyCell.EntireRow) = 0 before deleting.
    This is working but is there anyway run this macro without selection the raw? Thanks!

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

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Raw-geek,
    It can be done using a simple code, but to do it, you need to attach a sample excel book, so that we can test it.

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

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Please see the attached file.

    Sheet1 is my current data(Before)
    Sheet2 what i need (After)


    Thank you in advance
    Last edited by raw_geek; 11-16-2012 at 03:15 PM.

  14. #14
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Quote Originally Posted by AB33 View Post
    Please Login or Register  to view this content.
    I am missing some data...

  15. #15
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    hi raw_geek, please check attachment, press "Run" button
    Attached Files Attached Files

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

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Please Login or Register  to view this content.

  17. #17
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    What I want say!!! you are awesome! thanks lot!!!

    Thanks all..............

    Go..Go..http://www.excelforum.com

  18. #18
    Forum Contributor jimmalk's Avatar
    Join Date
    08-31-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Quote Originally Posted by raw_geek View Post
    This is working but is there anyway run this macro without selection the raw? Thanks!
    You're very welcome Raw-geek. Yes, the solutions from Watersev & AB33 look perfect for what you need to do. Good luck
    Last edited by jimmalk; 11-15-2012 at 07:50 PM.

  19. #19
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    149

    Re: How to Delete Multiple Consecutive Blank Rows - Delete all Blank Rows

    Thansk! all works

+ 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