Results 1 to 3 of 3

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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"

    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
    Acolyte Fluff's Avatar
    Join Date
    Sep 2018
    Posts
    87
    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

Posting Permissions

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