+ Reply to Thread
Results 1 to 3 of 3

Using Countif after filtering data.

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Using Countif after filtering data.

    I want to filter my data (for example filter the fruit column for 'apples') and then using the results displayed, count the number of times that a location (for example Ontario) shows up just for 'apples'. I've attached a basic example. Note, I do know how to filter, I just don't know how to use the countif formula properly after the data has been filtered. Maybe I've chosen the wrong formula to use? thx
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using Countif after filtering data.

    Try:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET($B$2:$B$19,ROW($B$2:$B$19)-MIN(ROW($B$2:$B$19)),,1)),--(LEFT($A$2:$A$19,2)="ON"))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-24-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Using Countif after filtering data.

    Thanks NBVC. I'll mark this solved after I've had a chance to work through/understand it tonight.

+ 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