+ Reply to Thread
Results 1 to 6 of 6

Method for deleting blank rows

  1. #1
    Registered User
    Join Date
    12-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    13

    Method for deleting blank rows

    I have a CSV with around 800 rows. The rows are arranged so that there's one row of data, then a blank row, then another row of data, etc. I want to remove all the blank rows.

    I've tried using Special > Blanks and then selecting (in the ribbon) Delete > Delete Sheet Rows.

    The problem is that Special > Blanks selects blank cells in the rows of data, as well as the empty rows. Therefore when I run the deletion command, this deletes both the empty rows and any row of data which has an empty cell (each row with data contains up to 10 cells of data).

    Does anybody knows of a workaround for this? It struck me that I could populate the empty cells in the data rows with dummy data, but I can't see a easy way of doing this in one go.

    Thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,814

    Re: Method for deleting blank rows

    Use Auto filter to select blanks, then select all the visible rows, then delete, then remove the filter.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Method for deleting blank rows

    Previous solution better than my thoughts...
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Method for deleting blank rows

    .
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-22-2012
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Method for deleting blank rows

    [SOLVED]

    Many thanks

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: Method for deleting blank rows

    .
    You are welcome.

+ 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. Deleting rows in table give me run time error delete method of range class failed
    By jhuvba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2015, 04:37 PM
  2. Deleting blank rows
    By Geordie in forum Excel General
    Replies: 5
    Last Post: 05-09-2013, 09:24 AM
  3. Changing code from deleting rows to cut/paste rows into another sheet and delete blank row
    By kmarshall6576 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2013, 01:54 AM
  4. Deleting blank rows on a Mac
    By mister88948 in forum Excel General
    Replies: 0
    Last Post: 11-03-2008, 01:15 PM
  5. Deleting Blank Rows
    By graeme86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2007, 07:53 AM
  6. Deleting blank rows
    By Yvette in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2006, 05:35 AM
  7. Deleting blank rows
    By Michael Chang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2005, 11:06 PM

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