Nest the IF function
how do I nest the if function?
Cell A1 do this if it is >5000 AND A1< 1000000 “xx” and do this if it is > 1000000, “yy”, else do this - “"
[Re-Titled by Moderator]
Original Title: Nest the IF function
MacBook Air 15″
how do I nest the if function?
Cell A1 do this if it is >5000 AND A1< 1000000 “xx” and do this if it is > 1000000, “yy”, else do this - “"
[Re-Titled by Moderator]
Original Title: Nest the IF function
MacBook Air 15″
Another option would be to attack it backwards.
If A1>=1000000 then "yy" else if A1>5000 then "xx" else ""
=IF(A1>=1000000, "yy", IF(A1>5000, "xx",""))
or
=IFS(A1>=1000000, "yy", A1>5000, "xx", TRUE, "")
Another option would be to attack it backwards.
If A1>=1000000 then "yy" else if A1>5000 then "xx" else ""
=IF(A1>=1000000, "yy", IF(A1>5000, "xx",""))
or
=IFS(A1>=1000000, "yy", A1>5000, "xx", TRUE, "")
Hi rtn_ajw1,
I am not sure of your aim, but this may work:
IF(AND(A1>5000,A1<1000000),"xx",IF(A1>1000000,"yy",""))
Regards,
Ian.
P.S. What should the result be if A1 is exactly 1000000?
Ian.
sorry I should have made it =>1000000. Thankyou - I’ll try your solution.
Once I changed it to >= it worked perfectly. Thanks I’ve been trying to get it to work for over 2 days!
Nest the IF function