Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

0 preceding numbers

Status
Not open for further replies.

smcadman

Mechanical
Nov 6, 2002
1,589
I have a column that requires 6-digit number in the cells. The numbers begin with 0, such as 050801, 050802, 050803, etc. If the cells are formatted as text, they show as required, but if the cell is formatted as text, I lose the 0, and the cells now show as 50801, 50802, 50803, etc.
How can I have the 0 precede the other 5 numbers?

Flores
 
Replies continue below

Recommended for you

Create a custom format with leading zeros "000000"

TTFN



 
That did it, thanks! I had tried 0#####, among other things, but I didn't try ALL zeroes.

Flores
 
Simply, put the ' stroke before the zero.

 
If I use a ', the numbers are store as text instead of numbers. Thanks anyway.

Flores
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor