Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
As above assuming it is possible. Have tried copy and special paste without
much luck so far. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Jerry,
copy this code (press alt+f11) and use in an auxiliar column =digitsonly(a2) *********************************************** Public Function DigitsOnly(sStr As String) As Variant Dim oRegExp As Object Set oRegExp = CreateObject("VBScript.RegExp") With oRegExp .IgnoreCase = True .Global = True oRegExp.Pattern = "\D" DigitsOnly = oRegExp.Replace(sStr, vbNullString) End With End Function *********************************************** hth -- regards from Brazil Thanks in advance for your feedback. Marcelo "Jerry Lee Penny" escreveu: As above assuming it is possible. Have tried copy and special paste without much luck so far. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Jerry Lee Penny wrote:
Subject: How do you convert $100M into a whole number? As above assuming it is possible. Have tried copy and special paste without much luck so far. [Please repeat the question in the body of the posting.] Do you mean that you have the text "$100M"? If so, does the following meet your needs, assuming that A1 contains the text to convert: 1000000*mid(A1, 2, len(A1)-2) More robust: if(isnumber(A1), A1, if(right(A1,1)="M", 1000000*mid(A1,2,len(A1)-2), if(right(A1,1)="K", 1000*mid(A1,2,len(A1)-2), 1*right(A1,len(A1)-1)))) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel should have a formula to convert number into words | Excel Worksheet Functions | |||
How do I convert hh:mm:ss to an absolute number (26:01:32 to 26)? | Excel Discussion (Misc queries) | |||
Convert [h]:mm sum total format to number format | Excel Worksheet Functions | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
"Convert to Number" option disappearing | Excel Discussion (Misc queries) |