+ Reply to Thread
Results 1 to 7 of 7

Subtotal to count 2 criteria.

  1. #1
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Post Subtotal to count 2 criteria.

    Hi All,

    So I want to count if how often both "M" appears in A2:A20 & "Y" appears in B2:B20, i only want this the count the visible data (the data i have filtered to)

    I've attached an example spreadsheet of what i want the formula to do. (Don't think i explained clearly enough)
    Attached Files Attached Files

  2. #2
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Subtotal to count 2 criteria.

    Hi

    Do you mean?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: Subtotal to count 2 criteria.

    Sorry that was a bad example :L column A doesn't always contain "M"
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,827

    Re: Subtotal to count 2 criteria.

    "However I need this to recalculate so it only counts the visable cells"

    need more clarification

    Punnam

  5. #5
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: Subtotal to count 2 criteria.

    When i apply a filter i only want it to count the cells i have filtered to.

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,827

    Re: Subtotal to count 2 criteria.

    Hi,

    Someone else should help you , i think can be done with the help of offset and sumproduct .

    Punnam

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    18,397

    Re: Subtotal to count 2 criteria.

    Try

    SUMPRODUCT((B2:B30="Y")*(A2:A30="M")*(SUBTOTAL(3,OFFSET(B2,ROW(2:30)-2,))))

+ 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] Subtotal Count Of Help
    By swoosh1014 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-13-2014, 05:29 PM
  2. [SOLVED] Subtotal - count ?
    By spookiepower in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2013, 10:07 AM
  3. Subtotal - Delete zero Subtotal and prior rows that calculate to that zero Subtotal
    By Whatsherface in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 08:37 PM
  4. [SOLVED] Second subtotal but it's a count not a sum
    By kisboros in forum Excel General
    Replies: 13
    Last Post: 05-10-2012, 12:59 PM
  5. SubTotal Count(2)
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2009, 12:51 PM
  6. SubTotal function. How do I keep reuse Subtotal criteria.
    By davidthegolfer in forum Excel General
    Replies: 0
    Last Post: 10-10-2006, 03:28 AM
  7. SUBTOTAL and then count with criteria
    By Jane in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2005, 03:07 AM

Tags for this Thread

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