7 replies
by danprem
Change the format of the cells (which need to contain the values with leading zeros) into Text. You can now manually add zeros to the front. U can now use left(), mid(), find() on the full value(incl the zeros).
If you want to use the numeric value of those cells in any calculation use the function =VALUE().
Hope this has answered your query!
by raycpu
by dklippert
This will return the first 3 zeros of a number that is formatted with six displayed zeros
=LEFT(TEXT(A1,"00000"),3)
by raycpu
by richtee
One way to accomplish this is by custom formatting the cell containing the calculations, etc.
Format | Cells | Number tab | select custom under Category: | In the ?Type:? box enter the following:
000000.###
This specific input will format the cell to return a number with leading zeros up to six places to the left of the decimal point. It will return up to 3 places to the right of the decimal.
You can modify the number of zeros to show before the decimal and the number of places after the decimal to suit your needs. By using this formatting, the number remains a number and can be used in further calculations.
Good Luck, Rich
by raycpu
by raycpu
This discussion is closed to new replies.
Trending Software posts
Sort by Trending