Expression - Unknown

I often find myself caught out on which expression to use when I want to perform the following query, your advice is much appreciated:

If column A contains X, then insert the word โ€œRedโ€ in this column, But if it contains Y, then insert the word โ€œPurpleโ€ in this column, But if it contains Z, then insert the word โ€œGreenโ€.

which expression IF, AND, CONTAINS or another?

0 3 104
3 REPLIES 3

Sounds like IFS will do the jobs.

IFS(
[Column A]=X,โ€œRedโ€,
[Column A]=Y,โ€œPurpleโ€,
[Column A]=Z,โ€œGreenโ€,
true, โ€œelse, whatever you wantโ€
)

This is expression just for another field not for [Column A]

Column A value will decide whatsort of value to anothe column for instance [Column B]

Thank you sir, that makes sense.

Steve
Platinum 4
Platinum 4
Top Labels in this Space