+ Reply to Thread
Results 1 to 5 of 5

Find and replace words with a wildcard

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Find and replace words with a wildcard

    Hi I am researching how to find and replace text in a sheet. I have this code but it is just like using the find and replace function in Excel, which is quite redundant. Is there anyway I can set a wildcard to search for pieces of a word and replace it with the word I want. I have a sample worksheet here and I want to replace the instances of "b,mena", "b.mena" and "bmena" with "Ballymena"

    Here is the code for the find and replace
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,596
    What happens if you include wildcards in what you enter in the first inputbox?
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,325

    Re: Find and replace words with a wildcard

    Why not use Ctrl+H
    Find what *mena
    Replace with ballymena

    Click "Replace All"

    ?

  4. #4
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Re: Find and replace words with a wildcard

    I didn't know you could do that within the find and replace function. I'm just a cog in the wheel guys, I get asked to do something and I try and do it for the others in my department. Thanks for the help guys

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,325

    Re: Find and replace words with a wildcard

    You can use wildcards in the Find and Replace function.
    Just remember that to search for a wildcard ( like *) you should look for ~*

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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