Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You could use this User defined Function:
Function StripTxt(a As String) As String ' Strips all non-numeric characters from a string ' Returns a string, not a number! Dim i As Long Dim b As String For i = 1 To Len(a) b = Mid$(a, i, 1) If Asc(b) 47 And Asc(b) < 58 Then StripTxt = StripTxt + b Next i End Function If you're new to VBA, look he http://www.mvps.org/dmcritchie/excel/getstarted.htm -- Kind regards, Niek Otten "SHANNON" wrote in message ... Examples: AA100.10 ANN242.21 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
extract numbers from cell containing text & numbers | Excel Worksheet Functions | |||
text and numbers same cell and formulas still work (like lotus) | Excel Worksheet Functions | |||
Format a cell with numbers and user defined text | Excel Discussion (Misc queries) | |||
Converting Numbers to Text properly | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |