Results 1 to 3 of 3

Thread: IF / OR Statement

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,709
    Location
    =IF(OR(B4='Look Up Values'!Q9,'Look Up Values'!Q10,'Look Up Values'!Q11,'Look Up Values'!Q12,'Look Up Values'!Q16,'Look Up Values'!Q17),1,(OR(B4='Look Up Values'!Q13,'Look Up Values'!Q14,'Look Up Values'!Q15),2,0))
    If(B4 = Any,1,B4 = Any,2,0))
    If B4 = Any Then
    1
    Else
    True Or False Then 'this is the second OR Function
    2,0) ' I dunno what these 4 characters will do, they don't belong
    End If
    =IF(OR(B4='Look Up Values'!Q9,'Look Up Values'!Q10,'Look Up Values'!Q11,'Look Up Values'!Q12,'Look Up Values'!Q16,'Look Up Values'!Q17),1,if(OR(B4='Look Up Values'!Q13,'Look Up Values'!Q14,'Look Up Values'!Q15),2,0))
    =IF(B4= any,1,if(B4=any,2,0))
    If B4 = Any then 
    1
    Else
      If B4 = Any Then 
    2
    Else
    0
    End If
    Else
    ' = empty or 0 depending on Cell format
    End If
    So, what is the question?

    Watch what happens if you change the second formula to
    =IF(OR(B4='Look Up Values'!Q9,'Look Up Values'!Q10,'Look Up Values'!Q11,'Look Up Values'!Q12,'Look Up Values'!Q16,'Look Up Values'!Q17),1,IF(OR(B4='Look Up Values'!Q13,'Look Up Values'!Q14,'Look Up Values'!Q15),2,0)"SamT at VBAX")
    Last edited by SamT; 01-14-2016 at 06:34 PM.
    Please take the time to read the Forum FAQ

Posting Permissions

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