+ Reply to Thread
Results 1 to 6 of 6

how to delete ampersand at end of field

  1. #1
    Registered User
    Join Date
    03-22-2010
    Location
    US
    MS-Off Ver
    2007
    Posts
    5

    Question how to delete ampersand at end of field

    I am working with an address list. The first field has names in such format as:
    JONES THOMAS L & MARY A &
    SMITH LAWRENCE W JR
    THOMPSON JAMES & CATHERINE

    I need a formula to delete that final ampersand when it appears, yet leave the other ampersands intact. I have been searching but cannot find a solution. I'm not an expert but have used a few other formulas and macros to accomplish various tasks.

    A solution would be greatly appreciated, as I run into this type of list quite often, and the manual deletion is killing my hand, not to mention my time!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: how to delete ampersand at end of field

    Assuming the last ampersand is always the last character, then this will delete the ampersand the the space before it.

    =TRIM(MID(A1,1,LEN(A1)-1))
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: how to delete ampersand at end of field

    If it is the last character in the field you can use:
    Please Login or Register  to view this content.
    then do a copy - paste special... values over the original column.
    Last edited by mdbct; 03-22-2010 at 04:07 PM.

  4. #4
    Registered User
    Join Date
    03-22-2010
    Location
    US
    MS-Off Ver
    2007
    Posts
    5

    Re: how to delete ampersand at end of field

    Thanks to both of you for jumping in! These possible solutions will leave the middle ampersand intact? And if it's not an ampersand at the end of the field, it won't touch whatever other character is at the end?

  5. #5
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: how to delete ampersand at end of field

    Mine will only lop off the Ampersand when it is the right most character, leaving all other ampersands alone. Palmetto's will lop off the last character regardless of the character.

  6. #6
    Registered User
    Join Date
    03-22-2010
    Location
    US
    MS-Off Ver
    2007
    Posts
    5

    Re: how to delete ampersand at end of field

    Silly me - I guess I could have tested it before I asked that, couldn't I? Sorry!

    BIG, BIG, BIG thanks for helping me with this. You have saved me many hours of tedium. AWESOME!

+ 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