+ Reply to Thread
Results 1 to 3 of 3

Which data set has the best overlap with a random sample

  1. #1
    Registered User
    Join Date
    11-08-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    1

    Which data set has the best overlap with a random sample

    Hi. In cells A1:A100 I have a list of numbers from 1 to 100. In column B, is a list of first names separated by a space and comma. For example, cell A2 has the value 2 and cell B2 has the text John, Paul, Andrew, Zach, Tom, James. I have 30 random names in cells D1:D30 and what I would like to do is see which cell in column B has the greatest overlap with these 30 names, which has the second best overlap, and so on. Is there a quick way of doing this? Many thanks in advance.

  2. #2
    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
    30,905

    Re: Which data set has the best overlap with a random sample

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Which data set has the best overlap with a random sample

    Try something like this...

    Data Range
    B
    C
    D
    1
    John, Paul, Andrew, Zach, Tom, James
    2
    Cindy
    2
    Fripper, Pat, Grimble, Plinka, Nurmy
    3
    Fripper
    3
    ------
    James
    4
    Skonce
    5
    Karen
    6
    Grimble
    7
    Paul
    8
    Loupy
    9
    Plinka


    This formula will count how many names from the list in column D appear in the cell.

    Entered in C1 and copied down:

    =SUMPRODUCT(--ISNUMBER(SEARCH(D$1:D$9,B1)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Averaging a random sample from a data set
    By batraneha in forum Excel General
    Replies: 7
    Last Post: 02-10-2016, 11:19 AM
  2. Random Sample without duplicates
    By tjroby in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-04-2013, 07:11 PM
  3. Random Sample
    By Saarang84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2009, 07:31 PM
  4. Random sample
    By RIROCKHOUND in forum Excel General
    Replies: 1
    Last Post: 11-09-2006, 07:17 PM
  5. random sample
    By skimpw in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-14-2006, 08:15 PM
  6. Replies: 4
    Last Post: 12-15-2005, 01:50 PM
  7. URGENT- Random Sample per range of data
    By Another Jennifer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2005, 10:05 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