I have a column of numbers of over 500 rows. I need to use VBA to check if variable X matches any of the values in the column.
Can someone please help me?
Simplest is to use Match
Match
If Not IsError(Application.Match(ValueToSearchFor, RangeToSearchIn, 0)) Then ' String is in range