Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

number of digits of numbers in design tables 2

Status
Not open for further replies.

cmm

Mechanical
Jan 11, 2002
95
In a design table, I have a list of configurations that have numerical names and I want the numerical names to all have the same number of digits so that they appear in numerical order for when I need to manually select configurations in Solidworks. In other words, I want the numbers 1234.5, 123.4, 12.3 to read 1234.5, 0123.4, 0012.3 respectively. Is there an efficient way to do this in Excel? Currently I am using embedded IF statements and CONCATENATE to attach a "00" or "0" to the front of numbers. This makes my design tables look more complex than they are, which is bad because others need to read them. I know this is really an Excel question, but I thought someone in this forum is likely to have run into the same issue.

Chris Montgomery
Mechanical Engineer
 
Replies continue below

Recommended for you

Select (highlight) the range of cells, then go to Format > Cells > Number & set the number of decimal places required.

The row or column can also be selected when choosing the cells to format.

[cheers]
Helpful SW websites FAQ559-520
How to get answers to your SW questions FAQ559-1091
 
Super-simple. Select your column and then go to "format cells". Choose "custom" format and then enter

0000.0

into the format box. All numbers entered into that column will be displayed with leading zeros up to four digits left of decimal and one digit right of decimal.
 
Doh ... sorry ... please ignore my post [blush]

[cheers]
Helpful SW websites FAQ559-520
How to get answers to your SW questions FAQ559-1091
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor