I'm trying to basically do a VLOOKUP, but the content of my cell is too long for VLOOKUP to process. I therefore use this VBA script to search through a defined range:
Function betterSearch(searchCell, Range As String) For Each cell In Range If cell.Value = searchCell.Value Then betterSearch = "Match" Exit For End If betterSearch = "No match" Next End Function The function is called as (for example): =betterSearch(B33;'Master'!C:C)
However, I can't get a single output. I'm getting cross-eyed, what mistake am I making?
Range as StringbeRange as Range?betterSearch(searchCell, Source As Range)would be better.