I am using Microsoft Exce 2002. I am trying to shorten a few hundred 17
digit alphanumeric fields to just the last 6 digits of the 17 digit fields.
Any ideas would be helpful.
I am using Microsoft Exce 2002. I am trying to shorten a few hundred 17
digit alphanumeric fields to just the last 6 digits of the 17 digit fields.
Any ideas would be helpful.
One approach can be with the worksheet formula RIGHT. If you have you data
in column A, something like this in column B will do what you want:
=RIGHT(A1,6)
Hope this helps,
Miguel.
"Paul Bass" wrote:
> I am using Microsoft Exce 2002. I am trying to shorten a few hundred 17
> digit alphanumeric fields to just the last 6 digits of the 17 digit fields.
> Any ideas would be helpful.
Sub shorten()
For i = 1 To Cells(Rows.Count, "e").End(xlUp).Row
Cells(i, "e").Value = Right(Cells(i, "e"), 6)
Next i
End Sub
--
Don Guillett
SalesAid Software
dguillett1@austin.rr.com
"Paul Bass" <Paul Bass@discussions.microsoft.com> wrote in message
news:B2044DC4-374B-4C75-B348-E5767362C26C@microsoft.com...
>I am using Microsoft Exce 2002. I am trying to shorten a few hundred 17
> digit alphanumeric fields to just the last 6 digits of the 17 digit
> fields.
> Any ideas would be helpful.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks