×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

number of digits of numbers in design tables
2

number of digits of numbers in design tables

number of digits of numbers in design tables

(OP)
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

RE: number of digits of numbers in design tables

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

RE: number of digits of numbers in design tables

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.

RE: number of digits of numbers in design tables

Try:
TEXT(123.4, "0000.0")

Eric

RE: number of digits of numbers in design tables

Doh ... sorry ... please ignore my post blush

cheers
Helpful SW websites  FAQ559-520
How to get answers to your SW questions  FAQ559-1091

RE: number of digits of numbers in design tables

you sould set this up as text and use "'" in front of the number.

Regards,

Scott Baugh, CSWP
www.scottjbaugh.com
FAQ731-376

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources