Count rows based on multiple variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Murph

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


Don Pistulka
 
You say "the same". Do you intend to specify what that name and text is, or is
the formula supposed to just count duplicates based on columns B and C where A
is between 1 and 10?
 
I intend to specify what the name and text is. For example, I want to count
all the rows that have a value between 1 and 7 in Column A, a value of
"Smith" in column B, and a value of "Open" in Column C. I tried Don's
formula, but that didn't work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top