Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

How can the SUBSTITUTE function replace a double quote?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Florence - 27 Feb 2007 19:06 GMT
I'm trying to use the SUBSTITUTE function to replace a double quote (") with
a regular text.  The function works well with other special characters but
not the double quote.
Toppers - 27 Feb 2007 19:17 GMT
TRY:

=SUBSTITUTE(A1,"""","your_text*")

> I'm trying to use the SUBSTITUTE function to replace a double quote (") with
> a regular text.  The function works well with other special characters but
> not the double quote.
T. Valko - 27 Feb 2007 19:17 GMT
Use 4 double quotes: """"

A1 = "Biff"

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

returns: Biff

Biff

> I'm trying to use the SUBSTITUTE function to replace a double quote (")
> with
> a regular text.  The function works well with other special characters but
> not the double quote.
Pete_UK - 27 Feb 2007 19:18 GMT
Try this:

=SUBSTITUTE(A1,CHAR(34),"xxx")

With the string "Hello" in A1, this returns xxxHelloxxx

Hope this helps.

Pete
On Feb 27, 7:06 pm, Florence <Flore...@discussions.microsoft.com>
wrote:
> I'm trying to use the SUBSTITUTE function to replace a double quote (") with
> a regular text.  The function works well with other special characters but
> not the double quote.
robotman@gmail.com - 27 Feb 2007 19:18 GMT
Use CHAR(34) everywhere you want a double-quote:

Example:

=SUBSTITUTE(G14,CHAR(34),"#")
Harlan Grove - 27 Feb 2007 19:21 GMT
Florence <Flore...@discussions.microsoft.com> wrote...
>I'm trying to use the SUBSTITUTE function to replace a double quote (")
>with a regular text.  The function works well with other special
>characters but not the double quote.

A1:    "This" is a "test".
A2:    =SUBSTITUTE(A1,"""","|")      returns  |This| is a |test|.
A3:    =SUBSTITUTE(A1,CHAR(34),"|")  returns  |This| is a |test|.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.