Forum Discussion
BrieHugger
Dec 28, 2022Copper Contributor
Someone Help Me with =IF(AND(X,Y),T, F) Function
Hey all,
I'm just trying to get an If/And function working, and it seems like I do - However when I apply the equation to different numbers, it's incorrect. Here's a sample:
=IF(AND(C17>3,D17>3),TRUE, FALSE) where C17=1 and D17=2 returns "TRUE"
BUT
=IF(AND(C19<3,D19<3),TRUE, FALSE) where C19=1 and C19=5 returns "TRUE"
This happens when the inverse is true as well, so I'm pretty sure it has something to do with the formula phrasing itself.
Thanks!@
- Patrick2788Silver Contributor
There's a possibility your 'numbers' are being evaluated as 'text'. You could try using this function on any of your numbers.
For example:
=ISNUMBER(C19)
If the above check results in FALSE, you might explore a solution offered here:
Convert numbers stored as text to numbers - Microsoft Support
- WelberMohamadCopper Contributor