COUNTIF for AutoFiltered data
COUNTIF for AutoFiltered data
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: COUNTIF for AutoFiltered data

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I am using the subtotal function to analyze data that I AutoFilter.
    This works great for AVERAGE [ subtotal(1, A1:A500) ] or COUNT [ SUBTOTAL(2, A1:A500) ] but does not work for COUNTIF since is no function_num for COUNTIF, ie. SUBTOTAL (“x”, A1:A500), since COUNTIF needs a criteria…

    Any easy solution to this?

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Suppose A1:C10 contains...

    {"Field1","Field2","Field3"
    ;"B",2,"cat"
    ;"A",5,"cat"
    ;"C",2,"bird"
    ;"C",4,"dog"
    ;"B",2,"cat"
    ;"A",5,"bird"
    ;"A",4,"dog"
    ;"C",1,"cat"
    ;"B",4,"cat"}

    If you want to count the number of {"B",2,"cat"} combinations use =SUBTOTAL(3,A2:A10) along with an Advanced AutoFilter with a criteria range containing...

    {"Field1","Field2","Field3"
    ;"B",2,"cat"}

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com