Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Nov 6, 2002
Messages
1,589
Location
US
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
 
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

Back
Top