Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Karina K patni   on Dec 25 In MS Office Category.

  
Question Answered By: Stefan Thompson   on Dec 25

Here is a function that may help. It is similar to Match(), but uses
InStr() to return the position of lookup_value in lookup_array if
lookup_value is contained  anywhere in the cells  of lookup_array.

Then, you can use INDEX() to get the identification number.


Function Match2(lookup_value, lookup_array)
n = 1
For Each c In lookup_array
If InStr(c, lookup_value) > 0 Then
Match2 = n
Exit Function
End If
n = n + 1
Next
Match2 = False
End Function

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 


Tagged: