Results 1 to 5 of 5

Thread: How to remove duplicates within a "single cell"

  1. #1
    Neophyte JoanieBall's Avatar
    Join Date
    Sep 2019
    Posts
    1
    Articles
    0
    Excel Version
    2019

    Exclamation How to remove duplicates within a "single cell"



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi all-

    I have a spreadsheet I'm working on where I pasted the values and it caused duplicate values to appear in the same cell. Here is an example below of what it looks like:

    John SmithJohn Smith
    Amy SchulerAmy Schuler

    I want to remove the duplicate values within the cell so it just shows:

    John Smith
    Amy Schuler

    I've tried using the different VBA macro's around the internet but they don't seem to work for this issue. I can't use the Text to Columns either since that won't help in separating out the values.

    Can you help me?

  2. #2
    Conjurer Fluff's Avatar
    Join Date
    Sep 2018
    Posts
    112
    Articles
    0
    Excel Version
    O365
    How about
    =LEFT(A2,LEN(A2)/2)

  3. #3
    Acolyte arup1032's Avatar
    Join Date
    Sep 2015
    Location
    Bangladesh
    Posts
    21
    Articles
    0
    Excel Version
    Excel 2013
    Use the blow formula:

    =MID(B2&" ",1,FIND(" ",B2&" "))& MID(SUBSTITUTE(B2&" ",MID(B2&" ",1,FIND(" ",B2&" ")),"")&" ",1, FIND(" ",SUBSTITUTE(B2&" ",MID(B2&" ",1,FIND(" ",B2&" "))&" ","")))

    Just replace B2 with your required cell.

    Using the above formula we will able to avoid duplicated text in any position of the sentence in the cell.
    Arup Kumar Das
    excelformulas.net

  4. #4
    Acolyte r121a947's Avatar
    Join Date
    Jun 2019
    Posts
    41
    Articles
    0
    Excel Version
    Office 365
    I am looking for the same solution . . .

    I tried arup1032's solution, and a spreadsheet showing the result is attached.

    It is truncating non-duplicate words . . .

    Any and all help is greatly appreciated. Thanks.chartEx.xlsx

  5. #5
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,490
    Articles
    0
    Excel Version
    Office 365 Subscription
    You have hijacked another member’s thread. Please start your own. Thanks.
    Ali
    Enthusiastic self-taught user of MS Excel!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •