Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Conditional Count

  1. #1
    New Member
    Join Date
    Feb 2002
    Location
    Santa Barbara
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am trying to do a count based on several conditions. I tried using the conditional sum wizard and change the code from sum to count, but it gives me a count of the entire range. Any ideas on limiting a count based on conditions being met by other columns?

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Assuming your data looks "similar" to this:


    {"a",1,3;
    "b",2,3;
    "c",1,4;
    "d",2,4}


    And you want to count the letters in the first column that have a 1 in second column and a 3 in third column, try this formula:

    =SUMPRODUCT((B1:B4=1)*(C1:C4=3))

    Regards,

    Juan Pablo González
    http://www.juanpg.com

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •