Thread: Using CountIf
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Using CountIf

=SUMPRODUCT(--(A2:A50="White"),--(B2:B50--"05:00"),--(B2:B50<--"10:00"))

if you replace all the criteria with cell refs then you can use

=SUMPRODUCT(--(A2:A50=C2),--(B2:B50D2),--(B2:B50<E2))

Regards,

Peo Sjoblom


"brucek" wrote in message
...
I have a spreadsheet with Ethnicity (White, African American, hispanic,
Asian, other) in column A and Time (hh:mm:ss) in column B.

I trying to determine by how many White, for example, have spent less than
5
hours, 5 hrs but less than 10 hr, etc.

My plan is to make a chart of the data.
I've been looking at sumproduct and COUNTIF but I can't quite figure it
out.

Any help is greatly appreciated