Re: Count rows based on multiple variables

From: Don (dummy_at_here.com)
Date: 10/27/04


Date: Tue, 26 Oct 2004 19:23:36 -0700

Murph

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

Don Pistulka

"Murph" <Murph@discussions.microsoft.com> wrote in message
news:69EDAA1A-CB94-41BD-B55F-2CB4A120B268@microsoft.com...
> 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



Relevant Pages

  • Count rows based on multiple criteria
    ... I'm having trouble figuring out a way to count specific rows in a database I ... have, using multiple variables. ... luck. ...
    (microsoft.public.excel.worksheet.functions)
  • Count rows based on multiple variables
    ... I'm having trouble figuring out a way to count specific rows in a database I ... have, using multiple variables. ... luck. ...
    (microsoft.public.excel.programming)
  • Re: "On the Fly" - another way to word this?
    ... single or multiple variables in the contact data profile in which ... Creating a call list directly from a database just as one might ... told to do without making value judgments about what they do. ...
    (alt.usage.english)
  • Visual Basic to get data from Access
    ... I'm working on a project and i have my forms built in VB and the database is ... I have trouble figuring out how to get VB to pull ... Any suggestions or help topics? ...
    (microsoft.public.access.forms)
  • SQL Accounts
    ... I'm having a bit of trouble figuring out the how to setup roles that ... basically grant EXECUTE, INSERT, SELECT, UPDATE, DELETE on a database. ...
    (microsoft.public.sqlserver.security)