+ Reply to Thread
Results 1 to 6 of 6

Count with Multiple Conditions

  1. #1
    Registered User
    Join Date
    03-23-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Count with Multiple Conditions

    Hi,

    I am a bit stuck and hopefully someone can help me. I am not sure what functions to use fo this formula.

    This is what I currently have - I know it is not correct as it is not working... Basically, if column M = X then I need to count non-blanks in K and minus non-blanks in N.

    =IF(SW!$M$2:$M100,"="&B69)((COUNTA(SW!$K$2:$K100))-(COUNTA(SW!$N$2:$N100)))

    Then once I have figured that out - I need to add another criteria to put a date date range on. To pull out numbers based on a certain date range.

    Any help much appreciated.

    Thanks George
    Last edited by DonkeyOte; 03-27-2011 at 04:41 AM. Reason: modified title

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: What Function to use

    Here, try this:


    =SUMPRODUCT(--($M$2:$M$100=B69), --($K$2:$K$100<>""), --($N$2:$N$100<>""))

  3. #3
    Registered User
    Join Date
    03-23-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: What Function to use

    Great, thank you very much.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: What Function to use


  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: What Function to use

    Yes, george, Cutter is right... COUNTIFS is more efficient (therefore work faster) than SUMPRODUCT but it only works for XL2007.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count with Multiple Conditions

    @george_g, going forward please try to ensure your title is in line with Forum guidelines - more specifically:

    Your post title should accurately and concisely describe your problem.

    Use terms appropriate to a Google search.


    The latter point is particularly relevant in this instance.

+ 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