+ Reply to Thread
Results 1 to 6 of 6

Mix countif with subtotal

  1. #1
    Forum Contributor
    Join Date
    03-06-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    352

    Question Mix countif with subtotal

    Morning,

    I need to run a countif on a filtered column - how do I do this please?

    Thanks

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Mix countif with subtotal

    hi there. go to the link in my signature "Tips & Tutorials I Compiled" & download the file. Sheet 10 would be roughly what you want. you probably don't need multiplying though. so using that eg. say you want to do a COUNTIF of those where column B equals Range 2, then:
    =COUNTIF(B8:B19,"Range 1")

    mixing it with Autofilter would be:
    =SUMPRODUCT(SUBTOTAL(3,OFFSET(B8,ROW(B8:B19)-ROW(B8),))*(B8:B19="Range 1"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    03-06-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    352

    Re: Mix countif with subtotal

    OK thanks. I don't have an equivalent of your column B though, because there is about 700 lines with some of them filtered out, so I just want to count the one's that are not filtered out?

  4. #4
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Mix countif with subtotal

    pls share your excel sheet here

  5. #5
    Forum Contributor
    Join Date
    03-06-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    352

    Re: Mix countif with subtotal

    Well there's a slight problem there because it's an updating query table which will bug if it's not connected to our server. Let me create a sample file

  6. #6
    Forum Contributor
    Join Date
    03-06-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    352

    Re: Mix countif with subtotal

    Here attached
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Countif in Subtotal
    By lemuel in forum Excel General
    Replies: 3
    Last Post: 11-06-2012, 05:14 PM
  2. [SOLVED] Subtotal countif?
    By freud1 in forum Excel General
    Replies: 12
    Last Post: 10-02-2012, 07:31 AM
  3. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  4. countif and subtotal
    By suss-hmfc in forum Excel General
    Replies: 1
    Last Post: 01-18-2008, 10:10 AM
  5. [SOLVED] > but < subtotal (3,...) or countif
    By PAR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2006, 05:55 AM

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