Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all, I'm trying to figure out how to make a UDF obtain a string
from any given cell, split and return the value depending on what the user asks for. For example. Cell value in A1 = 233-2330100-100102-101-99999999-999999 There is 6 segments to this string.... The idea was that I would enter in cell A2 =CoA(A1,2) 2 representing the second segement. The UDF would be something like Public Function CoA(account as string, xyz) as number Select Case xyz Case 1 CoA = left(account, 3) Case 2 CoA = Mid(account, 7, 3) Case n CoA = n End Select End Function I'm just struggling with what I need to include for it to work. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return Text based upon text matching | Excel Worksheet Functions | |||
Lookup Text and Receive Other Text in Return | Excel Worksheet Functions | |||
Nested formula to search a text string and return specific text | Excel Worksheet Functions | |||
2 criteria lookup of text. Return text form column 3. SUMPRODUCT t | Excel Worksheet Functions | |||
Link to text and return text into a formula? | Excel Worksheet Functions |