• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Excel Logic Query

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Excel Logic Query

    I have 5 cells, A1 - A5 for example with or without content. I need A6 to = "Pass" for the following....

    A1 = Anything
    B1 = Anything
    C1 = Empty
    D1 = Empty
    E1 = Anything

    I need A6 to = "Fail" for any other condition.

    I have been playing with =If(And for a couple of hours but am having issues around working with either empty cells or cells that aren't empty.

    Any hints or tips?
    SUFTUM

    May life give you what you need, rather than what you want....

    #2
    =IF(LEN(C1&D1)=0,IF(LEN(A1&B1&E1)>0,"Pass","Fail") ,"Fail")
    What happens in General, stays in General.
    You know what they say about assumptions!

    Comment


      #3
      You need the isblank and and statements

      =IF(AND(ISBLANK(A1)=FALSE,ISBLANK(B1)=FALSE,ISBLAN K(C1)=TRUE,ISBLANK(D1)=TRUE,ISBLANK(E1)=FALSE),"Pa ss","Fail")
      merely at clientco for the entertainment

      Comment


        #4
        Many thanks, Eeks formula was easier to use in this situation, but a fantastic fast response as always from the CUK IT Helpdesk.
        SUFTUM

        May life give you what you need, rather than what you want....

        Comment


          #5
          Late to the party but I would have done:
          Code:
          =IF(AND(NOT(ISBLANK(A1)),NOT(ISBLANK(B1)),ISBLANK(C1),ISBLANK(D1),NOT(ISBLANK(E1))),"Pass","Fail")
          or maybe:
          Code:
          =IF(OR(ISBLANK(A1),ISBLANK(B1),NOT(ISBLANK(C1)),NOT(ISBLANK(D1)),ISBLANK(E1)),"Fail","Pass")

          Comment

          Working...
          X