+ Reply to Thread
Results 1 to 8 of 8

Excel Formula to delete & sign at end of cell

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Hollywood, Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Excel Formula to delete & sign at end of cell

    Hi everyone, I am new to the forum. I have an excel file with mailing address. Some of the name fields end with an "&" sign with nothing following it. I want a forumla that if the last character in the cell is an "&" sign I want to delete it. Thanks for your help.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Excel Formula to delete & sign at end of cell

    =substitute(a1,"&","")

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    Hollywood, Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Excel Formula to delete & sign at end of cell

    Thank you. It looks like this will delete the "&" sign anywhere it appears in the cell. How do I delete the "&" sign only if it appears at the end of the cell. Thanks again for your time.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Excel Formula to delete & sign at end of cell

    try this one (untested).

    Please Login or Register  to view this content.
    Last edited by oeldere; 01-17-2013 at 03:30 PM. Reason: changed semicolor in color
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    01-17-2013
    Location
    Hollywood, Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Excel Formula to delete & sign at end of cell

    This one contains an error. Any other suggestions are appreciated.

  6. #6
    Registered User
    Join Date
    01-17-2013
    Location
    Hollywood, Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Excel Formula to delete & sign at end of cell

    Got it now. Had to change semicolon to comma. Thanks for your help.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Excel Formula to delete & sign at end of cell

    Hello shanetedder, try this version

    =LEFT(A1,LEN(A1)-(RIGHT(A1)="&"))
    Audere est facere

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Excel Formula to delete & sign at end of cell

    Thanks for the reply.

    Glad I could help.

    If your question is solved, will you mark it solved.

+ 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