Hi, everyone,
Is there any way to substitute a character or series of characters from a cell with other characters, but with some exceptions? For example, substitute (or replace) all instances of "X" in cell B1 by cell A1, except "XP", "Xbox", "Xochitl", "Xmas", and a few others. I had written =Substitute(B1, "X", A1) but then not sure how to add the exceptions there. Perhaps adding a nested formula in place of B1? Or is there another function for that? I'm also trying to avoid VBA. So not sure if that's possible.
I would appreciate any help or advice with this. Thank you.
Is there any way to substitute a character or series of characters from a cell with other characters, but with some exceptions? For example, substitute (or replace) all instances of "X" in cell B1 by cell A1, except "XP", "Xbox", "Xochitl", "Xmas", and a few others. I had written =Substitute(B1, "X", A1) but then not sure how to add the exceptions there. Perhaps adding a nested formula in place of B1? Or is there another function for that? I'm also trying to avoid VBA. So not sure if that's possible.
I would appreciate any help or advice with this. Thank you.