tarynmahon
Member
Hi, I just changed them to be absolute and still no joy Im afraid, yes most of them should exist in the data but its just returning not found for all
Function BigLookup(xFind As Variant, SearchRange As Range, xOutput As Variant)
'set the default value
BigLookup = ""
'IMPORTANT!!!
'Change the list of sheets as needed
For Each sh In Worksheets(Array("BWApr", "BWMay", "BWJun"))
For Each c In sh.Range(SearchRange.Address)
If xFind = c Then
BigLookup = xOutput
GoTo ValueFound
End If
Next c
Next sh
ValueFound:
'Hurrah!
End Function