one option would be to make your own function. Enter this into a module in VBA:
Public Function FindNum(ByVal str As String, ByRef rng As Range) As String
Dim c As Object
For Each c In rng.Cells
If InStr(c.Value, str) > 0 Then
FindNum = Cells(c.Row, c.Column + 1).Value
Exit Function
End If
Next c
If str = "" Then FindNum = ""
End Function
And then call the function in C4 like this:
=FindNum(B4,F:F)
Main Topics
Browse All Topics





by: PsychotecPosted on 2008-10-16 at 01:09:40ID: 22728803
I completely understand your question but could you please post an example so I can work this out for you. I would do a search based on INSTR function in vba. Otherwise you would get something like a VLOOKUP function but im not sure this will be good enough in this case. Are dont you want to use vba?