ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change value in a string (https://www.excelbanter.com/excel-programming/353094-change-value-string.html)

alvin Kuiper

Change value in a string
 
Hi

If i have
$A$6:$A$15 in a string

And i whant to change A to T
how can i easy do that?

Alvin




Ron Rosenfeld

Change value in a string
 
On Sun, 12 Feb 2006 12:00:28 -0800, alvin Kuiper
wrote:

Hi

If i have
$A$6:$A$15 in a string

And i whant to change A to T
how can i easy do that?

Alvin



Perhaps something like:

=SUBSTITUTE("This is a string: $A$6:$A$15","$A$","$T$")

--This is a string: $T$6:$T$15



--ron

Carim[_3_]

Change value in a string
 
Hi Alvin,

Assuming your string is located in A1 :
=SUBSTITUTE(A1,"A","T")
will do the job ...

HTH
Cheers
Carim


daddylonglegs[_11_]

Change value in a string
 

Use Edit Replace and replace A with T


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=511517


Tom Ogilvy

Change value in a string
 
Are doing it in VBA? In xl2000 or later

s = "$A$6:$A$15"

s1 = Replace(s,"A","T")

--
Regards,
Tom Ogilvy


"alvin Kuiper" wrote in message
...
Hi

If i have
$A$6:$A$15 in a string

And i whant to change A to T
how can i easy do that?

Alvin






alvin Kuiper

Change value in a string
 
Thanks all for your help

Alvin

"Tom Ogilvy" wrote:

Are doing it in VBA? In xl2000 or later

s = "$A$6:$A$15"

s1 = Replace(s,"A","T")

--
Regards,
Tom Ogilvy


"alvin Kuiper" wrote in message
...
Hi

If i have
$A$6:$A$15 in a string

And i whant to change A to T
how can i easy do that?

Alvin








All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com