Forum Discussion
rbellotti
May 23, 2021Copper Contributor
Display a text result based on numeric values
Seeking a formula for the following: If P5 is less than 0.9, display B5 in Q5 OR If P5 is greater or equal to 0.9 but less than or equal to 1.1, display "Even" in Q5 OR If P5 is greater than ...
Yea_So
May 23, 2021Bronze Contributor
Hi rbellotti
If P5 is less than 0.9, display B5 in Q5
cannot be an OR but should be an ELSE:
IF(P5<.9,B5
If P5 is greater or equal to 0.9 but less than or equal to 1.1, display "Even" in Q5
cannot be an OR but an AND
IF(
AND(P5>=.90,P5<=1.1),"EVEN",
cannot be an OR but an ELSE (assuming it is then greater than 1.1 based on the IF statement above)
A5
So to sum it all up:
IF(P5<.9, B5,
IF(
AND(
P5>=.9,P6<=1.1
),
"EVEN", A5
)
)
Paste in Q5 in excel:
IF(P5<.9, B5,F(AND(P5>=.9,P6<=1.1),"EVEN", A5))
Cheers