+ Reply to Thread
Results 1 to 4 of 4

How to count the number of times an item in ColB appears in ColA.

  1. #1
    Forum Contributor
    Join Date
    11-11-2004
    MS-Off Ver
    pro + 2019
    Posts
    134

    How to count the number of times an item in ColB appears in ColA.

    Not much elsexcept there is a master list of names in A:A with a smaller list in B:B.

    Trying to come up with an array that will tell me how many of the names in ColB are actually a part of the master list in ColA.

    note: if a name in ColB "is" in ColA it would only be once. So, it feels like I'm trying to count the number of TRUE returns.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: How to count the number of times an item in ColB appears in ColA.

    Why you don't use countif to count how many times?
    or if you want to count matches, then a sumproduct: =SUMPRODUCT(--(A2:A100=B2:B10))
    Click the * to say thanks.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,182

    Re: How to count the number of times an item in ColB appears in ColA.

    Try

    =SUMPRODUCT(COUNTIF(A2:A1000,B2:B100))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Contributor
    Join Date
    11-11-2004
    MS-Off Ver
    pro + 2019
    Posts
    134

    Re: How to count the number of times an item in ColB appears in ColA.

    thanks a great deal. I'll put those to work.

    I think I was over-thinking the process.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 06-14-2019, 05:49 AM
  2. Count number of times an item appears in the list
    By arthur_b in forum Excel General
    Replies: 4
    Last Post: 05-04-2019, 06:57 AM
  3. Replies: 4
    Last Post: 07-31-2018, 04:24 PM
  4. [SOLVED] Function to count the number of times an item appears , fulfilling conditions
    By Aretradeser in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2016, 10:55 AM
  5. SUM(ColB Where ColA=y)
    By brianmo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2007, 03:10 PM
  6. match colC to ColA, put row from ColB for 'answer'
    By MatthewTap in forum Excel General
    Replies: 4
    Last Post: 10-14-2005, 02:38 PM
  7. want to count in two columns; countif (colA=x AND colB=y)?
    By Heather Murch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

Tags for this Thread

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