View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don[_18_] Don[_18_] is offline
external usenet poster
 
Posts: 18
Default Count rows based on multiple variables

Murph

Try:
=SUMPRODUCT((B1:B10="Jones")*(C1:C10="Feb")*(A1:A1 0=1)*(A1:A10<=3))


Don Pistulka

"Murph" wrote in message
...
I'm having trouble figuring out a way to count specific rows in a database
I
have, using multiple variables. For example. I have column A, B, and C.
In
column "A" are number values from 1-10. In Column "B" are peoples names,
and
in Column "C" are other text values. I want to figure out a way to count
all
the rows that have the numbers 1-3 in column "A", the same name in column
"B", and the same text value in column "C". I've tried using multiple
variations of the COUNT, DCOUNT, SUM, and DSUM functions but have had no
luck. Any help would be appreciated.
--
Brendan