+ Reply to Thread
Results 1 to 3 of 3

remove rows that have 0 in one cell

  1. #1
    Registered User
    Join Date
    12-26-2018
    Location
    hadley, ma
    MS-Off Ver
    office 2016 for mac
    Posts
    20

    remove rows that have 0 in one cell

    have two columns in a spreadsheet listing the number of birds seen and the name of the bird. I want to remove all the rows that have a 0 for number of birds seen. I can go one by one, however I...
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: remove rows that have 0 in one cell

    Probably, the easiest way to do this is with a pivot table.

    I took the liberty of converting your range of data into an Excel Table. One of the advantages of Excel Tables is that they know how big they are, so pivot tables and charts built on them will expand to encompass new data automatically.

    In this case, I also added another column called Is Zero with the formula =[@Sightings]=0

    Then I used Insert > Pivot Table and created a pivot table using Is Zero = False as the Filter, Type as the Row and Sightings as the value.

    You will notice that the pivot table alphabetized the bird type automatically. Now that it is i the pivot table, you can also sort this by number of sightings and pare it town to the top 20 or whatever by sighting.

    With normalized data in a table (and possibly some helper cells), and a pivot table you can do almost anything.

    P.S. I recommend sorting your data on Sheet1 by type to make finding and updating totals easier. Also, you can use conditional formatting to highlight if the number is zero.

    Also if the date of sighting is important, you can, with some modification, produce the same results and keep track of first and last sightings.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: remove rows that have 0 in one cell

    OPS...sorry i'm wrong room...
    Attached Files Attached Files

+ 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. [SOLVED] Remove empty rows based on a cell range.
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2020, 01:39 AM
  2. [SOLVED] Remove duplicated rows dependent upon the results of another cell
    By M12NIX in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2018, 01:30 AM
  3. Replies: 1
    Last Post: 10-17-2018, 01:30 AM
  4. [SOLVED] Macro to remove all the rows that have no cell value = N/A
    By IonutC in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-10-2016, 01:10 PM
  5. How to remove rows that contain a number/word in the cell
    By jake.rourke in forum Excel General
    Replies: 2
    Last Post: 09-04-2014, 04:36 AM
  6. vba macro to remove rows if different from specific cell
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2011, 01:28 PM
  7. Replies: 5
    Last Post: 07-14-2009, 10:30 AM

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