+ Reply to Thread
Results 1 to 4 of 4

Help deleting duplicate text in a cell

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help deleting duplicate text in a cell

    I have a sheet with 3 columns of data. Fund Family, Fund Name, Share class. The Fund Name column includes the Fund Family and the Share class information. I would like to know how I can automate the deletion of that information from the Fund Name column.
    Example

    Existing =

    Family Name Class
    ABC ABC Growth A A
    Alger Alger Small Cap Inst Inst


    Would like to end with

    Family Name Class
    ABC Growth A
    Alger Small Cap Inst

    Thank you.

    Corey

  2. #2
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Help deleting duplicate text in a cell

    I don't know how much you know about VBA but you will want to work with creating a new string for the second column by using Replace(Name, Family, "")

    Replace xyz with your sheet name and make sure to reference the correct columns

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-18-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help deleting duplicate text in a cell

    Thank you hulpeloos. I have one question. The end result for the changed column is leaving a space at the beginning and at the end. It is deleting the desired text, but leaving a blank space as a bookend. How would the code be changed to eliminate those unwanted spaces. Again, thank you for your previous response!
    Example...where _ = space...

    ABC _Growth_ A
    ABC Growth A
    Last edited by cbreneman; 01-18-2013 at 04:46 PM.

  4. #4
    Registered User
    Join Date
    01-18-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help deleting duplicate text in a cell

    I figured it out! Thank you so much for your assitance. It was greatly appreciated!!!

+ 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