Forum Discussion
GeorgieAnne
Jul 06, 2026Iron Contributor
Can anyone help me with this SWITCH function
Hello Everyone, This SWITCH function is used to produce a number that then I can use to sort workers and their functions. =SWITCH(TRUE, IF(AND(ISNUMBER(J2)=TRUE,M2="Working")=TRUE,5,0), I...
SelinaKnow
Jul 07, 2026Brass Contributor
The issue is that SWITCH(TRUE, ...) expects logical conditions, but your formula is passing the results of IF() instead. Replace each IF(...) with the corresponding AND(...) condition (or use IFS()), and the formula will return the expected values instead of always falling back to 50.