I need an excel formula that if a number in cell A1 is 1,2 or 3 then put number 8 in cell A2. If not leave blank.
I tried a bunch of formulas but I don't know what this one would be called. Sounds like a simple formula but I have alot to learn about Excel.
=IF(ISNA(MATCH(A1,{1;2;3},0)),"",8)
. In MS365=IF(ISNA(XMATCH(A1,{1;2;3})),"",8)
or=IF(ISNA(XMATCH(A1,SEQUENCE(3))),"",8)
.ISNA(MATCH(A1,{1;2;3},0))
is the same as=NOT(OR(A1={1;2;3})
=IF(OR(A1={1;2;3}),8,"")
works just fine.