+ Reply to Thread
Results 1 to 2 of 2

Count occurences btwn two different values across two columns

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    QUEENS, NY
    MS-Off Ver
    Excel 2003
    Posts
    3

    Count occurences btwn two different values across two columns

    I need a bit of help on how to create a formula that has been driving me up the wall. I have two columns. I am trying to find the number of occurrences of two different values across two different columns.

    Here are my two columns:

    Program Causation
    7 2
    13 3
    7 2
    16 2
    7 2
    7 1
    13 2
    7 3
    16 2
    13 1

    I am trying to calculate how many times program # experiences causation #. So for Program 7 would be 3 occurrences where causation 2 appears. I have about 200 rows of the same numbers to account. I have tried countif and sumif functions. Can anyone please shed some light on my dark day?

    Thanks a million!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count occurences btwn two different values across two columns

    =sumproduct((a1:a200=7)*(b1:b200=2))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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