+ Reply to Thread
Results 1 to 4 of 4

Count Matches from 2 Lists

  1. #1
    Registered User
    Join Date
    12-18-2018
    Location
    Phuket, Thailand
    MS-Off Ver
    Windows 11 - MS Office 365
    Posts
    88

    Count Matches from 2 Lists

    Hi there,

    I have 2 lists and I want to count the number of matches. This is not a match row to row, just generally. I also want to ignore blanks.

    It seems like the formula I have is counting blanks too. I have tried =SUMPRODUCT(--(A2:A101=B2:B101))

    The attached Excel sheet is an extraction of my main workbook, and I need the blanks included in the formula but not counted.

    Can someone help with me a formula please

    Thanks, Danny
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Count Matches from 2 Lists

    Try it this way:

    =SUMPRODUCT((ISNUMBER(MATCH(A2:A101,B2:B101,0)))*(A2:A101<>""))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-18-2018
    Location
    Phuket, Thailand
    MS-Off Ver
    Windows 11 - MS Office 365
    Posts
    88

    Re: Count Matches from 2 Lists

    Thank you Pete!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Count Matches from 2 Lists

    You're welcome - thanks for the rep.

    Pete

+ 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: 07-27-2014, 10:23 AM
  2. Cross reference 2 lists. Count matches on 2 lists. Help please!
    By islesnyanks88 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-27-2014, 09:47 AM
  3. Replies: 0
    Last Post: 08-11-2012, 03:25 PM
  4. Matches and differences between two lists
    By melvin in forum Excel General
    Replies: 3
    Last Post: 09-21-2009, 11:51 AM
  5. comparing two lists for matches
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2008, 11:54 AM
  6. Find matches between lists
    By mustangcobra44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2007, 01:03 PM
  7. Inspect 2 lists for matches.
    By Sengdahl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2006, 03:25 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