+ Reply to Thread
Results 1 to 4 of 4

Search for repeating names in a range of cells

Hybrid View

  1. #1
    Registered User
    Join Date
    03-11-2025
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Search for repeating names in a range of cells

    Hey everyone. Hoping someone can assist. I have a range of cells with names separated by commas. What I'd like Excel to do is search each cell to find repeating names. The issue is that names change and there are an infinite number of different names, so I can't have it search for a specific value; rather, I need Excel to compare different cells and isolate strings that are the same.

    Cell A1 might contain "Jade, Denzel, Jonie, Rianna, Lester".

    Cell A2 might contain "Jonie, William, Cam".

    Cell A3 might contain "Lester, Jonie".

    What I'm looking for Excel to do is search each cell, and if the same name is found more than twice in the range (in this example, that'd be Jonie), to return that name in a separate cell.

    Any creative solutions? I am still building my sheet so I can adapt it into whatever I need to make this happen. I realize this could be a multiple-part solution. For instance I was thinking why not have Excel extract each name first into individual cells, and then look for triplicates in the resulting range of data. But since each cell could have a different number of names, using MID, RIGHT and LEFT functions are a little tedious.

    If I need to venture into VBA to do this, no problem at all - I will need help with the code though!

    Thanks kindly!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,368

    Re: Search for repeating names in a range of cells

    Hi Reiner,

    If you were using Excel 365 with the newer functions of TextSplit and Spill functions, your problem would be easier. See the attached that uses these functions of:
    Formula: copy to clipboard
    =TOCOL(VSTACK(TEXTSPLIT(A2, ","), TEXTSPLIT(A3, ","), TEXTSPLIT(A4, ",")),3)

    Formula: copy to clipboard
    =UNIQUE(FILTER(B2:C11,C2:C11>1))


    If one of the smart Guru's can come up with a better answer, it might be time to upgrade to Excel 365.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,368

    Re: Search for repeating names in a range of cells

    Hi,
    Because you are using an older version of Excel his is another method..
    In C2 put this formula:
    Formula: copy to clipboard
    =TRIM(MID(SUBSTITUTE($A2, ",", REPT(" ", LEN($A2))), (COLUMNS($C1:C1) - 1) * LEN($A2)+1, LEN($A2)))

    Pull it across and down as far as you need to include all the names.
    Then do a Conditional Format to show Duplicates. That will show whose name appears more than once.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-11-2025
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    7

    Re: Search for repeating names in a range of cells

    Thanks, that's a bit of a workaround but I can make that work! Thanks for your help!

+ 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] Move Repeating and Non-Repeating Names into separated columns
    By aaaaa34 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-23-2019, 03:02 PM
  2. Replies: 7
    Last Post: 12-05-2016, 10:23 AM
  3. [SOLVED] Check if range of cells are in ascending order based on repeating data in another cell
    By mgcarino14 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-14-2016, 09:17 AM
  4. Search a range Last Names for age & return the value to a List of FULL NAMES
    By LunarLights in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2014, 05:02 PM
  5. pick a name out of list of 20 names without repeating names picked
    By gammoneer2b in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-06-2014, 10:14 AM
  6. Search for like names and return values in adjacent cells
    By FahQ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2013, 08:08 PM
  7. Replies: 4
    Last Post: 12-16-2012, 04:33 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