+ Reply to Thread
Results 1 to 2 of 2

delete rows when values in cell =0

  1. #1
    Registered User
    Join Date
    10-22-2008
    Location
    US
    Posts
    15

    delete rows when values in cell =0

    I have a file that has 20,000 rows. the rows include various information in 10 columns. How would I delete all rows that have a 0 in a particular column?

    Thanks for the help.

  2. #2
    Forum Contributor
    Join Date
    05-05-2009
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010 and 365
    Posts
    113

    Re: delete rows when values in cell =0

    Try this.

    Replace Columns(3) with the appropriate column (A = 1, B=2, etc)

    Will delete all rows that have a value of zero. Cells with zeros and blank cells.


    If it takes too long to run, it can be sped up by "marking" all the rows during the loop and then deleting all applicable rows in a single step.





    Please Login or Register  to view this content.

+ 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