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|.