Forum Discussion
Jara2400
Jan 23, 2024Copper Contributor
IF function
I want to display 0 if the number is between 30 and 160, 1 if it is below 30 and 2 if it is above 160. How do I do this?
OliverScheurich
Jan 23, 2024Gold Contributor
=IF(AND(A1>=30,A1<=160),0,IF(A1<30,1,IF(A1>160,2,"")))
This can be done with a nested IF formula.