+ Reply to Thread
Results 1 to 5 of 5

Count rows matching multiple conditions

  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    44

    Count rows matching multiple conditions

    Hi all,

    I want to count all instances if the following conditions are true. In quotations, are the names that I am using for column ranges. Here are my conditions, I want to count the rows that have the following conditions.

    When "dates" or J2:J25 is less than or equal to today's date
    AND
    "HTeam" or W2:W25 is equal to Civil
    AND
    "Percent" or K2:K25 is equal to 100


    Thanks in advance for all your help.
    Last edited by NBVC; 11-18-2009 at 01:29 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count rows

    =Sumproduct(--(J2:J25<=Today()),--(W2:W25="Civil"),--(K2:K25=100))

    replace ranges with named ranges if desired.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Count rows

    =sumproduct( (dates<=today()) * (hteam="Civil") * (Percent = 1) )
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count rows matching multiple conditions

    As shg has deduced, if your "Percent" range is actually numbers formatted as percent you will need =1 (or you could say =100%), otherwise it would be =100 as I had shown.

  5. #5
    Registered User
    Join Date
    09-30-2009
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Count rows matching multiple conditions

    Thank you all for all your help.

+ 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