Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using an offset formula for the reference in a relative reference | Excel Worksheet Functions | |||
Relative Reference | Excel Discussion (Misc queries) | |||
Relative Reference | Excel Discussion (Misc queries) | |||
relative reference | New Users to Excel | |||
relative reference | Excel Programming |