Multiple Substitute Expressions for One Column?

Hello, sorry if this has a blatantly obvious answer, but Iโ€™m trying to see if itโ€™s possible to run multiple SUBSTITUTE() expressions in one column?

Iโ€™d like to do something like this:

SUBSTITUTE([ColumnA], โ€œRandomExample1โ€, โ€œRandom-Example-1-Substitutionโ€)
AND
SUBSTITUTE([ColumnA], โ€œRandomExample2โ€, โ€œRandom-Example-2-Substitutionโ€)
AND
SUBSTITUTE([ColumnA], โ€œRandomExample3โ€, โ€œRandom-Example-3-Substitutionโ€)

Many thanks for any help!

Solved Solved
1 3 1,085
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Try:

SUBSTITUTE(
  SUBSTITUTE(
    SUBSTITUTE(
      [ColumnA],
      โ€œRandomExample1โ€,
      โ€œRandom-Example-1-Substitutionโ€
    ),
    โ€œRandomExample2โ€,
    โ€œRandom-Example-2-Substitutionโ€
  ),
  โ€œRandomExample3โ€,
  โ€œRandom-Example-3-Substitutionโ€
)

View solution in original post

3 REPLIES 3

So are you trying to get 3 copies of a single column with different substitutes of that column or do you want like Substitute โ€œ.โ€ for โ€œ,โ€ then Substitute โ€œ!โ€ for โ€œ?โ€, etcโ€ฆ?
So like
โ€œShascher. need help with this question!โ€
becomes
โ€œShascher, need help with this question?โ€

Steve
Platinum 4
Platinum 4

Try:

SUBSTITUTE(
  SUBSTITUTE(
    SUBSTITUTE(
      [ColumnA],
      โ€œRandomExample1โ€,
      โ€œRandom-Example-1-Substitutionโ€
    ),
    โ€œRandomExample2โ€,
    โ€œRandom-Example-2-Substitutionโ€
  ),
  โ€œRandomExample3โ€,
  โ€œRandom-Example-3-Substitutionโ€
)

@Steve Fantastic! I had the syntax wrong, but this works great!

Also, @Austin_Lambeth, many thanks for your reply as well.

Top Labels in this Space