+ Reply to Thread
Results 1 to 5 of 5

=Left function changing to decimal?

  1. #1
    Registered User
    Join Date
    07-11-2016
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    2

    =Left function changing to decimal?

    A1
    168153308099000000000
    B1
    1.6815

    The formula for B1 is =LEFT(A1,LEN(A1)-11). For some reason B1 is showing 1.6815 instead of 1681533080.

    I have a long list with the same formula and every other cell is working properly, I know it has to do something with the length of the cell because the number in A1 is so long. Any ideas on how to fix this issue?

    much appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: =Left function changing to decimal?

    Hi, welcome to teh forum

    excel only allows 15 digits for numbers, what you have is 21 characters lomng, so excel converts that to 1.6815330809900000E+20
    if you use your formula on that, then the answer you get is correct

    what exactly are you trying to do?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: =Left function changing to decimal?

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: =Left function changing to decimal?

    Would it work if you brought the number down by a billion?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Good one, AlKey

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,176

    Re: =Left function changing to decimal?

    Or try this ...

    =TRUNC(A1/10^11)

+ 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. Isolate characters to the left of a decimal point
    By CA_needing_help in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2016, 01:53 AM
  2. [SOLVED] Left of decimal with numerical and text values
    By Bearack in forum Excel General
    Replies: 5
    Last Post: 09-20-2012, 12:07 PM
  3. Display only the number from left of decimal point.
    By arthurz11 in forum Excel General
    Replies: 9
    Last Post: 10-29-2011, 03:20 AM
  4. Insert a decimal point 2 characters to the left
    By ClikClak in forum Excel General
    Replies: 2
    Last Post: 09-01-2010, 11:54 AM
  5. Lose digits to left of decimal?
    By SentientParadox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2009, 11:47 PM
  6. [SOLVED] I need to enter > 10 chars to left of decimal and > 5 to right.
    By Andre in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-05-2006, 11:30 PM
  7. [SOLVED] Why does the decimal move to the left on all numbers?
    By ajbromwell in forum Excel General
    Replies: 2
    Last Post: 06-05-2005, 09:40 PM

Tags for this Thread

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