+ Reply to Thread
Results 1 to 3 of 3

Help!! how can i count cells within 2 criteria in a filtered column??

  1. #1
    Registered User
    Join Date
    01-21-2005
    Posts
    5

    Help!! how can i count cells within 2 criteria in a filtered column??

    I'm in trouble, at work, trying to find a formula that will count cells that fit two criteria (greater than or equal to 0 and less than and equal to 2) within a filtered column. I only want the visible cells to be counted. Help!!

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming that Column B contains the values you wish to count, try the following...

    =SUMPRODUCT((SUBTOTAL(3,OFFSET(B2:B100,ROW(B2:B100)-MIN(ROW(B2:B100)),0,1)))*(B2:B100={0,1,2}))

    Hope this helps!

    Quote Originally Posted by lizettegr
    I'm in trouble, at work, trying to find a formula that will count cells that fit two criteria (greater than or equal to 0 and less than and equal to 2) within a filtered column. I only want the visible cells to be counted. Help!!

  3. #3
    Registered User
    Join Date
    01-21-2005
    Posts
    5

    domenic you rock!

    thanks sooo much! it works perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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