Google Spreadsheet Post #2084
Regex formula to replace multiple first words with multiple substitutes
Yogi Anand, D.Eng, P.E. ANAND Enterprises LLC -- Rochester Hills MI www.energyefficientbuild.com. Nov-20-2016
question by: BillTeach:
https://productforums.google.com/forum/?utm_medium=email&utm_source=ba_notification#!topic/docs/8ogMiVvgF2I;context-place=mydiscussionsRegex formula to replace multiple first words with multiple substitutes
How do I copy from one sheet to another if cell string begins with an apostrophe.
I want to substitute only at the beginning of a string (followed by a space). For example:
m-> 'm
s -> 's
d -> 'd
ll-> 'll
re -> 're
've -> /ve
or in the complete string:
m going home -> 'm going home
Something like =substitute(A1, "m", char(39)&"m") works for one substitute, but I think regexreplace will be better to replace multiple substrings and only at the beginning of the cell string.
No comments:
Post a Comment