LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default How format number as text

Hi,

First, you can't change a number to text by changing the format.

Second, Excel does not store 11 decimals but up to 15, here are some limits
from Excel's help:

Number precision 15 digits
Smallest allowed negative number -2.2251E-308
Smallest allowed positive number 2.2251E-308
Largest allowed positive number 9.99999999999999E+307
Largest allowed negative number -9.99999999999999E+307
Largest allowed positive number via formula 1.7976931348623158e+308
Largest allowed negative number via formula -1.7976931348623158e+308

The reason you are seeing 1.23457E+13 is because the format of the cell
and/or column width is such that the number is being displayed in scientific
notation. To see your number as 12345678901111 simply widen the column and
choose Format, Cells, Number and set the decimals to 0.

The only time you need to format a cell as Text is if the number is longer
than 15 digits or there are leading 0's you want to retain. If that is the
case the easiest way to convert the numbers to text is to use a formula such
as =A1&"", copy it down and then copy all the formulas and paste them as
values. Then get rid of the original numbers.


--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Woody" wrote:

Sorry to trouble you again. I only gave you part of the problem because I
was trying to keep it simple. However, the data for the file I am talking
about comes in from a .CSV file.

The field I am talking about has very long numbers, 14 characters. for one
cell, the number up at the top area of Excel reads like this: 12345678901111.
But, in the cell itself, it looks like this: 1.23457E+13. This is the value
I am trying to get rid of. I want it to read like this: 12345678901111.
Formatting to text does not solve the problem. It still looks like
1.23457E+13. I thought, fine, I format it to a number first, then format it
to a text. When I format it to a number, the E+13 goes away, but when I then
format that to a text, believe it or not, the funny number comes back again
(1.23457E+13). Any thoughts on what's happening?

It is strange to me that I am having this problem in the first place because
the number are surrounded by double quotation marks in the csv file. That is,
I can open the csv file in Notepad and see that these numbers are surrounded
with quotes. Why Excel insists on bringing them in as numbers I don't know.

Any thoughts


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert numbers from text format to number format merlin68 Excel Discussion (Misc queries) 7 June 20th 07 07:03 PM
Change number (in text format) to numeric format Pam Excel Discussion (Misc queries) 5 October 24th 05 07:45 PM
Hoe to change text format .126 to number format 0.126 vitality Excel Discussion (Misc queries) 3 October 6th 05 01:31 PM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"