+ Reply to Thread
Results 1 to 3 of 3

Count with two critera

  1. #1
    Registered User
    Join Date
    08-19-2005
    Posts
    5

    Count with two critera

    I have two columns that I want to count based on certain criteria.


    cells C1:C8 have values of A, B or C

    cells D1:D8 has either a 1 or 0

    I want to get the total number of A's in the list that also have a 0 in column D

    A 0
    B 1
    C 0
    A 0
    A 1
    B 1

    If I counted all of the A's with 0 the result would be 2

    Thanks

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    Hi, Check out sum product, this site has a good explaination
    http://www.lqnet.com/Excel/sumprod.asp

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Hi there,

    Try this formula in the relevant cell:

    =SUMPRODUCT((C1:C8="A")*(D1:D8=0))

    HTH

    Robert

+ 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