+ Reply to Thread
Results 1 to 4 of 4

Count when filter is applied but need to be specific as cells have IF/AND formula's in

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 365
    Posts
    61

    Count when filter is applied but need to be specific as cells have IF/AND formula's in

    Hi guys,

    So this is the new problem I am faced with. I work with Excel 2003. I want to do a formula that works through filters, so I did subtotal (e.g =SUBTOTAL(103,E$9:E$301) ) but, in the column that I need to count is a formula entered in each cell which is an IF/AND formula =IF(AND(F9="",D9<TODAY(),ISNUMBER(D9)),"Over due","") so the subtotal is counting all of the cells when I only need it to count the cells which display the result "over due", then I need it to work in a filter...

    I can not think of a way that this is possible...then again my knowledge of Excel is basic? I can do COUNTIF (which is what I have now) but then it doesn't work in filters.

    If it isn't possible then never mind I'll work round it, but I would prefer to avoid VBA where possible.

    Thanks

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count when filter is applied but need to be specific as cells have IF/AND formula's in

    Try this...

    =SUMPRODUCT(SUBTOTAL(103,OFFSET(E$9,ROW(E$9:E$301)-ROW(E$9),0)),--(E$9:E$301<>""))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 365
    Posts
    61

    Re: Count when filter is applied but need to be specific as cells have IF/AND formula's in

    Wow!! Thank you Tony that is amazing :-) really appreciated.

    Thank you very much.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count when filter is applied but need to be specific as cells have IF/AND formula's in

    You're welcome. Thanks for the feedback!

+ 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