+ Reply to Thread
Results 1 to 1 of 1

Preserving leading zeros at cells

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    52

    Preserving leading zeros at cells

    Hello everybody! Here is a situation I am dealing with:

    I have a column every cell of which has content ending in = followed by a number that has either four or five digits and some of the numbers have leading zeros. What I would like to do is keep in a column the numbers as they are, preserving the leading zeros, if they exist.

    Searching the web I found two suggestions but neither of them work.

    1) format the cells of the column to the right as text. After the seperation of the content using text to columns operation, the leading zeros are lost.

    2) format the cells of the column to the right as custom typing 00000 at the type. This adds a zero at the numbers with four digits which is sth I want to avoid.

    Any suggestions?

    Thanks in advance.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Preserving leading zeros at cells

    When you do the TEXT to COLUMNS, after selecting Delimited in first screen, then = delimiter in next screen, click Next, then select the second column in the Preview Pane, then select Text from the column data format section. Now click Finish.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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