+ Reply to Thread
Results 1 to 10 of 10

Display only the number from left of decimal point.

  1. #1
    Registered User
    Join Date
    11-12-2007
    Posts
    16

    Display only the number from left of decimal point.

    Hello,
    I want to display only the number from the left of the decimal point from a scientific notation number. Example:

    Cell A1:
    1.834E10 Cell B1: 1 Answer

    7.123E-12 Cell B1: 7 Answer

    3.792E38 Cell B1: 3 Answer

    Which ever scientific notation I enter in Cell A1, The formula in Cell B1 will only display the left most digit from the decimal point.

    I tried using the Left function and it work, however when I want to use that number in Cell B1 into another formula it did not work because that number is consider as a text not a number. So the Left function is not the one to use.

    So how do I write that formula in Cell B1 to display the left most digit from the decimal point from a scientific notation number in Cell A1 and still be a number and not a text?

    Sincerely,
    Arthur
    Last edited by arthurz11; 10-28-2011 at 06:51 PM. Reason: The number were too close and had to retype Cell B1

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Display only the number from left of decimal point.

    Please Login or Register  to view this content.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Display only the number from left of decimal point.

    Try:

    =--LEFT(A1,1)

    That's equals, minus sign, minus sign, open bracket, etc


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Display only the number from left of decimal point.

    TMShucks - thanks for the shortcut! I've been used to using -- for coercion in SUMPRODUCT arrays, but it never occurred to me to use it elsewhere!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Display only the number from left of decimal point.

    @Tom: you're welcome. And thanks for the rep
    Last edited by TMS; 10-28-2011 at 06:15 PM. Reason: Rep

  6. #6
    Registered User
    Join Date
    11-12-2007
    Posts
    16

    Re: Display only the number from left of decimal point.

    Thanks for all you guys/gals who helped!!! Happy Halloween!!!

  7. #7
    Registered User
    Join Date
    11-12-2007
    Posts
    16

    Re: Display only the number from left of decimal point.

    Thank you soooo much for you help....Happy Halloween!!!

  8. #8
    Registered User
    Join Date
    08-21-2011
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Display only the number from left of decimal point.

    Doesn't not require 1 there, since you are looking for the 1st digit,

    =LEFT(A1)+0

  9. #9
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Display only the number from left of decimal point.

    If Excel interprets the scientific notation properly, and converts the text notation to a number in the cell, the second number will return a 0 from the solutions presented (instead of 7), so here's another approach with that in mind:

    Please Login or Register  to view this content.
    Cheers,
    Last edited by ConneXionLost; 10-28-2011 at 11:16 PM.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Display only the number from left of decimal point.

    @ConneXionLost: good spot. I didn't notice that the second would be a very small number

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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