Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think I'd use the split function a couple of times inside a user defined
function. Try something like: ____________________________ Function MyExtract(strIn As String) As Long arrayA = Split(strIn, "#") arrayB = Split(LTrim(arrayA(1)), " ") MyExtract = CLng(arrayB(0)) End Function _______________________________ No need for the intermediate 'array' variables... you can combine it all into one line: Function MyExtract(strIn As String) As Long MyExtract = CLng(Split(LTrim(Split(strIn, "#")(1)))(0)) End Function Rick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
text to columns with inconsistent data alignment | Excel Discussion (Misc queries) | |||
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing | Excel Discussion (Misc queries) | |||
saving text files and parsing data to spreadsheet | Excel Programming | |||
format data displayed on Excel data entry form | Setting up and Configuration of Excel | |||
Parsing Data with Formulas (vs Text-to-Columns) | Excel Worksheet Functions |