+ Reply to Thread
Results 1 to 16 of 16

Is there a way to automatically replace abbreviations with full meanings?

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    Vancouver
    MS-Off Ver
    2010
    Posts
    10

    Is there a way to automatically replace abbreviations with full meanings?

    I work with large columns of addresses, all notated in abbreviations such as AVE, and ST, etc. I am required to expand these abbreviations to their full name and I currently use the find and replace option to do this. However, the problem with the find and replace option is that quite often, what I'll find is that when I'm trying to replace something such as ST to Street, the find and replace function will find all other instances of ST where they are not meant to represent Street, and turn them into Street. Because of this, I would like to know if there is a way to assign individual abbreviations, and series of characters, a true expanded meaning, and to have excel automatically detect these instances and replace them?

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Some thing like this where A1 is the referring cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  3. #3
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Using find and replace still, if you put " ST" (without the quotes - they were just put there to show the space before the S) it will only find those instances at the start of a word and have the replace string as " Street" (again without the quotes).

    Likewise, " ST " and " Street ", " ST." and " Street.", and " ST," and " Street," can be used. It really depends on how your data is formatted. Making sure you have the Match Case box ticked might also help (click on the options button if you cant see it).

    Any formula to do the replacement will have the same difficulty in finding the correct instances of "ST"
    Last edited by gak67; 08-19-2014 at 11:21 PM.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  4. #4
    Registered User
    Join Date
    08-08-2014
    Location
    Vancouver
    MS-Off Ver
    2010
    Posts
    10

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Thanks guys for the suggestions.

    @gak67

    I was already doing that, but there are instances where the names of streets will also start with ST and it might turn into something humorously named like Streetaffer and such. It seems there is no 100% perfect way of doing this so I guess I'll just stick to find and replace function and single out the exceptions. Also, @boopathiraja, I would use that formula, but I'm under the impression that it has the same restrictions as the find and replace function.

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Is there a comma or period or space after the street name, eg "Staffer St, Erehwon"? Then you could use " St," as the find string and " Street," as the replace string.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,918

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Deleted ...
    Last edited by protonLeah; 08-20-2014 at 12:22 AM.
    Ben Van Johnson

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  8. #8
    Registered User
    Join Date
    08-08-2014
    Location
    Vancouver
    MS-Off Ver
    2010
    Posts
    10

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Here's the example. Note the last example with the street name starting with ST.
    Attached Files Attached Files

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Is there a way to automatically replace abbreviations with full meanings?

    May be this...

    Assuming that your address is in A1, then
    Please Login or Register  to view this content.
    Does this help?

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Or more correctly this.....

    Please Login or Register  to view this content.

  11. #11
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Using your sample data and a Find and Replace, with " ST" as the find string, ie with a space before the S, and " Street" as the replace string (again with a space before the S), it did not affect the ST at the start of "STAFFORD".

  12. #12
    Registered User
    Join Date
    08-08-2014
    Location
    Vancouver
    MS-Off Ver
    2010
    Posts
    10

    Re: Is there a way to automatically replace abbreviations with full meanings?

    @gak67

    The reason it didn't affect STAFFORD is because I removed the house numbers on the addresses. There would normally also be a space before STAFFORD thus causing a few problems.

    @sktneer

    Your formula seems to be working quite well so far. I'll report back if anything else comes up.

  13. #13
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Is there a way to automatically replace abbreviations with full meanings?

    So can you upload some sample data that reflects real life? Include everything that is in the cell, both before and after the bit you have shown. Create dummy addresses if necessary to ensure confidentiality.

  14. #14
    Registered User
    Join Date
    08-08-2014
    Location
    Vancouver
    MS-Off Ver
    2010
    Posts
    10

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Here's some less than realistic addresses that are formatted accordingly.
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Pl see attached file with macro, which replaces the required data.
    Attached Files Attached Files

  16. #16
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Is there a way to automatically replace abbreviations with full meanings?

    Formula for the updated sheet...
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. VBA help needed to replace titles with abbreviations
    By william1404 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2014, 02:07 AM
  2. Replies: 3
    Last Post: 02-27-2012, 05:39 PM
  3. Abbreviations to full Words
    By sparky101747 in forum Excel General
    Replies: 4
    Last Post: 02-08-2011, 03:40 PM
  4. Replies: 2
    Last Post: 06-24-2008, 05:07 PM
  5. Replace a long list of abbreviations with full words in Excel
    By jgundel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2006, 03:15 PM

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