A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Using arrays and VBA functions requires a bit more work than that. There's not a lot of guidance out there for single cell array returns, but generally you need to return an array from your function, which means your return type needs to be a variant, and the array orientation that you return depends on the orientation of the range that you want to compare it against, so you need to check that. Bol_Cure_Event and BoI_Cur_Date can either be named ranges or comma delimited arrays - this should work in your Formula 2.
Function IsLike(strVal1 As String, strVals2 As Variant) As Variant
Dim boolLike() As Boolean
Dim i As Integer
If TypeOf strVals2 Is Excel.Range Then
ReDim boolLike(1 To strVals2.Cells.Count)
For i = 1 To strVals2.Cells.Count
boolLike(i) = strVals2.Cells(i).Value Like strVal1
Next i
If strVals2.Rows.Count = 1 Then
IsLike = boolLike
Else
IsLike = Application.Transpose(boolLike)
End If
Else
ReDim boolLike(LBound(strVals2) To UBound(strVals2))
For i = LBound(strVals2) To UBound(strVals2)
boolLike(i) = strVals2(i) Like strVal1
Next i
IsLike = boolLike
End If
End Function