+ Reply to Thread
Results 1 to 4 of 4

How to return True if at least two out of n cells match?

  1. #1
    Registered User
    Join Date
    03-02-2020
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    1

    How to return True if at least two out of n cells match?

    Hello,

    I'm trying to weed out situations where at least two cells match; altogether the formula needs to be flexible to account to many cells.

    Example attached. I'm trying to rank players by highest number of points. Need to avoid the situation in row 10 where Sean and Michael have the same points.


    Please only help on "how to return True if at least two out of n cells match" - I've been stuck on this for a while but want to figure out the rest myself!


    Cheers,
    D
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to return True if at least two out of n cells match?

    where do you want to return true?

    as an array with shift control enter
    =SUM(COUNTIF(A10:C10,A10:C10))/COUNT(A10:C10)>1

    SUM(COUNTIF(A10:C10,A10:C10)) should equal COUNT(A10:C10) if all values are unique, as each value gets counted once in the array. If thee are duplicates it will exceed this

  3. #3
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: How to return True if at least two out of n cells match?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to return True if at least two out of n cells match?

    Shareez, im not sure this works as the duplication could also be for 2nd place, if I understand the question correctly

+ 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] Return True or False statement if last 5 characters match or not
    By Eduards in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2019, 06:15 AM
  2. [SOLVED] function to return true/na/false when value doesn't match
    By pizzabae in forum Excel General
    Replies: 6
    Last Post: 10-13-2018, 12:19 PM
  3. match the data from the other tabs and return value if true or false
    By pphg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2013, 04:33 AM
  4. [SOLVED] Find.range to return True if match occurs
    By nivoe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2012, 07:26 AM
  5. [SOLVED] Match specific words in cell and return value if true or false
    By jbrooksia in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 04:15 PM
  6. Replies: 2
    Last Post: 06-29-2011, 01:36 PM
  7. Match and return a true false value
    By dcaraher in forum Excel General
    Replies: 2
    Last Post: 09-25-2009, 06:42 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