Column Coditions

Hi,
Seeking advise here. I canโ€™t seem to work around with the exact expression:

Column A is text column with a valid_if statement {โ€œboyโ€,โ€œgirlโ€,โ€œnoneโ€},
Column B is also a text column with a valid_if statement {โ€œoneโ€,โ€œtwoโ€,โ€œthreeโ€} and a show_if condition OR([A]=โ€œboyโ€,[A]=โ€œgirlโ€) and all just works fine but hereโ€™s where I canโ€™t move forward because additionally, I also want column B to just put in โ€œNAโ€ remark whenever a user chooses โ€œnoneโ€ in column A. I tries this expression in the formula [A]=โ€œnoneโ€.โ€œNAโ€ but not working.

Thanks in advance for any help.

BR.

Solved Solved
0 10 268
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Valid If expression for column B:

IF(
  IN([A], {"boy", "girl"}),
  {"one", "two", "three"},
  {"N/A"}
)

Initial value expression for column B:

IFS(
  IN([A], {"boy", "girl"}),
    "N/A"
)

Editable? expression for column B:

IN([A], {"boy", "girl"})

View solution in original post

10 REPLIES 10

Try

IFS( [A]=โ€œboyโ€, TRUE, [A]=โ€œgirlโ€, TRUE, [A]=โ€œnoneโ€, โ€œN/Aโ€)

Thank for this @Douglas_English, unfortunately it broke my appโ€ฆ
it just converted my column into a yes/no type.

Steve
Platinum 4
Platinum 4

Valid If expression for column B:

IF(
  IN([A], {"boy", "girl"}),
  {"one", "two", "three"},
  {"N/A"}
)

Initial value expression for column B:

IFS(
  IN([A], {"boy", "girl"}),
    "N/A"
)

Editable? expression for column B:

IN([A], {"boy", "girl"})

Tried 'em @Steve, but didnโ€™t work as expected. It still didnโ€™t fill in the โ€œN/Aโ€ output in my source table. Thanks anyway.

@Steve,
I believe a slight mod is needed for your Initial Value expression as per @Jerome_Caneteโ€™s description

IFS(
  IN([A], {"none"}),
    "N/A"
)

Whoops! Thanks, @LeventK!

Wow, niceโ€ฆ that did just the trick. Thanks @LeventKโ€ฆ

Another thing, need some more help with same scenario but instead of text type columns, Iโ€™d like to work on enum and enumlist columns. Thanks in advance.

Thanks @Jerome_Canete, but you shall thank to @Steve actually, mine was just an eye-catch, thatโ€™s all. So kudos to him.

Teamwork, friends.

Of course, big thanks first of all to @Steveโ€ฆ

Top Labels in this Space