+ Reply to Thread
Results 1 to 4 of 4

coverting cell to number without it deleting zero's

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    coverting cell to number without it deleting zero's

    Hi Guys,

    I have column of numbers used as item codes, they appear with a small green triangle in each cell.

    When I select all cells a little blue square pops up with drop down options to convert to number- after doing this the green triangles disappear but then numbers I had listed as eg '043340' appear as 4334.

    Is there way to make sure zero's are not deleted as some of my results from formulas end up being incorrect.

    Thanks in advance for your help

    Cheers,
    Natalie
    Last edited by Natalie_M; 02-26-2009 at 08:42 AM.

  2. #2
    Forum Contributor
    Join Date
    10-30-2007
    Posts
    125

    Re: coverting cell to number without it deleting zero's

    I just found out this yesterday and not sure how true it is. If the number appears on the left side of the cell then it is really a text. If the number appears on the right side of the cell then it is a number. You might need a formula =Text(B1,"000000")

    Hope that help..I sure one of the awesome experts on here will give you a better answer.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: coverting cell to number without it deleting zero's

    Natalie,

    There are two ways to show numbers with leading zeros.

    One is to use custom formatting (e.g., 000000 shows all numbers less than 100000 with leading zeros).

    The other is to store them as text, which usually makes more sense (because part numbers are really strings, and you don't do math with them). Either enter them with a leading apostrophe, or format the cells as text in advance of entering.

    The green triangle is a warning that you have a numeric value stored as text. Either ignore it, or suppress the display of the 'error'. (Tools > Options > Error checking, untick Number stored as text.)
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    02-20-2009
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: coverting cell to number without it deleting zero's

    Shg,

    Thanks ......Tools > Options > Error checking, untick Number stored as text......worked.

    Cheers
    Natalie

+ 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