+ Reply to Thread
Results 1 to 6 of 6

Multiple column count

  1. #1
    Registered User
    Join Date
    04-20-2007
    Posts
    3

    Multiple column count

    Hi, I cannot find a answer to this anywhere.

    I need to do this
    Count how many times Both A and ABC in cells A1 and B1 are on the same row within Column C and D via formula
    in this case the answer is 3 times


    A|B|C|D
    A|ABC|A|ABC
    .|.|B|ABC
    .|.|C|ABC
    .|.|A|BAC
    .|.|A|CBA
    .|.|B|CBA
    .|.|C|BAC
    .|.|A|ABC
    .|.|A|ABC
    Last edited by Gamecraze; 04-20-2007 at 12:25 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Game, try this formula:

    Please Login or Register  to view this content.
    Change your ranges to suit. I used C1:C9 and D1:D9 as an example.

  3. #3
    Registered User
    Join Date
    04-20-2007
    Posts
    3
    Cannot seem to get it to work. Mabey just me i dunno
    =SUMPRODUCT((--$B$2&$F$1=K2:K9&M2:M9))

    My actual numbers for testing are b2 and f1, and columns K and M
    Ideally, it'll be K:K and M:M instead of k1:k1000 or whatever

    I've tried:
    =COUNT(AND(MATCH(B$2,K:K,FALSE),MATCH(F$1,M:M,FALSE)))
    and lots of other incomplete stuff with match, countif, sum (not sumproduct tho)
    Last edited by Gamecraze; 04-20-2007 at 01:16 AM.

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    The problem is that you copied paul's formula incorrectly.

    =sumproduct(--(a1&b1=c1:c9&d1:d9))

    Also, note that you cannot use an entire column as your range with the sumproduct formula. You cannot use K:K, although you can use K1:K65000

  5. #5
    Registered User
    Join Date
    04-20-2007
    Posts
    3
    Thank you very much both of you, I believe I got what i needed working with that.

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Glad you have it sorted out now. Thanks for letting us know.

+ 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