Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Only 30 years to fix this

Status
Not open for further replies.

3DDave

Aerospace
May 23, 2013
10,732

Now waiting for "Create format to convert to number and retain leading zeros."

Known issues
The feature does not support disabling these conversions during macro execution.

Of course. Why fix the feature most likely to suffer from automatic silent garbagication? Make them open 10,000 .csv files manually.
 
Replies continue below

Recommended for you

Now waiting for "Create format to convert to number and retain leading zeros."

So it appears that you want a NUMBER with leading zeros, yes?

Can you explain the purpose of a NUMBER with leading zeros? You can have a STRING of numeric characters with leading zeros.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Because subtracting one string from another doesn't work correctly. Because creating more places for string to number conversions is a way to create difficult to find problems.

One could just use binary for all presentations, as long as the "endian" problem is solved.
 
But why the leading zeros? Why is that necessary for a NUMBER?

Could this be a vestige of 80 or 132 column cards or COBOL number pics?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Maybe they should not, but then 90% of Excel should be done in better applications.
 
Yes, I wholeheartedly agree.

Excel is so "easy" that it's easy to use and abuse.

So in this instance I can propose at least two different scenarios to analyze:
1) NUMBERS from a legacy application in a TEXT file to analyze and possibly return
2) numeric identifiers (part numbers, invoice numbers, employee numbers etc) that will never be used to calculate a root or raised to a power.

In the former case, I recommend IMPORTING (never OPENING) via Data > Get External Data... and there are several methods therein available, that enable the user to specify fixed width or delimited, and Data Types. It is important to understand the types of data being imported and to specify accordingly. You may have some fixed width numeric data, but to manipulate mathematically, leading zeros are meaningless.

However, if data must be returned, then the proper column width must be imposed along with leading zeros for numeric data.

IDENTIFIERS as opposed to NUMBERS ought to be TEXT from beginning to end.

So I have waged a mini-crusade on this issue on the sister site with but a finger in the dike.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor