+ Reply to Thread
Results 1 to 5 of 5

TRUE/FALSE if Duplicate texts are present in a string

  1. #1
    Registered User
    Join Date
    12-13-2021
    Location
    Kolkata, India
    MS-Off Ver
    Microsoft Office Home and Student 2019
    Posts
    28

    TRUE/FALSE if Duplicate texts are present in a string

    Hi,

    I have a data array mixed with number and text. I want know if duplicate texts are present in that array. And also, I would like to highlight the cells containing duplicate texts.

    Thanks
    Attached Files Attached Files

  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
    28,206

    Re: TRUE/FALSE if Duplicate texts are present in a string

    CF for A2:F3

    =AND(ISTEXT(A2),COUNTIF($A$2:$F$3,A2)>1)
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    12-13-2021
    Location
    Kolkata, India
    MS-Off Ver
    Microsoft Office Home and Student 2019
    Posts
    28

    Re: TRUE/FALSE if Duplicate texts are present in a string

    Thanks! I appreciate your help.

    So, I have to write the formula 50 times if I have a sheet with 100 rows. How can I get the result as TRUE/FALSE instead of highlighting the cells?

  4. #4
    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
    28,206

    Re: TRUE/FALSE if Duplicate texts are present in a string

    Your sample file almost certainly over simplifies the problem: what is the result is there is duplication in only one row of a pair of rows?

  5. #5
    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
    28,206

    Re: TRUE/FALSE if Duplicate texts are present in a string

    A row by row formula

    in H2

    =IF(OR(COUNTIF($A2:$F2,$A2)=2,COUNTIF($A2:$F2,$C2)=2,COUNTIF($A2:$F2,$E2)=2),"True","")

    copy down

+ 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. How to find a string in a row and return true or false
    By A2G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2015, 03:28 PM
  2. True/False to display with a duplicate entry
    By chris37422 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2015, 04:45 PM
  3. Duplicate + True/False Formula
    By Stephen R in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-13-2014, 12:26 PM
  4. [SOLVED] True/False Duplicate Formula
    By Stephen R in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-13-2014, 10:10 AM
  5. [SOLVED] True False ( need duplicate not duplicate )
    By makinmomb in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-07-2014, 03:49 AM
  6. Return True/False if a string of words is present in another list
    By tmahoney1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2013, 05:39 PM
  7. [SOLVED] Return True/False by searching a value in an array of string
    By aiyathomas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-30-2013, 12:35 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