substiute formula = subing something to "

G

gcelis81

I'm writing a subsitute formula and want to replace %20 with "
but when I write =SUBSTITUTE(D3,"%20",""") I get an error and Excel makes me
do =SUBSTITUTE(D3,"%20","""")

Any way around this??

help!
 
G

gcelis81

I don't know how to cancel this, but I found out that even though the formula
is changing, it still outputs "
 
D

David Biddulph

Have you looked at the result? To represent a " symbol within a string
(delimited by a pair of " symbols), you need to double up the " symbol, but
your substitution will result in one " in place the %20.
 
R

Ron Rosenfeld

I'm writing a subsitute formula and want to replace %20 with "
but when I write =SUBSTITUTE(D3,"%20",""") I get an error and Excel makes me
do =SUBSTITUTE(D3,"%20","""")

Any way around this??

help!

What is wrong with your result?

If D3 contains a string which contains %20 then your corrected formula will
substitute one double quote for the %20.

What, exactly, is in D3?
What, exactly do you want for a result?

In Excel, when you are quoting quotes, you must double the interior quotes.
--ron
 
B

Beege

gcelis81 said:
I'm writing a subsitute formula and want to replace %20 with "
but when I write =SUBSTITUTE(D3,"%20",""") I get an error and Excel makes me
do =SUBSTITUTE(D3,"%20","""")

Any way around this??

help!

Try =SUBSTITUTE(D3, %20, CHAR(34))

Beege
 
Top