# IF/AND not using both conditions

#### one stupid guy

##### New member
Hi,
I want to return one of two possible outcomes, if both conditions are satisfied.
My formula is simple:

=+IF(AND(H20>=0.5, H20>G20),"This is screwed up", "This is fine")

But it seems to only be sensitive to the second outcome (H20>G20).

If H20 is 0.2, it still returns "This is fine".

It's not fine.

If anyone can tell me the fix, I'd very much appreciate it.

Thank you so much for any guidance,

#### CheshireCat

##### New member
If you want the TRUE result of the AND test to indicate "This is fine", then adjust your formula like this:

Code:
``=IF(AND(H20>=0.5, H20>G20),"This is fine", "This is screwed up")``

#### one stupid guy

##### New member
Thank you for the prompt reply.
I thought I tried that, but apparently I'm not as bright as I thought.

Thank you. You've relieved a brain cramp.

#### Bob Phillips

##### Super Moderator
Staff member
You can also invert it

=IF(AND(H20>=0.5, H20>G20),"This is fine", "This is screwed up")