+ Reply to Thread
Results 1 to 3 of 3

special number format

  1. #1
    Forum Contributor
    Join Date
    03-10-2009
    Location
    chicago illinois
    MS-Off Ver
    Excel 2010
    Posts
    127

    special number format

    Can someone help me with a special number format? I will have a range of cells and in that cells part numbers will be entered and formulas pull their info from these cells. The issue I am having is some of the part numbers start with actual numbers and those work fine, however a handful of part numbers start with 0. The 0 needs to stay there in order for the formulas to work. I tried to format as text but than formulas for some reason enter N/A. I can type the part numbers in as '01234 but I am trying to make it simple for other users so they don't have to type the '. Any suggestions?
    Last edited by sp1974; 03-03-2010 at 06:34 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,082

    Re: special number format

    You can either format it as text but then in formula use -- instead of just cell (for example --A1 instead of A1 where in A1 is number stored as text).

    Other way would be to format numbers if you know specific size of numbers. In A1 write 123 right click-> Format cells -> Special -> 0000 will give you 0123
    Never use Merged Cells in Excel

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

    Re: special number format

    To format a cell itself to show a 0... just use Custom and enter 0's enough to represent the number of digits these numbers have..

    to convert a number to a string with a leading zero in a formula, you can use the TEXT function... =TEXT(A1,"00000") will make 1234 into 01234. And this function can be embedded in another formula for manipulation.
    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