ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   solved problem (https://www.excelbanter.com/excel-worksheet-functions/98163-solved-problem.html)

claude

solved problem
 
number in general format was okay the issue is the number had a space
seperation in thousand place i removed this by edit and replace and viola it
worked!

Marcelo

solved problem
 
Hi Claude,

try to use the UDF

and use a function =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
Marcelo


"claude" escreveu:

number in general format was okay the issue is the number had a space
seperation in thousand place i removed this by edit and replace and viola it
worked!



All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com