Forum Discussion

davehus's avatar
davehus
Memorable Member
8 years ago
Solved

Conditional Column based on 2 columns

Hi,

 

I want to create a conditional column based on 2 columns. I can use AND OR fine, however is there an inlist equivalent? 

 

Example if [C1] = 201 And [C2] InList (105,106) then [Value1] Else [Value2].

 

Any help would be appreciated. :) 

  • Something like 

    =if(c1 = 201 && c2 in {105,106), [Value1],[Value2])

     

    That should work

     

2 Replies

  • sjc4062's avatar
    sjc4062
    Frequent Visitor

    Something like 

    =if(c1 = 201 && c2 in {105,106), [Value1],[Value2])

     

    That should work

     

    • davehus's avatar
      davehus
      Memorable Member
      Thank you very much.. Struggled with the logic for a while. This makes more sense 😁