+ Reply to Thread
Results 1 to 4 of 4

Getting rid of double quote marks using =SUBSTITUTE function

  1. #1
    Registered User
    Join Date
    09-14-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    65

    Getting rid of double quote marks using =SUBSTITUTE function

    Hi,

    I have a sheet which is updated monthly and part of it takes out punctuation in the text string in column A. I have done this using this function:

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(N2,".",""),",","")," - "," "),"- "," "),"-"," "),"(",""),")",""),"'","")," AND "," & ")," ET "," & ")," UND "," & ")," / "," "),"/","")

    I can't get it to substitute double quote marks, because I would need to put """ and it recognises the first two as the beginning and end of the text I want to substitute and then counts the third one as an error. Is there a way to do this using the substitute function or do I need a different way to do it?

    Thanks

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Getting rid of double quote marks using =SUBSTITUTE function

    Hi,

    Try using four in total, e.g.:

    =SUBSTITUTE(A1,"""","")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Getting rid of double quote marks using =SUBSTITUTE function

    Have you tried using CHAR(34)?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    09-14-2011
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    65

    Re: Getting rid of double quote marks using =SUBSTITUTE function

    Both of these worked, thank you!

+ 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 double quote marks when pasting into notepad
    By frantan in forum Excel General
    Replies: 6
    Last Post: 02-06-2014, 03:49 PM
  2. [SOLVED] To include quote marks in selection.formula
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2006, 12:16 PM
  3. [SOLVED] How to keep quote marks for CSV in excel
    By Matt in forum Excel General
    Replies: 0
    Last Post: 07-31-2006, 07:33 PM
  4. [SOLVED] Excel to CSV: Formatting Quote Marks
    By Stephen in forum Excel General
    Replies: 2
    Last Post: 02-15-2006, 01:20 PM
  5. [SOLVED] How do you look for quote marks?
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2005, 09:05 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