+ Reply to Thread
Results 1 to 4 of 4

Hide filtered rows if count > x

  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    Romania
    MS-Off Ver
    Office 365
    Posts
    17

    Hide filtered rows if count > x

    I use the following code to count filtered rows:
    Please Login or Register  to view this content.
    And I would like to hide all filtered rows which are greater than the above count in the range of the filtered rows.
    For example if I have 25 filtered rows (25 visible), I would like to show only 20 of them and hide the rest of the filtered rows.
    Last edited by neobux; 03-25-2016 at 02:55 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Hide filtered rows if count > x

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Hide filtered rows if count > x

    Please Login or Register  to view this content.
    Last edited by graym463; 03-25-2016 at 12:54 PM. Reason: error in hiding

  4. #4
    Registered User
    Join Date
    03-30-2012
    Location
    Romania
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Hide filtered rows if count > x

    While the above were working fine, they were a bit slow for my needs, so I ended up using the following function:

    Please Login or Register  to view this content.
    And adapted it to the following code:

    Please Login or Register  to view this content.
    Thank you guys for pointing me in the right direction, much appreciate it.

+ 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] Count of visible rows in a filtered range
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2014, 01:17 PM
  2. Count rows of a filtered range
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2013, 06:30 AM
  3. Count of filtered rows
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-30-2012, 06:42 PM
  4. Count only Filtered Rows
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-14-2012, 12:35 AM
  5. Hide duplicate rows from filtered data
    By Arshmaan in forum Excel General
    Replies: 2
    Last Post: 10-28-2011, 06:37 AM
  6. count rows of a filtered list
    By Tim in forum Excel General
    Replies: 1
    Last Post: 02-10-2006, 12:35 AM
  7. How do I count rows in a filtered list when using AutoFilter?
    By chiefcook in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-22-2005, 10:10 AM

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