Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have a spreadsheet that is essentially a todo list for different groups. I have a column for Group and Status. Both have data validation drop downs so I can reliably match the text content.

I have a stats area at the top. I have easily been able to use a simple COUNTIF to count up the total incomplete tasks:

=COUNTIF(Status, "New") + COUNTIF(Status, "In Progress")

I would like to have a similar count, but it should be specific to the group. "Count all rows that have the value, "Group 1" in the named range, Group, and have the value "New" or "In Progress" in the named range, Status.

Here it is in c-ish pseduocode:

n = 0;
if ((Status == "New") OR (Status == "In Progress")) AND (Group == "Group 1")
{
   n++;
}
return n;

Is this possible?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Here is the solution that ended up working for me:

=ArrayFormula(sum(countif(if(Group="Group 1",Status),{"New","In Progress"})))
share|improve this answer
    
Perhaps you can mark it as answered? –  Jacob Jan Tuinstra Jan 24 '13 at 9:42
    
Thanks for the reminder :) –  Rapture Jan 24 '13 at 14:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.