+ Reply to Thread
Results 1 to 5 of 5

How many names are common between lists and how many are not in any list

  1. #1
    Registered User
    Join Date
    06-09-2020
    Location
    South Shields, England
    MS-Off Ver
    2010
    Posts
    7

    How many names are common between lists and how many are not in any list

    I am trying to find out the following:

    1.) How many names from 'Sales' are also in both 'Webinar' and 'Lead' sheets
    2.) How many names from 'Sales' are not in either 'Webinar' or 'Lead' sheets

    I've attached a simple workbook as a sample

    Any help is much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,941

    Re: How many names are common between lists and how many are not in any list

    Using Power Query, I created a series of joins to find your results as shown in the attached sheets.

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: How many names are common between lists and how many are not in any list

    Here is another approach :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,849

    Re: How many names are common between lists and how many are not in any list

    3rd option - formula
    in B1 and copied down:
    (for In Both)
    =AND(ISNUMBER(MATCH(A1,Webinar!$A$1:$A$30,0)),ISNUMBER(MATCH(A1,Lead!$A$1:$A$30,0)))
    in C1 copied down:
    (for in neither)
    =AND(NOT(ISNUMBER(MATCH(A1,Webinar!$A$1:$A$30,0))),NOT(ISNUMBER(MATCH(A1,Lead!$A$1:$A$30,0))))

    to count the number in both:
    =COUNTIFS(B1:B30,TRUE)

    to count the number in neither:
    =COUNTIFS(C1:C30,TRUE)
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,087

    Re: How many names are common between lists and how many are not in any list

    Using the following method, the results can be placed on a new sheet (for example "Summary")

    Part 1:
    to generate a list of names that are common on all three lists (this example has up to 100 rows of data, and may include blanks)...
    * NOTE: a header (title) cell is required, so put this formula into cell G2

    Please Login or Register  to view this content.
    OR
    Please Login or Register  to view this content.
    To enter an array formula, type the formula in a cell then press and hold CTRL + SHIFT simultaneously, now press Enter once. Release all keys.
    Drag down as far as you like.

    Part 2:
    to get the total of the results...
    * where the results are text

    place this formula in cell H2
    Please Login or Register  to view this content.
    Part 3a:
    to generate a list of names that are NOT on EITHER the Webinar OR Leads lists (this has up to 100 rows of data, and may include blanks)...
    * NOTE: a header (title) cell is required, so put this formula into cell I2

    Please Login or Register  to view this content.
    OR
    Please Login or Register  to view this content.
    To enter an array formula, type the formula in a cell then press and hold CTRL + SHIFT simultaneously, now press Enter once. Release all keys.
    Drag down as far as you like.

    Part 3b:
    the first formula in Part 3a will yield 1 result of "0" at the bottom (the second formula will not have this issue), to get rid of it (the "0" result) for aesthetic purposes, select the column, and use Conditional Formatting > Custom, and input this code:
    Please Login or Register  to view this content.
    Part 4:
    to get the total of the results...
    * where the results are text

    place this formula in cell J2
    Please Login or Register  to view this content.
    sample file is attached
    Last edited by janmorris; 09-09-2021 at 08:06 AM.

+ 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. list of items common to 2 lists, generalization to large tables
    By Henri dlS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2020, 06:45 AM
  2. How to do dependent variable drop down lists without using list names.
    By atindall in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-13-2015, 09:59 PM
  3. Replies: 3
    Last Post: 04-30-2015, 06:12 PM
  4. [SOLVED] Combining two lists of names and all combinations based on a separate common value
    By Speshul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2015, 12:31 PM
  5. Replies: 5
    Last Post: 03-26-2015, 01:40 PM
  6. Replies: 3
    Last Post: 08-19-2012, 08:35 PM
  7. Replies: 5
    Last Post: 05-21-2010, 04:34 PM

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