+ Reply to Thread
Results 1 to 16 of 16

Find/Replace

  1. #1
    Registered User
    Join Date
    05-19-2021
    Location
    India
    MS-Off Ver
    2013
    Posts
    6

    Find/Replace

    My excel worksheet column contains the following :
    es15/
    ec7886/
    ed8999/
    es15/
    et6575/

    I want the last '/' to be removed.
    How do I do 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
    53,048

    Re: Find/Replace

    maybe...
    Find "/"
    Replace ""
    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
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Find/Replace

    1 quick way is using Find & Replace> Ctrl+H > Find what: / > Replace with: (leave blank) > Replace All > OK

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Find/Replace

    an alternate solution is with Power Query

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    05-19-2021
    Location
    India
    MS-Off Ver
    2013
    Posts
    6

    Re: Find/Replace

    Thanks, GOD BLESS YOU!!!!

  6. #6
    Registered User
    Join Date
    05-19-2021
    Location
    India
    MS-Off Ver
    2013
    Posts
    6

    Re: Find/Replace

    If I want to add a character to the existing text. How do I do it?

  7. #7
    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
    53,048

    Re: Find/Replace

    what do you mean? Give some examples plz

  8. #8
    Registered User
    Join Date
    05-19-2021
    Location
    India
    MS-Off Ver
    2013
    Posts
    6

    Re: Find/Replace

    My excel worksheet column contains the following :
    es15/
    ec7886/
    ed8999/
    es15/
    et6575/

    I want,


    es-15/
    ec-7886/
    ed-8999/
    es-15/
    et-6575/

  9. #9
    Registered User
    Join Date
    05-19-2021
    Location
    India
    MS-Off Ver
    2013
    Posts
    6

    Re: Find/Replace

    My excel worksheet column contains the following :
    es/15/
    ec78/86/
    ed8/999/
    es15/
    et65/75/

    I want to delete "/"witin the strings keeping trailing "/" intact.

    Like,

    es15/
    ec7886/
    ed8999/
    es15/
    et6575/

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Find/Replace

    Quote Originally Posted by prkundan View Post
    My excel worksheet column contains the following :
    es/15/
    ec78/86/
    ed8/999/
    es15/
    et65/75/

    I want to delete "/"witin the strings keeping trailing "/" intact.

    Like,

    es15/
    ec7886/
    ed8999/
    es15/
    et6575/
    Try this formula=SUBSTITUTE(A1,"/","",1)

  11. #11
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,465

    Re: Find/Replace

    Quote Originally Posted by prkundan View Post
    My excel worksheet column contains the following :
    es15/
    ec7886/

    I want,

    es-15/
    ec-7886/
    Assuming your column is A and the data starts on Row 1, use this formula in an unused column's Row 1 and copy down to the end of your data, then copy/paste values over top of your existing data, then delete the formulas...

    =REPLACE(A1,3,0,"-")

  12. #12
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,465

    Re: Find/Replace

    Quote Originally Posted by josephteh View Post
    Try this formula=SUBSTITUTE(A1,"/","",1)
    Or, if the OP's examples were not truly representative and the data could have more than two slashes in it...

    =SUBSTITUTE(A1,"/","")&"/"

  13. #13
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Find/Replace

    Yes, Rick, your formula is more complete. Thank you!

  14. #14
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Find/Replace

    Formula=REPLACE(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),0,"-")
    This will put a "-" in front of the first number in a text string.

  15. #15
    Registered User
    Join Date
    05-19-2021
    Location
    India
    MS-Off Ver
    2013
    Posts
    6

    Re: Find/Replace

    Thanks a lot! GOD BLESS YOU ALL!!!

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,563

    Re: Find/Replace

    Please review our rule on thread titles and make yours more explicit in future. Thanks.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 02-13-2021, 03:32 AM
  2. Replies: 1
    Last Post: 02-27-2018, 11:22 AM
  3. [SOLVED] Using find replace to first find two double quotes and replace with a single double quote
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2015, 10:13 AM
  4. [SOLVED] Find and replace where contents a formula so can't be seen by Find and replace.
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2015, 02:24 PM
  5. Replies: 16
    Last Post: 12-02-2014, 03:38 PM
  6. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  7. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 PM

Tags for this Thread

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