Hi,
wondering if anyone can help me with this formula.
i have one cell in worksheet. i want to extract a word (text) and i
the next column based on "text" i want to assign a description to it.
have used following, but giving me an error.
Function productname()
Dim ProductID As String
Dim x As String
Dim y As String
x = ActiveCell.Offset(0, -1)
Select Case y
Case y = "xyz"
If (IsError(Find(y, x))) Then
ProductID = "ENC"
Else
ProductID = "xoyazer"
End If
Case y = "VOY"
If (IsError(Find(y, x))) Then
ProductID = "ENC"
Else
ProductID = "xoyager1"
End If
End Select
End Function
thanks
ni
--
Message posted from
http://www.ExcelForum.com