+ Reply to Thread
Results 1 to 3 of 3

how to limit amount of numbers in cells in excel

  1. #1
    Jeff
    Guest

    how to limit amount of numbers in cells in excel

    I am trying to limit the amount of numbers that are in a cell. For example I
    have a cell that has this sort of number 1220H123456, and I only want to have
    the last six digits in that cell so I can sort in a numerical order. I have
    been deleting the first 5 digits manually, but that takes way too much time
    when the list has over 3000 rows. Any help would be wonderful!!!

    Jeff

  2. #2
    Ragdyer
    Guest

    Re: how to limit amount of numbers in cells in excel

    Use a "helper" column which contains a text formula to parse out the
    beginning characters.
    Then you can sort on that helper column.

    Data in A1 to A3000.
    Enter this in B1:

    =RIGHT(A1,6)

    Drag down to copy,
    OR
    *Double* click the fill handle on B1, to *automatically* copy the formula
    down Column B, as far as there is data in Column A.
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Jeff" <Jeff@discussions.microsoft.com> wrote in message
    news:4676202F-770E-42C7-B089-863C22D4AFD0@microsoft.com...
    > I am trying to limit the amount of numbers that are in a cell. For example

    I
    > have a cell that has this sort of number 1220H123456, and I only want to

    have
    > the last six digits in that cell so I can sort in a numerical order. I

    have
    > been deleting the first 5 digits manually, but that takes way too much

    time
    > when the list has over 3000 rows. Any help would be wonderful!!!
    >
    > Jeff



  3. #3
    Forum Contributor
    Join Date
    11-29-2005
    Posts
    142
    Select the entire column.

    Go to Data|Text to Columns and select Fixed Width radio button.

    Click Next and in the white area, click just before the 5th last digit in one of the numbers. You should see a vertical line separating the numbers. You can drag the line over if you missed the point of separation.

    Click Finish. The numbers should be separated into 2 columns. Now you can delete or hide the unwanted column of numbers.

+ 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