Is there a Google Sheets formula that indicates whether a value (e.g., the contents of A1
) is in a specified set (e.g., 1, 5, 9
)?
Yes, I could do a SWITCH(A1, 1, 1, 5, 1, 9, 1, 0)
, but that is overly verbose.
I want something terse like ISINSET(A1, 1, 5, 9)
.