+ Reply to Thread
Results 1 to 13 of 13

Remove last character

  1. #1
    Registered User
    Join Date
    09-15-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    17

    Remove last character

    Hi,

    I have exported my users email address from my site in an excel file, but at the end of each email address there is a quotation mark. Each email address is in a separate cell. How can I remove the quotation marks?

    excel.jpg

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Remove last character

    You have several options. If you want to do this without any formulas, you can highlight column A > Find & Select > Replace

    Find what: "
    Replace with: leave blank


    If you want to use a formula, in B1:

    =LEFT(A1,LEN(A1)-1)

  3. #3
    Registered User
    Join Date
    09-15-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Remove last character

    I tried both, none of the works.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Remove last character

    Interesting...

    If you upload an Excel workbook with the data from the screenshot in it, I will put the formula in and see what's going on.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Remove last character

    Try this
    in B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Remove last character

    Try using Text to Column.

    Select your column. Go to data ribbon tool, click on Text to Columns.

    Choose Delimited. Select Other for delimited and use " as delimiter. That should strip the trailing quote.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  7. #7
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: Remove last character

    Try this one -

    =SUBSTITUTE(A1,RIGHT(A1,1),"")
    To attach worksheet Go advanced -> Manage attachments -> Choose file -> Upload
    Don't forget to Mention your desired result in the sheet..
    There should be sample data only, a lot of data creates confusion.

    Thanks & Regards

    Shivya

    http://excelvbatipsforbeginners.blogspot.in/

  8. #8
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: Remove last character

    Quote Originally Posted by AlKey View Post
    Try this
    in B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If right character is replaced by any other digit, does your formula will work?

  9. #9
    Registered User
    Join Date
    09-15-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Remove last character

    Quote Originally Posted by CK76 View Post
    Try using Text to Column.

    Select your column. Go to data ribbon tool, click on Text to Columns.

    Choose Delimited. Select Other for delimited and use " as delimiter. That should strip the trailing quote.
    Thanks, that was it.

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Remove last character

    I would love to know why the suggestions from post #2 didn't work for the OP.

  11. #11
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Remove last character

    My guess, is that wrong context was given when searching & replacing

  12. #12
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: Remove last character

    Quote Originally Posted by dtommy79 View Post
    Hi,

    I have exported my users email address from my site in an excel file, but at the end of each email address there is a quotation mark. Each email address is in a separate cell. How can I remove the quotation marks?

    Attachment 546662
    This formula will work in all conditions like if there will be another character in right, it will remove
    =SUBSTITUTE(A1,RIGHT(A1,1),"")

  13. #13
    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,830

    Re: Remove last character

    Quote Originally Posted by shivya View Post
    If right character is replaced by any other digit, does your formula will work?
    Quote Originally Posted by shivya View Post
    This formula will work in all conditions like if there will be another character in right, it will remove
    =SUBSTITUTE(A1,RIGHT(A1,1),"")
    You are right about your suggested formula, but at no point in this thread did the OP state that the character would be anything other than the quotation mark, so AlKey's solution is absolutely on point, too, and does not need questioning.
    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.

+ 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. Remove blank character and change the character (or symbol)
    By vutienhp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2015, 11:55 PM
  2. [SOLVED] Formula to remove first two character is second character is a number.
    By herbie226 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2013, 02:59 PM
  3. [SOLVED] Remove first character in a cell when the second character is blank
    By eastdallasguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2013, 03:11 PM
  4. Replies: 3
    Last Post: 11-20-2012, 10:03 PM
  5. Remove 1st character if it is 0
    By spowell in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-14-2008, 05:54 PM
  6. How to remove character's in a row
    By Mohsin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2006, 02:37 AM
  7. Remove character?
    By spinkung in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-30-2006, 11:34 AM

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