Results 1 to 2 of 2

Thread: What is the meaning of this formula?

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    1
    Rep Power
    0

    What is the meaning of this formula?

    What is the meaning of this formula

    =IF(AND(A4=1,A5>0),"END",IF(AND(A4="",A5=""),"END" ,""))

  2. #2
    Junior Member NBVC's Avatar
    Join Date
    Jun 2012
    Posts
    5
    Rep Power
    0
    Quote Originally Posted by moishy View Post
    What is the meaning of this formula

    =IF(AND(A4=1,A5>0),"END",IF(AND(A4="",A5=""),"END" ,""))
    the formula first checks if cell A4 has a 1 in it and cell A5 has a value greater than a 0 in it. If both are true, then the word "END" is placed in the cell the formula is in. If either is False, the the formula checks if both A4 and A5 cells are blank, if that is True, then "END" is placed in the cell the formula is in... otherwised the cell the formula is in stays blank.

    It could be shortened to:

    =IF(OR(AND(A4=1,A5>0),AND(A4="",A5="")),"END","")

    This checks if either the first combination of A4=1 and A5=0 or A4 and A5 are blank is true and puts "END" if either combination is true.. otherwise leaves a blank.
    Last edited by Rick Rothstein; 06-12-2012 at 08:00 PM. Reason: Added text in red in order to make the text correct.

Posting Permissions

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