Results 1 to 10 of 51

Thread: VBA - Count filtered rows in the table

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #35
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Quote Originally Posted by sandy666 View Post
    here is table from csv (100 rows)
    with CF defined for each filter (hardcoded) then table filtered by No Color
    I don’t know anything about CF or Filters in Excel, so I don’t know what to do with any of that.
    Never mind




    That table looks the same as the Tables and the csv text files we have used so far.


    In that last file I added another worksheet, ManuellAlan copied the data range, and then did it all manually
    , no VBA
    , no PQ
    , no CF, filter or anything
    , just Alan and his hands very big brain.

    Results from me doing it with just my brain and hands:

    _____ Workbook: test01.xlsx ( Using Excel 2010 32 bit )
    Row\Col
    AI
    2
    Filter name by ll and rr takes out 20 rows, so left with 80
    3
    Then filter region by sh takes out 2 rows, so 78 left
    4
    Then filter country by us takes out 3 rows, so I am left wir 75
    Worksheet: ManuellAlan



    Results from my VBA coding
    For this filter set:

    , I still get the same results as before:


    , and they are the same as when I did it all manually.



    So, so far I think my VBA coding is giving the correct results.
    Attached Files Attached Files
    Last edited by DocAElstein; 08-25-2023 at 12:01 PM.

Similar Threads

  1. Replies: 101
    Last Post: 06-11-2020, 02:01 PM
  2. Delete Filtered Rows Excluding The Header
    By xander1981 in forum Excel Help
    Replies: 5
    Last Post: 04-01-2014, 11:44 PM
  3. Replies: 1
    Last Post: 07-30-2013, 11:08 PM
  4. Lookup and Count Using Pivot Table
    By RobExcel in forum Excel Help
    Replies: 2
    Last Post: 12-21-2012, 11:08 AM
  5. Unique Count on a Filtered Range
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 08-14-2011, 04:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •