+ Reply to Thread
Results 1 to 3 of 3

How do I shorten a 17 digit field to a 6 digit field?

  1. #1
    Paul Bass
    Guest

    How do I shorten a 17 digit field to a 6 digit field?

    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.

  2. #2
    Miguel Zapico
    Guest

    RE: How do I shorten a 17 digit field to a 6 digit field?

    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.


  3. #3
    Don Guillett
    Guest

    Re: How do I shorten a 17 digit field to a 6 digit field?

    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.




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1