+ Reply to Thread
Results 1 to 3 of 3

Counting cells with multiple conditions

  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    24

    Counting cells with multiple conditions

    I need a formula that will check multiple conditions.....

    A B
    1 Bob Car
    2 Dave Truck
    3 Mary Car
    4 Bob Car
    5 Carl Truck
    6 Dave Car
    7 Bob Truck

    In the above example I want to look at column A and find everywhere there is a "Bob" and "Dave" then I want to compare it to column B, and wherever "Bob" or "Dave" match "Car" it equals one. The results of the above would equal 3 (Rows 1,4,6 match the criteria)

    Thanks in advance

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try like this

    =SUMPRODUCT((A1:A10="Bob")+(A1:A10="Dave"),(B1:B10="Car")+0)

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    24

    One more wrinkle

    Another wrinkle... (changes in RED)
    I need a formula that will check multiple conditions.....

    A B
    1 Bob Car
    2 Dave Truck
    3 Mary Car - Small
    4 Bob Car - Small
    5 Carl Truck
    6 Dave Car - Big
    7 Bob Truck

    In the above example I want to look at column A and find everywhere there is a "Bob" and "Dave" then I want to compare it to column B, and wherever "Bob" or "Dave" match "Car", or "Car - Big", or "Car - Small" it equals one. The results of the above would equal 3 (Rows 1,4,6 match the criteria)

    Thanks in advance

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1