Help with simple Expression please

Doors
New Member

Hi,

How would I combine the following two expressions into one?

ISNOTBLANK([Dinner])

CONTAINS([Dinner], {“Meat”, “Veg”, “Special”})

Thanks, J.

Solved Solved
0 2 253
1 ACCEPTED SOLUTION

Use one of the logical functions AND() or OR() depending on your need.

If you needed both to be true, the your expression would look like this:

AND(ISNOTBLANK([Dinner]),
    CONTAINS([Dinner], {“Meat”, “Veg”, “Special”})
 )

By the way, I don’t think CONTAINS() is the function you want. CONTAINS() is meant to test for a substring is contained within another string.

The function you really want is IN([Dinner], {“Meat”, “Veg”, “Special”})

View solution in original post

2 REPLIES 2

Use one of the logical functions AND() or OR() depending on your need.

If you needed both to be true, the your expression would look like this:

AND(ISNOTBLANK([Dinner]),
    CONTAINS([Dinner], {“Meat”, “Veg”, “Special”})
 )

By the way, I don’t think CONTAINS() is the function you want. CONTAINS() is meant to test for a substring is contained within another string.

The function you really want is IN([Dinner], {“Meat”, “Veg”, “Special”})

Doors
New Member

Great, Thanks. I’ll get the hang of this one of these days.

Top Labels in this Space