+ Reply to Thread
Results 1 to 13 of 13

I would like to remove unit#, suite# and floor# from and addresses.

  1. #1
    Registered User
    Join Date
    04-05-2022
    Location
    Winston Salem
    MS-Off Ver
    Windows 10 Enterprise - Excel 2016
    Posts
    5

    I would like to remove unit#, suite# and floor# from and addresses.

    I have attached a small sample of a very large file that I need to complete this task for.

    Ali, thank you for your your help, it is greatly appreciated.
    Attached Files Attached Files
    Last edited by ernie.burney; 04-05-2022 at 10:16 AM. Reason: Revised version of my initial file.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: I would like to remove unit#, suite# and floor# from and addresses.

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

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,903

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    Welcome to the forum.

    The sample workbook also needs the results you are looking for, manually mocked up. Please add these and post the workbook again attached to your next post in this thread. Thanks.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    04-05-2022
    Location
    Winston Salem
    MS-Off Ver
    Windows 10 Enterprise - Excel 2016
    Posts
    5

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    Hello Ali, I just posted the revised version of the initial file.

  5. #5
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    This will split the addresses at any instance of " STE ", " FL ", or " UNIT "

    =IFERROR(LEFT(A2,MAX(IFERROR(FIND({" STE "," FL "," UNIT "},A2),0))-1),A2)

    If that is in E2 then this gives the bit that was removed (minus the space):

    =IFERROR(RIGHT(A2,LEN(A2)-LEN(E2)-1),"")

    The above solution doesn't exactly match your example file. Firstly the formatting is different - I don't know a way to convert the format to match your file using a formula. You could wrap it in PROPER() which will capitalise each word, but this also converts NE to Ne for example which isn't what you want. Secondly there are a couple of things that I assume are just mistakes, e.g. DISCOVERY DR --> Discovery Place. If that's not a mistake then we need to know the logic.

  6. #6
    Registered User
    Join Date
    04-05-2022
    Location
    Winston Salem
    MS-Off Ver
    Windows 10 Enterprise - Excel 2016
    Posts
    5

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    Hello Nick, thank you for your response. The formatting really isn't an issue, the file that I utilize to import the information capitalizes the address information. Yes, Discovery Dr. to Discovery Place was an error. Thank you for the formula, I tried using it, it worked on B2 but when I copied it to the other rows STE, FL and UNIT information did not delete. Please advise.


    Nick, this is the file shows the error I mentioned. Thanks again.
    Attached Files Attached Files
    Last edited by ernie.burney; 04-05-2022 at 11:18 AM. Reason: Formula

  7. #7
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    It worked fine when I tested it...please can you upload a file showing the error?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    First formula needs to entered with Ctrl+Shift+Enter unless you have Excel 365.

  9. #9
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    Thanks John, always assume people have 365 unless they say otherwise!

    I assume this is related, but when I open the file there is an @ in the formula that shouldn't be there.

  10. #10
    Registered User
    Join Date
    04-05-2022
    Location
    Winston Salem
    MS-Off Ver
    Windows 10 Enterprise - Excel 2016
    Posts
    5

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    John, Nick thank you for your responses. I do not have 365. I'm not sure how the At Sign is there...I copied and pasted the formula into the worksheet.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    Can you please update your profile with your Excel version as responses do depend on knowing this information (as Nick has demonstrated!).

  12. #12
    Registered User
    Join Date
    04-05-2022
    Location
    Winston Salem
    MS-Off Ver
    Windows 10 Enterprise - Excel 2016
    Posts
    5

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    John, I have Excel 2016. I will update my profile accordingly. Thanks again.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: I would like to remove unit#, suite# and floor# from and addresses.

    No problem!

+ 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: 6
    Last Post: 09-29-2021, 10:31 AM
  2. [SOLVED] Address has suite numbers and I need to delete suite
    By pick44 in forum Excel General
    Replies: 9
    Last Post: 02-17-2020, 07:46 PM
  3. Separate Suite # from addresses
    By probuddha in forum Excel General
    Replies: 9
    Last Post: 11-02-2015, 12:31 PM
  4. Replies: 4
    Last Post: 10-07-2015, 06:04 AM
  5. [SOLVED] Unit increase relative to variable unit thresholds
    By Fr3dle in forum Excel General
    Replies: 6
    Last Post: 07-01-2013, 06:57 AM
  6. Removing unit numbers from addresses
    By tarentagore in forum Excel General
    Replies: 1
    Last Post: 09-09-2010, 08:00 AM
  7. Remove Duplicate Addresses
    By Sbova0226 in forum Excel General
    Replies: 9
    Last Post: 07-06-2009, 04: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