Easiest way:
Public Function MyFind(myValue As Variant, myRange As Excel.Range) As
Variant
On Error Resume Next
With Application.WorksheetFunction
Call .Match(.VLookup(myValue, myRange.Parent.Range("$I:$J"), 2,
False), myRange, False)
End With
If Err.Number <> 0 Then
MyFind = "Not Found"
Else
MyFind = ""
End If
End Function
> I have a formula in B:B that looks like this
> =IF(ISERROR(MATCH(VLOOKUP(A1,I:J,2,FALSE),'$M:$M,0)),"Not Found","")
[quoted text clipped - 14 lines]
> Any help appreciated.
> thanks
ilia - 11 Dec 2007 22:14 GMT
Note, however, that this function will not update if I:J changes
(because it's not in the argument list), so you have to recalc
manually.
> Easiest way:
>
[quoted text clipped - 32 lines]
>
> - Show quoted text -
Finny388 - 17 Dec 2007 16:53 GMT
> Note, however, that this function will not update if I:J changes
> (because it's not in the argument list), so you have to recalc
[quoted text clipped - 36 lines]
>
> > - Show quoted text -
Thanks Ilia works great