Ms-Exl-Learner said:
I don’t think so widening of columns will work if the number Exceeds 12
digits when it is formatted as General.
Correct. Well, it does not work if the number exceeds 10 digits.
In my more-complete response to the OP, I suggested combining that with
formatting as Number. Arguably, your suggestion avoids the extra step; the
column is widened automagically.
But I am seeing the same error in your below formula also,
="'"&VALUE("1234567890123456") [....]
You can notice that the end value Six will be changed into
zero after pasting the above formula in a cell.
That was the point. It is a counter-example to demonstrate that the
apostrophe does not have the desired effect when used in that way. If the
apostrophe had worked as you intended, the last 6 would not be changed to
zero.
Finally about the below formula, substituting of 0 (zero) will remove all
the zeros and result you the text numbers without any zeros.
=SUBSTITUTE(SUBSTITUTE(A1," ",""),"0","")
But the OP is looking to remove the leading zeros
You are correct. My bad.
But my point was: If the phone number might be more than 15 digits long
after removing leading zeros, then it is ill-advised to try to remove
leading zeros by converting the text to a number.
----- original message -----
Ms-Exl-Learner said:
Hi Joe,
I don’t think so widening of columns will work if the number Exceeds 12
digits when it is formatted as General. If cell is in General format and
widening of column will also result the same 1.23457E+13 error.
PS: Appending an apostrophe like that is not the same as typing an
apostrophe manually. In the case above, the apostrophe actually becomes
part
of the string, and it is displayed. I'm sure that is not what you
intended.
Yes, I though that using apostrophe in front of value function will mark
the
cell as text entry and it will show the numbers exactly even though the
length of the number goes beyond 16 digits. But now I realize that this
is
the wrong assumption.
But I am seeing the same error in your below formula also,
="'"&VALUE("1234567890123456")
Have you applied the above formula in excel? Because the Length of the
Number is exceeding 15 digits, so it will get the wrong result even though
the cell is formatted as numbers. You can notice that the end value Six
will
be changed into zero after pasting the above formula in a cell.
I think there is no benefit of using the apostrophe in front of the value
function, because Value is working with the same methodology like Number
format. Since both Number format and Value functions are showing the
correct
results when the length of the Number is upto 15 digits.
Finally about the below formula, substituting of 0 (zero) will remove all
the zeros and result you the text numbers without any zeros.
=SUBSTITUTE(SUBSTITUTE(A1," ",""),"0","")
But the OP is looking to remove the leading zeros like
00020680089005089046
to 20680089005089046. But the above formula will result 2688958946.
.