hi there i am trying to code the following formula in column L =if(or(and(g2>=$s$2,g2<=$t$2),and($s$2>=g2,$s$2<=h2)),"Overlap","Do not overlap")
i am receiving a compile error @ range line on "if", would appreciate some assistance
i am receiving a compile error @ range line on "if", would appreciate some assistance
Code:
Sub Overlap()
Dim Addr As String
Addr = "g2:g" & Cells(Rows.Count, "g").End(xlUp).Row
Range(Addr).Offset(, 5) = Evaluate (addr & if(or(and(g2>=$s$2,g2<=$t$2),and($s$2>=g2,$s$2<=h2)),"Overlap","Do not overlap"), LastRow))
End Sub
Regards,
Odd