Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 925

Case insensitive but case preserving substitute function, excel

$
0
0

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.


Viewing all articles
Browse latest Browse all 925

Trending Articles