Formula for Replacing Text in a String?
First, if you don't want VBA, the .programming group is not the
appropriate newsgroup to post in. Try .worksheet.functions next time.
One way:
=SUBSTITUTE(LEFT(A1,LEN(A1)-(RIGHT(A1,1)=",")),", ,","")
In article ,
David Godinger wrote:
I'd like to make a formula (NOT USING VBA) that would replace, in a list of
characters, all instances of the following with nothing:
, ,
(That's a comma followed by a space, followed by a comma, followed by a
space.)
If possible, the formula would also eliminate the last character in the
string if it's a comma.
|