+ Reply to Thread
Results 1 to 3 of 3

Deleting one wing of twin text within a single Cell

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    40

    Deleting one wing of twin text within a single Cell

    Hi there,
    This one is tricky. I've already inquired the forum and no similar case was found.
    I have an excel sheet where a small textual reference should be added next to a list based on diverse input. Occasionally, a twin text appears within reference sentences within the cell in question.

    Example of cell content:
    Company Insurance insurance contract finalized.
    Andy Jefferson conducted supplier research research. Extra information needed from supplier research.

    In this case, a twin text separated by a space is appearing due to automatic filling. Obviously, I need one of those identical words to be removed automatically. However, I don't want to remove all similar words/values from cell. Only those which come after an identical value, whether completely identical or have capital/small letters difference.

    The formula/macro I need should do the following:
    1- Search an entire cell for any two identical values separated by a space.
    2- remove space+second identical value. However, keeping other similar text values in cell if there is any - as long as they don't have a twin value of their own
    3- Do same exercise with all other "twins" of different values within same cell, if there is any

    I'd really appreciate help with this one
    Thanks in advance.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Deleting one wing of twin text within a single Cell

    ghoneim,

    Welcome to the forum!
    Give this a try:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Deleting one wing of twin text within a single Cell

    Tigeravatar
    YOU ARE THE MAN
    This works perfectly, as exactly as I had in mind!!
    Can't thank you enough

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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