+ Reply to Thread
Results 1 to 4 of 4

Countif included within a list?

  1. #1
    Registered User
    Join Date
    01-11-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    30

    Countif included within a list?

    Hey folks is there a function that I can use to count from a list of names only if the names are included within another list. Quick example.

    I have a list of twelve names and another list of four names. I would like a count of how many names contained within the long list are also contained within the short list.

    Hope this makes sense.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Countif included within a list?

    Assuming:

    Long List: A1:A12
    Short List: B1:B4

    Then assuming any dupes should count as many times as they appear:

    Please Login or Register  to view this content.
    If the reverse is true, ie only count dupes as 1 then reverse order of the ranges in the MATCH.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Countif included within a list?

    With
    A1:A12 containing the long list
    and
    C1:C4 containing the short list

    This formula returns the count of short list items that are on the long list:
    Please Login or Register  to view this content.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    01-11-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Countif included within a list?

    Quote Originally Posted by Ron Coderre View Post
    With
    A1:A12 containing the long list
    and
    C1:C4 containing the short list

    This formula returns the count of short list items that are on the long list:
    Please Login or Register  to view this content.

    Is that something you can work with?


    Yup, spot on thanks.

+ 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