Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: counting in an Autofilter

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    245
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    i have an autofilter column which contains either 0 or 1. so i can filter out all the 1's, all the 0's, or keep ALL.

    for example:
    with ALL, i have 100 rows.
    with 1, i have 70 rows.
    with 0, i have 30 rows.

    i tried using a =count and an =counta function to try to count how many rows are not filtered out.

    however, all the functions i use return 100; i guess the function is counting the filtered out rows as well. how can i get the proper count? please help.


    mach3

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Denver, CO
    Posts
    1,743
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    you could use
    =SUBTOTAL(2,A2:A101)

    good luck

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Posts
    245
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    thanks. that's what i was looking for.



    mach3

Some videos you may like

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
  •