Is there a way to do this, i.e. Foo
, FOO
, and fOO
would come out as Bar
, BAR
, and and bAR
, without having to individually type all possible permutations into the function.
=SUBSTITUTE(A1,"foo","bar")
is case sensitive, SUBSTITUTE(lower(A1),"foo", "bar")
is good for some applications, but removes any existing case distinctions from A1; so FoofooFOO
would go to barbarbar
. Obviously you can use multiple substitutions to catch all occurences, but when sometimes this is a real pain.
Many thanks.