+ Reply to Thread
Results 1 to 16 of 16

Replacing Abbreviations in Street Addresses

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Replacing Abbreviations in Street Addresses

    I would like to be able to take an address like 18387 S 113Th W Ave and return it as 18387 South 113th West Avenue. I am a slightly familiar with lookup formulas, but I have not had any luck making this work.
    Last edited by NBVC; 01-25-2010 at 05:51 PM. Reason: Fix title

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Replacing Abbreviations is Street Addresses

    You need to supply more examples to see patterns...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-25-2010
    Location
    Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Replacing Abbreviations is Street Addresses

    563 South 9Th St
    853 W Main St
    98 N Battlebridge Dr
    35879 Se 48Th St
    9863 Morgan Trl
    6873 Henslee Dr
    891 E 169Th Pl
    389 Pioneer St
    9868 Sw 63Rd St
    1986 Mile Rd Nw
    1987 S 74Th West Ave
    135 Nesuda Rd

    so i want things like Rd returned as Road, S returned as South Ave returned as Avenue and so on and so forth

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Replacing Abbreviations is Street Addresses

    My only question would be..."why"?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Replacing Abbreviations is Street Addresses

    This code is designed for you to be able to create a table of your own to do the corrections. In column A, list the strings to find. In column B list the replacement values.

    Then place your address strings in any other column, select them, and run the macro.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JBeaucaire; 01-25-2010 at 07:23 PM.

  6. #6
    Registered User
    Join Date
    01-25-2010
    Location
    Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Replacing Abbreviations is Street Addresses

    I am dealing with thousands of addresses and like them to be in perfect print, makes it easier to read. Thank you for your solution, however I have no idea what to do with it I have not played with macro's. I guess I'll see if I can make sense of it today.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Replacing Abbreviations is Street Addresses

    How/Where to install the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save your sheet

    The macro is installed and ready to use.

    ===========
    How to use the macro

    1) Make sure the strings to match are in column A
    2) Make sure the replacement strings are in column B
    3) Put the addresses to fix into any other column
    4) Highlight the addresses
    5) Press Alt-F8 and select AddressCorrections from the macro list.

    There is a sample sheet attached to my post above.

  8. #8
    Registered User
    Join Date
    01-25-2010
    Location
    Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Replacing Abbreviations in Street Addresses

    thank you, i shall try this this afternoon.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Replacing Abbreviations in Street Addresses

    Remember, you'll have to expand the two columns of "search/replace" strings to cover all the things you want.

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Replacing Abbreviations in Street Addresses

    stcanary
    or possibly
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  11. #11
    Registered User
    Join Date
    03-12-2009
    Location
    Grand Rapids, MI
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Replacing Abbreviations in Street Addresses

    I just came accross this thread this morning. The Macro provided by JBeaucaire on 1-26-2010 works great for what I'm trying to accomplish.....but I'm running into two issues and I'm wondering if there is an easy fix for them:

    1.) I'm unable to replace punctuation/symbols (e.g. # , .) if they have a character immediately preceding or following....I have them listed in my column A but the macro doesn't recognize them and perform the replace unless the punctuation has a leading and following space

    2.) If the list of addresses selected exceeds 65,000 the macro returns "0" for all addresses in the list......is there a way to expand the number of addresses selected for the macro run?

    Thanks

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Replacing Abbreviations in Street Addresses

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

  13. #13
    Registered User
    Join Date
    03-03-2022
    Location
    India
    MS-Off Ver
    Office 2019
    Posts
    1

    Re: Replacing Abbreviations is Street Addresses

    It helped alot, Thank You

  14. #14
    Registered User
    Join Date
    03-11-2022
    Location
    Leland, NC
    MS-Off Ver
    2010
    Posts
    2

    Re: Replacing Abbreviations is Street Addresses

    I am new to the forum. Can you tell me how I can see the attached sample sheet attachment ? I do not see it.
    Thanks,
    Mike

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,832

    Re: Replacing Abbreviations in Street Addresses

    The only attached sample in this thread is the ReplaceStrings.xls file attached to post #4.
    If that is the one to which you are referring, then select the name of the file (may appear in blue text).
    Also, your system may not automatically download .xls files so you may have to select again in downloads dropdown (I suppose based on the browser used).
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  16. #16
    Registered User
    Join Date
    03-11-2022
    Location
    Leland, NC
    MS-Off Ver
    2010
    Posts
    2

    Re: Replacing Abbreviations in Street Addresses

    Thank you. I was able to locate the xls file you referred to.
    Mike E.

+ 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