Results 1 to 4 of 4

Thread: IF/AND not using both conditions

  1. #1

    IF/AND not using both conditions

    Register for a FREE account, and/
    or Log in to avoid these ads!

    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,

  2. #2
    Conjurer CheshireCat's Avatar
    Join Date
    Dec 2011
    Victoria, Canada
    Excel Version
    Microsoft Excel 2013
    If you want the TRUE result of the AND test to indicate "This is fine", then adjust your formula like this:

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

  3. #3
    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.

  4. #4
    You can also invert it

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts