Enter the number as text. For this purpose you can eitehr set the cell format as Text or you can precede the number with an apostrophe. Enterint '002566 will show the elading zeroes. The apostrophe will remain invisible but use of the number for calculations will be limited.
Set a custom number format for the cell. This will only work for you if the number of digits is known. The number format "000000" will cause the cell so formated to display any number with six digits, filling the missing digits with leading zeroes. the number 1 will be displayed as 000001. To set the number format select Format Cells from the right-click or Format menus, on the Number tab select Custom and enter the desired format in the Type field (without quuotation marks).
posted by: Variatus (rep: 4889) on Thu Feb 1, 2018 at 1:27 am