We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel query

Options
Gers
Gers Posts: 13,135 Forumite
Part of the Furniture 10,000 Posts Photogenic Name Dropper
I want to input numbers such as 17099131256910302 - it shows variously as:

9131256910302.00 when formatted as a number to 0 decimal places

1.70913E+15 when formatted as general or text


How can I get this number to show correctly please?
«13

Comments

  • Lorian
    Lorian Posts: 6,229 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    right-click cells chose "format cells" and select "number"
  • Format the cell as Text - Excel has a 15 digit numeric precision limitation so you won't be able to input numbers as true numeric values beyond this. Be aware that this does mean the value entered is a textual representation of a number, however.
  • You could put do '1234567890000 as the number
  • Gers
    Gers Posts: 13,135 Forumite
    Part of the Furniture 10,000 Posts Photogenic Name Dropper
    Lorian wrote: »
    right-click cells chose "format cells" and select "number"

    It's already in as a number!
    Format the cell as Text - Excel has a 15 digit numeric precision limitation so you won't be able to input numbers as true numeric values beyond this. Be aware that this does mean the value entered is a textual representation of a number, however.

    Now, the 15 digit limit makes sense, thanks!
    You could put do '1234567890000 as the number

    It's in as a number!
  • Gers wrote: »
    I want to input numbers such as 17099131256910302 - it shows ...

    1.70913E+15 when formatted as general or text


    That's worrying. It should be 1.70991E+16
  • Heedtheadvice
    Heedtheadvice Posts: 2,765 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    edited 15 December 2018 at 6:26PM
    Quite right Mark!


    I also wonder why, Gers, you want such high precision. What are you trying to achieve or was that just an example?


    If it is just that you wish to display it more or less correctly (up to the 15 digit precision) then format the cell as Custom (there should be examples under that format style in the menu for it) and type the format as 0 i.e just a row of zeros. That will give your 17 digits with no leading zeros and the last two characters with be rounded off to the 15 digit precision showing as 00 rather than 02.


    If you wanted to show leading zeros then increase the custom number of zeros to those desired. Other examples shown in the list such as #,##0.000
  • Gers
    Gers Posts: 13,135 Forumite
    Part of the Furniture 10,000 Posts Photogenic Name Dropper
    edited 15 December 2018 at 6:19PM
    Quite right Mark!


    I also wonder why, Gers, you want such high precision. What are you trying to achieve or was that just an example?

    It's the number of a certificate.

    170913125691 0302 Wee space between 1 and 0 shows it correctly
    1709131256910300 Number - changes the final digit to 0
    1.70913E+15 Text No idea what this is!
  • Carrot007
    Carrot007 Posts: 4,534 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Gers wrote: »
    It's in as a number!


    Exactly what was meant. The prefixing ' makes it text. I have a macro to add such to the current column for situations like this.
  • Carrot007
    Carrot007 Posts: 4,534 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Gers wrote: »
    It's the number of a certificate.


    So 100% no need to be a number and should be text.


    Numbers are number so you can calculate on them. This is just a string whihc happens to be numerical and excel tries to double guess what you want and gets it wrong.
  • JP1978
    JP1978 Posts: 527 Forumite
    Adding ' before the number as above will fix it - just like when you try and enter a phone number 01782123456, excel will format it as 1782123456 - by using the ' before the 0 it will display as intended.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.8K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.8K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.8K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.