+ Reply to Thread
Results 1 to 3 of 3

comparing number sets

Hybrid View

  1. #1
    Registered User
    Join Date
    02-12-2012
    Location
    White Mountains, NH
    MS-Off Ver
    Excel 2007
    Posts
    65

    comparing number sets

    Hi,
    I have two separate number sets:
    Set 1 has 5 numbers 1-99 (A1:A5).
    Set 2 has 10 numbers 1-99 (A6:A15).
    Results Cell: prefer A17 (needs to be in same row as sets 1 & 2)

    I'd like to compare the two sets as follows:

    If there are zero matches between set 1 & set 2 then set 'results' cell to a "0".
    If there is one number match between set 1 & 2 then set 'results' cell to a "1".
    If there are two number matches between set 1 & 2 then set the 'results' cell to a "2"
    If there are three number matchess between set 1 & 2 then set the 'results' cell to a "3".

    thank you for your time,
    Chubs

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: comparing number sets

    Hi

    Try this

    A17: =SUM(IF(ISNUMBER(MATCH(A1:A5,A6:A15,0)),1,0)) array enter the formula

    HTH

    rylo

  3. #3
    Registered User
    Join Date
    02-12-2012
    Location
    White Mountains, NH
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: comparing number sets

    thank you.
    I will give it a whirl and advise.

    Chubs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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