+ Reply to Thread
Results 1 to 2 of 2

Count COL B where COL B = X AND COL A = Y

Hybrid View

MitMcC Count COL B where COL B = X... 03-07-2007, 12:39 AM
duane =sumproduct(--(a1:a100="x"),--... 03-07-2007, 12:51 AM
  1. #1
    Registered User
    Join Date
    03-07-2007
    Posts
    1

    Count COL B where COL B = X AND COL A = Y

    I'm trying to do an excel formula in which I count the number of rows filtered on specified values of two columns.

    For example I have spreadsheet with 10 rows and 3 columns and I want to count the number of rows in which Column 1 has a value of Y and Column 3 has a value of X. For example:

    1 2 3
    X 1 A
    X 1 A
    X 1 A
    X 1 A
    X 1 A
    X 1 Y
    B 1 Y
    B 1 Y
    B 1 Y
    B 1 Y

    The answer to my formula = 1 row since only row 6 has both X in column 1 and Y in column 3.

    thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    =sumproduct(--(a1:a100="x"),--(c1:c100="y"))
    or
    =sumproduct((a1:a100="x")*(c1:c100="y"))
    not a professional, just trying to assist.....

+ 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