+ Reply to Thread
Results 1 to 4 of 4

Removing apostrophes at the beginning of a line without removing the others.

  1. #1
    Registered User
    Join Date
    04-21-2022
    Location
    Netherlands
    MS-Off Ver
    2203 (Excel)
    Posts
    1

    Removing apostrophes at the beginning of a line without removing the others.

    Hello,

    I've got a question about a long list of music tracks I want to import in Spotify (before doing that I have to edit the list a bit in Excel), unfortunately partly having an apostrophe at the beginning of the line for some reason.

    How do I remove those aposthrophes at the beginning, while keeping the others (not manual, but with a formula)?

    I've tried this formula: =RIGHT(A2,LEN(A2)-FIND("#",SUBSTITUTE(A2,"'","#",1)))

    But this is the result:

    i.ibb.co/P50Q8yy/excel.png

    How can I manipulate that formula, to get the complete list in the 'B' column, instead of getting all those #VALUE! (#WAARDE! in The Netherlands; I'm Dutch) stuff?

    Thanks already.

  2. #2
    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,780

    Re: Removing apostrophes at the beginning of a line without removing the others.

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. 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.

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Removing apostrophes at the beginning of a line without removing the others.

    I'm not sure did I understood correctly.

    Please try

    B2
    =Mid(A1,IF(Left(A1,1)="'",2,1),255)

    Regards.

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

    Re: Removing apostrophes at the beginning of a line without removing the others.

    Alternative solution:

    =IF(LEFT(A1,1)="'",REPLACE(A1,1,1,""),A1)

    or

    =RIGHT(A1,LEN(A1)-IF(LEFT(A1,1)="'",1,0))

+ 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. [SOLVED] Removing beginning and end of a string.
    By sungen99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2019, 11:59 AM
  2. Replies: 14
    Last Post: 09-26-2017, 02:05 PM
  3. [SOLVED] Removing extraneous information from imported data: Units and apostrophes
    By PlutoISaPlanet in forum Excel General
    Replies: 3
    Last Post: 10-25-2012, 02:33 PM
  4. Excel 2007 : Removing Apostrophes
    By ameyabrid in forum Excel General
    Replies: 3
    Last Post: 08-30-2011, 11:35 AM
  5. help needed removing apostrophes
    By pinki56 in forum Excel General
    Replies: 2
    Last Post: 08-12-2008, 05:35 AM
  6. [SOLVED] Removing errant apostrophes
    By C Glenn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2005, 01:05 PM
  7. Removing Hidden Apostrophes from Imported Numbers
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-23-2005, 03:48 AM

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