+ Reply to Thread
Results 1 to 9 of 9

COUNTIFS and SUBTOTAL Functions Help

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    COUNTIFS and SUBTOTAL Functions Help

    Hi

    I am trying to figure out how to combine the SUBTOTAL and COUNTIFS functions.

    As you can see the COUNTIFS counts the “Y”in column A and “Unknown”in column D.

    When I apply the sort feature the COUNTIFS function number remains the same , but the SUBTOAL function number alters based on the sort criteria.

    Is my way possible to achieve.

    I have attached a copy of the excel spreadsheet.
    Have a great day!!!!

    Lou

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Cool Re: COUNTIFS and SUBTOTAL Functions Help

    Hi,
    Welcome to this forum..
    Tell .. Is that what you were trying to achieve..
    Please Login or Register  to view this content.
    Check the attached file..
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  3. #3
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: COUNTIFS and SUBTOTAL Functions Help

    Hi Vikas

    Yes... many thanks for your assistance.

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: COUNTIFS and SUBTOTAL Functions Help

    You are always welcome...

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: COUNTIFS and SUBTOTAL Functions Help

    With an pivot table.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: COUNTIFS and SUBTOTAL Functions Help

    Hi oeldere

    Thanks for your advice I will take a look at this concept.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: COUNTIFS and SUBTOTAL Functions Help

    Quote Originally Posted by Vikas_Gautam View Post
    =SUMPRODUCT(SUBTOTAL(2,OFFSET(E11,ROW(A11:A167)-ROW(A11),)),--(A11:A167="Y"),--(D11:D167="Unknown"))
    You don't really need a helper column, Vikas. You can use column A (or D) in the OFFSET part because you know those columns must be populated to fulfil the other criteria, i.e.

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(A11,ROW(A11:A167)-ROW(A11),)),--(A11:A167="Y"),--(D11:D167="Unknown"))
    Audere est facere

  8. #8
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: COUNTIFS and SUBTOTAL Functions Help

    yeah..
    Thanks for the advice.. long..
    Actually it was my first time with this type of forumla...

  9. #9
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: COUNTIFS and SUBTOTAL Functions Help

    Hi Audere est facere

    That function that you provided is exactly what I am looking for. Works like a charm.

    Many thanks.

    PS I have learnt some thing new.

+ 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] Countifs arrays with multiple criteria and subtotal function
    By 5150 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2013, 01:58 AM
  2. Subtotal and Countifs
    By pisgah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 02:14 PM
  3. Subtotal for countifs function
    By guyzk1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2013, 04:39 PM
  4. Replies: 1
    Last Post: 03-21-2011, 01:39 PM
  5. Replies: 0
    Last Post: 11-15-2007, 05:24 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