Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Counting Data Meeting 3 Criteria in 3 Columns

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have database dump with info in several columns. Would like to tabulate count that meets specified criteria.

    COLOR NUMBER REGION
    ----- ------ ------
    green 5 FL
    blue 6 GA
    blue 4 FL
    blue 1 FL
    red 7 NY

    What formula can I write to count numer of occurances of blue in FL having number
    between 4 and 6 to produce correct result of 2?

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,653
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-07 13:05, davids wrote:
    I have database dump with info in several columns. Would like to tabulate count that meets specified criteria.

    COLOR NUMBER REGION
    ----- ------ ------
    green 5 FL
    blue 6 GA
    blue 4 FL
    blue 1 FL
    red 7 NY

    What formula can I write to count numer of occurances of blue in FL having number
    between 4 and 6 to produce correct result of 2?
    =SUMPRODUCT((colorrange=E1)*(numberrange>=E2)*(numberrange<=E3)*(regionrange=E4))

    where E1 houses the color condition, E2 and E3 the (inclusive) between condition, and E4 the region condition.

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,653
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    Alternatively, enter in G1:J2

    {"color","number","number","region";
    "blue",">=4","<=6","FL"}

    assuming that the sample data is A1:C6, you could also use:

    =DCOUNT(A1:C6,2,G1:J2)


  4. #4
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default



Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •