Results 1 to 6 of 6

Complex IF AND OR statement

Threaded View

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Illinois
    MS-Off Ver
    Excel 201004
    Posts
    11

    Complex IF AND OR statement

    Hello,

    I am trying to write a statement that will output "ERROR" if any cell L, K or J has a value in it, while any cell L, K or J in the same row is blank. The statement below works if only L, J or K is filled. It works if J and K are filled and L is blank and if J and L are filled but K is blank. However, if only K and L are filled and J is blank it outputs "OK".

    Can anyone tell me where I have gone wrong?

    =IF(AND($K4<=180,$K4>=0,$L4<=180,$L4>=0,$L4>$K4,$K4>$L3),"OK",IF(AND($L4="",$K4="",$J4=""),"",IF(OR($L4>=0,$K4>=0,$J4>=0,OR(AND($L4="",$K4="",$J4=""))),"ERROR","")))

    See attached example.

    Thanks!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1