+ Reply to Thread
Results 1 to 4 of 4

format big numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    02-12-2015
    Location
    Brazil
    MS-Off Ver
    2014
    Posts
    20

    format big numbers

    why does my excel format this way, since the formatting when I open the text is different?

    1.PNG

    2.PNG

    I already tried all kinds of formatting there to test.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: format big numbers

    If you want to see all the digits, you'll need to format those fields as text.

    Something like this in a larger scale:

    Sub FormatBigNos(): Dim S As String
    ActiveCell.NumberFormat = "@"
    S = CStr(ActiveCell): ActiveCell = S
    End Sub
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: format big numbers

    @nlyrk0.... Format the cells as Number with zero decimal places.

    It appears that you are opening or importing a CSV file. In that case, Excel assigns the General format to the cells. With the General format, numbers with more than 11 digits are displayed in Scientific form (e.g. 1.23457E+14). But that is just how they appear, as is true for all formatting options.

    Since your numbers have 13 or 14 digits, no precision is lost. So you can just change the format to Number with zero decimal places.

    However, if you ever see E+15 or larger, precision is lost.

    In that case, you must be sure that Excel interprets the data as text when the data is input.

    Changing the format afterwards does not correct the problem. Digits to the right of the first 15 digits are replaced with zeros.

    In order to ensure that Excel interprets the data as text when the data is input, import the CSV file instead of opening it directly. And in the last menu of the import wizard, change the column format to Text.

    IMHO, this is a good thing to do even if the data has 15 or fewer digits. The point is: they are "identifiers", not "numbers". They are not to be treated as numbers, even if they look like numbers.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: format big numbers

    You'e welcome and thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Negative Numbers in Red Brackets, Positive Numbers in Accounting Format
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-24-2015, 08:29 AM
  2. [SOLVED] Change imported numbers in text format to numbers
    By navialivad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2014, 02:30 PM
  3. Replies: 8
    Last Post: 06-28-2014, 03:26 PM
  4. Need Numbers to Concatenate to Number Format, Not Text Format
    By DJH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2014, 01:01 AM
  5. [SOLVED] I want telephone numbers and time of any format to specific format
    By Latha Mani in forum Excel General
    Replies: 16
    Last Post: 01-11-2014, 09:58 AM
  6. Changing numbers from text format to number format
    By garden_gnome in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 12:48 PM
  7. [SOLVED] excel numbers in general format i cant add cant change format
    By claude in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2006, 02:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1