davidmg1982
Board Regular
- Joined
- Oct 12, 2015
- Messages
- 64
Hi all, its my first day at work and par of it is to run a formula based on a UDF, which search for a value within a cell text string based on a column list, this list is almost 25000 rows. Since its searching for this many words in almost 35000 text strings, it takes about 40 min, which is honestly fine for the amount of work, but i would appreciate if any of you kind people take a look and sugest any posible improvement to the function to speed the process. Thanks in advance for your kind help.
Example of the formula since i cannot attach an example doc.
B2=ExtractServer(A2,Sheet2!$A$1:$A$22804)
Example of the formula since i cannot attach an example doc.
B2=ExtractServer(A2,Sheet2!$A$1:$A$22804)
Code:
Function ExtractServer(SearchRange As Range, DogRange As Range) As String
For Each Myrange In DogRange
If InStr(1, SearchRange.Value, Myrange) > 0 Then ExtractServer = Myrange
Next
End Function
Last edited: