+ Reply to Thread
Results 1 to 6 of 6

Count rows of a filtered range

  1. #1
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Count rows of a filtered range

    Hi

    I have the following code that filters and then counts the number of visible rows.

    My problem is that the original list has 402 rows but after filtering has 79 rows. My code is giving me 1520 rows! there must be something I am doing wrong and any advice on what it is would be great.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Count rows of a filtered range

    I don't understand your filter?

    Seems to be:

    Please Login or Register  to view this content.
    I would say that involves Columns?

    Yet you're counting rows?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Re: Count rows of a filtered range

    Hi John

    Thanks for replying. I have filtered a table of about 20 columns with only "Sales" in column 2. I need to know how many rows of records show after filtering.

    Am I doing it wrong?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Count rows of a filtered range

    Your filter range is one row?

  5. #5
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Re: Count rows of a filtered range

    Hi again

    Filter range is Column 2 ("Sales"). I suspect I haven't understood filtering code.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Count rows of a filtered range

    Does this help?

    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)

Similar Threads

  1. [SOLVED] How to count cells of a filtered range?
    By geophysicist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2013, 08:22 AM
  2. Count of filtered rows
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-30-2012, 06:42 PM
  3. Count only Filtered Rows
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-14-2012, 12:35 AM
  4. Replies: 3
    Last Post: 11-11-2008, 12:45 AM
  5. count rows of a filtered list
    By Tim in forum Excel General
    Replies: 1
    Last Post: 02-10-2006, 12:35 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