+ Reply to Thread
Results 1 to 5 of 5

Replacing characters dynamically?

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    Orange county
    MS-Off Ver
    Excel 2007
    Posts
    10

    Replacing characters dynamically?

    I have a list of number I need to trim a "/" character from. I've tried replace and looked into trim functions, but don't seem to work for me.

    The list looks like this:

    M-FI/SS/1H
    TP-CS/1
    TP-T/S/2
    P-HF573
    S-AUTTSO1H
    MTP-AUS58TH
    L-AUS58TO
    P-HF499
    MTP-AUR8V10

    But I want to look like this:


    M-FISS1H
    TP-CS1
    TP-TS2
    P-HF573
    S-AUTTSO1H
    MTP-AUS58TH
    L-AUS58TO
    P-HF499
    MTP-AUR8V10

    Some have the character and some don't. Would there be a way to create a formula that seeks that character and if present, deletes it?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Replacing characters dynamically?

    with your data in A!, try =SUBSTITUTE(A1,"/","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-24-2012
    Location
    Orange county
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Replacing characters dynamically?

    That looks like it would work, but i'm getting a circular reference warning. Am I doing something wrong? The data is in A1 and and copy pasted your formula.

    Edit: Nevermind! Created a new column and pasted formula. Worked like a charm! Thanks FDibbins!

    ---------- Post added at 04:06 PM ---------- Previous post was at 04:02 PM ----------

    Silly question, but i can't post a thanks. Any clues? I clicked the "post thanks" under your name but only tells when info.
    Last edited by koshersalt; 08-09-2012 at 07:04 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Replacing characters dynamically?

    click the star at the bottom left of the post, and thx

  5. #5
    Registered User
    Join Date
    07-24-2012
    Location
    Orange county
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Replacing characters dynamically?

    No, thank you!

+ 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