+ Reply to Thread
Results 1 to 3 of 3

I am in deperate need of a macro to find blank cells in a column and delete the row

  1. #1
    Registered User
    Join Date
    05-05-2013
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    4

    I am in deperate need of a macro to find blank cells in a column and delete the row

    ok i have about 200k rows and some of them are blanks and i cant look through all of that and find them.
    so does anyone know a macro that can look through a column and if it finds a blank cell it just deletes that row?

    Would be much appreciated.
    Thanks
    Last edited by leon1233; 05-05-2013 at 05:09 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: I am in deperate need of a macro to find blank cells in a column and delete the row

    Quote Originally Posted by leon1233 View Post
    ok i have about 200k rows and some of them are blanks and i cant look through all of that and find them.
    so does anyone know a macro that can look through a column and if it finds a blank cell it just deletes that row?

    Would be much appreciated.
    Thanks
    This one's designed to delete all entirely blank rows. You're not clear whether you want this, or any row containing a blank anywhere, or any row with blanks in some specified column. Code is easily modified to whichever.
    Please Login or Register  to view this content.

  3. #3
    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
    53,044

    Re: I am in deperate need of a macro to find blank cells in a column and delete the row

    a non-VBA option...

    If you are looking for a specific cell thats blank (say, C1), use this...
    =if(C1="",1,0), copied down

    It you are looking for a comletely blank row and the range is A1:J1...
    =if(COUNTBLANK(A14:E14)=10,1,0)

    What you then do, is apply filters (home/editing/sort and filter), then filter on 1 and delete the rows that remain
    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

+ 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