I didn't catch that, sorry. I was assuming you would pass the cell you were checking to the function. Here's a version that doesn't need an input.
VB Code:
  1. Function tobian() As Long
  2. Dim LookupValue As Variant
  3. Dim rngMatrix As Range
  4.  
  5.         Application.Volatile
  6.        
  7.         LookupValue = Application.Caller.Offset(1, -1).Value
  8.         Set rngMatrix = ThisWorkbook.Worksheets(1).Range("B4:C11")
  9.        
  10.         If rngMatrix.Find(What:=LookupValue, _
  11.                             LookIn:=xlValues, _
  12.                             LookAt:=xlWhole, _
  13.                             MatchCase:=False) Is Nothing Then
  14.             tobian = 0
  15.         Else
  16.             tobian = 2
  17.         End If
  18.        
  19.         Set rngMatrix = Nothing
  20. End Function