+ Reply to Thread
Results 1 to 2 of 2

Count values common between multiple columns/arrays

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Count values common between multiple columns/arrays

    Hello, I have the following problem:

    I need to count values that are common between multiple columns or arrays, which are not equal in size.

    Example:

    1 1 1
    3 8 8
    7 7
    5 4
    9

    Result sought:

    Number of values common to 3 columns = 1 (value 1)
    Number of values common to at least 2 columns = 3 (values 1, 7, 8)
    Number of values common to at least 1 column = 7 (total number of values in all columns with duplicates, triplicates etc. counted only once)

    I don't need to know which particular values are common between columns, just their numbers.

    The ultimate goal is to extrapolate this to many columns (at least 20), with each column drawing randomly an array of (non-repeating) numbers from a larger pool. Then, iterate this random procedure many times in a Monte Carlo simulation to obtain, for each result sought above, a mean number + variance.

    Any help is appreciated. Thank you.
    Last edited by mihcis; 12-20-2011 at 12:50 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Count values common between multiple columns/arrays

    Are these numbers actually arranged in columns in your spreadsheet? Not quite sure what you mean by arrays.

    Also, can any number appear more than once in a single column?
    Last edited by StephenR; 12-20-2011 at 01:03 PM.

+ 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