IFS with AND

Copper Contributor

I was trying to set multiple conditions for IFS with AND for the conditions.

IFS((AND(U32=1, V32<S32), (V32+5)), (AND(U32=2, V32<S32), (V32+5))).

It kept returning an error.

Any advice? Thanks

 

2 Replies

@phuakt565 Try it this way:

=IF(AND(OR(U32=1, U32=2),V32<S32),V32+5,"x")

You seem to want return V32+5 when U32 equals 1 or 2 AND V32 is less than S32. but you also need to specify what to do in case these criteria are not met. Hence, the "x" at the end. Replace it with whatever formula or text you need.

@phuakt565 

As variant

=V32+SUM(IF(U32={1,2},5,0))