View Single Post
  #3  
Old May 27th, 2010, 11:02 PM posted to microsoft.public.excel.worksheet.functions
JTurner
external usenet poster
 
Posts: 10
Default Using a COUNTIF statement with an AND operator

I plugged in your formula, adjusted the parameters and I get a total of 0. If
I were to filter the data, I'd get 13 records that meet this criteria.

"RonaldoOneNil" wrote:

Assuming number of people is in column A and group work is in column B, use
the following adjusting the range as required

=SUMPRODUCT((A1:A1000=1)*(B1:B1000=0))

"JTurner" wrote:

I'm using Excel 2003 so I hope I'm not limited here.

We are performing a space usage survey and I need to compile the data
results. Each location has 70 entries over the course of 10 days. I have a
column for "group work" where the value is either 1 or 0. I have another
column for # of people observed in a particular office. What I'm trying to do
is the following:

Get a count of instances where "# of people" = 1 and "group work" = 0

I'm doing a lot of countif statements, but I don't see how to do a countif
with an and operator. Help??!!