IF/AND not using both conditions

one stupid guy

New member
Joined
Sep 27, 2012
Messages
2
Reaction score
0
Points
0
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
Joined
Dec 30, 2011
Messages
121
Reaction score
0
Points
0
Location
Victoria, Canada
Excel Version(s)
Microsoft Excel 2013
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
Joined
Sep 27, 2012
Messages
2
Reaction score
0
Points
0
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
Joined
Mar 21, 2011
Messages
1,942
Reaction score
0
Points
36
Excel Version(s)
O365
You can also invert it

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