+ Reply to Thread
Results 1 to 7 of 7

Total number of matching numbers from 2 arrays

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Barnsley
    MS-Off Ver
    Excel 2002
    Posts
    8

    Total number of matching numbers from 2 arrays

    Hi All,

    I run a weekly competition where each person chooses 10 numbers, and then each national lotto 6 numbers are drawn out. I mark off the number that people have chosen against the drawn lotto numbers. Once one person has all their numbers drawn out they win the money.

    I have a sheet with names down Column A (Rows 1 - 16) and their chosen number in Columns B - K

    Underneath this table I have the drawn out lotto numbers Columns A - F Rows 17 - 32)

    I would like a formula that works out how many numbers are matched for each person as I input the lotto numbers in the A - F Row 17 - 32 and output this figure in Column L (against their name).

    Please help

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Total number of matching numbers from 2 arrays

    A sample workbook pls?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    08-20-2013
    Location
    Barnsley
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: Total number of matching numbers from 2 arrays

    File attached as requested :-)
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Total number of matching numbers from 2 arrays

    An unusual but simple approach.

    =IF(COUNTIF($A$20:$F$23;B1)>0;1;0)

    =SUM(L1:U1)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-20-2013
    Location
    Barnsley
    MS-Off Ver
    Excel 2002
    Posts
    8

    Re: Total number of matching numbers from 2 arrays

    Thanks for your help :-)

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

    Re: Total number of matching numbers from 2 arrays

    Quote Originally Posted by Fotis1991 View Post

    =IF(COUNTIF($A$20:$F$23;B1)>0;1;0)
    Or, more simply:

    =--(COUNTIF($A$20:$F$23;B1)>0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Total number of matching numbers from 2 arrays

    You are welcome and thanks for the feed back.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thank you.

+ 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. [SOLVED] Sum of 16 numbers out of 25, matching a number
    By Askalian in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-08-2013, 02:17 PM
  2. [SOLVED] Count the total number of times several numbers appear on each row
    By dwontheweb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-28-2012, 12:11 AM
  3. Replies: 4
    Last Post: 06-28-2011, 07:14 PM
  4. Matching Names with Numbers (total)
    By jayclinton in forum Excel General
    Replies: 2
    Last Post: 09-01-2009, 06:39 PM
  5. Random number generator and matching all numbers
    By Zyphon in forum Excel General
    Replies: 2
    Last Post: 03-14-2008, 04:40 AM

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