Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Stripping digits from a column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 25 Feb 2008 18:57 GMT
Hi,
I've a column containing alphanumeric text as 200731705A832565410B12345678.
Out of this text, I need only the 9 right most digits.
How do I go by?
TIA,
Mark
BernieG - 25 Feb 2008 19:36 GMT
Assuming the text is in cell A1, type =RIGHT(A1,9)

If this doesn't work, the text may contain non-printing characters. If so,
type
=RIGHT(CLEAN(C9),9)

Hope this helps.

Signature

BernieG

> Hi,
> I've a column containing alphanumeric text as 200731705A832565410B12345678.
> Out of this text, I need only the 9 right most digits.
> How do I go by?
> TIA,
> Mark
Gary''s Student - 25 Feb 2008 20:03 GMT
If yu have a set of mixed numbers and letters and want only the nine-most
numbers, then:

=RIGHT(returnnumerals(A2),9)

where the UDF is:

Public Function ReturnNumerals(rng As Range) As String
Dim sStr As String, i As Long, sStr1 As String
Dim sChar As String
 sStr = rng.Value
 For i = 1 To Len(sStr)
   sChar = Mid(sStr, i, 1)
   If sChar Like "[0-9]" Then
     sStr1 = sStr1 & sChar
   End If
 Next
ReturnNumerals = sStr1
End Function
Signature

Gary''s Student - gsnu200770

> Assuming the text is in cell A1, type =RIGHT(A1,9)
>
[quoted text clipped - 10 lines]
> > TIA,
> > Mark
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.