Replacing one character with another in a string

combo picture combo · Jul 17, 2012 · Viewed 77.8k times · Source

I have a data like below:

A:B:C:D

and I want to replace the C with data (say, Z) so that it may look like

A:B:Z:D

How can I do it?

Answer

JimmyPena picture JimmyPena · Jul 17, 2012

=SUBSTITUTE(A1,"C","Z")

Although I wasn't clear on whether you wanted G or Z, you mentioned G but your example output shows Z.