+ Reply to Thread
Results 1 to 3 of 3

Search and Replace help

  1. #1
    Registered User
    Join Date
    01-08-2007
    Posts
    1

    Search and Replace help

    hello all i had a quick question reguarding the Search and Replace function.

    First i have a colum that is filled with address information however when it was exported from the database the address was filled with 5 numbers reguardless if there was 5 numbers in the address or not, if there was not 0's were added in front of the numbers to compensate for this:

    Ex:

    90 W Hopper Way = 00090 W Hopper Way (when exported)
    1342 N Uptown Blvd = 01342 N Uptown Blvd (when exported)

    My question is does anyone know the wildcard for the Replace part of the function? i am aware that ? and * are both wildcards for Search but i want to retain the original values in the replace field with a wild card and eliminate the 0's.

    Anyone have an idea's?

    Thanks in advance for your help on this issue

    -Conor

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065
    This might help
    Use two helper columns, assuming A1 contains the address with inserted zeroes

    =VALUE(LEFT(A1,5))

    This will extract the number from the address

    =RIGHT(A1,LEN(A1)-5)

    will extract the remainder of the address

    then concatenate the results
    Last edited by Special-K; 01-08-2007 at 05:49 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Talking

    Hi,

    Or put into one formula*:

    =VALUE(LEFT(A1,5))&" "&TRIM(MID(A1,SEARCH(" ",A1)+1,25))

    Cheers,

    Robert

    * Change the number of characters (I've put in 25) to match the maximum number of characters available from the databases' address field.

+ 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