+ Reply to Thread
Results 1 to 9 of 9

Scientific notation - Fixed exponent, fixed significant digits

  1. #1
    Registered User
    Join Date
    06-06-2006
    Location
    English(UK)
    MS-Off Ver
    2019
    Posts
    93

    Scientific notation - Fixed exponent, fixed significant digits

    I'm looking for a way to format a cell in scientific notation such that it has a fixed exponent and fixed amount of significant digits:

    0.0052 5.20e-3
    0.012 12.0e-3
    0.00089 0.89e-3

    What format can I use to accomplish this?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Scientific notation - Fixed exponent, fixed significant digits

    So how would the number 12 appear?

    or 0.0000001?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: Scientific notation - Fixed exponent, fixed significant digits

    Try this custom number format:

    #00E+00

  4. #4
    Registered User
    Join Date
    06-06-2006
    Location
    English(UK)
    MS-Off Ver
    2019
    Posts
    93

    Re: Scientific notation - Fixed exponent, fixed significant digits

    Quote Originally Posted by shg View Post
    So how would the number 12 appear?

    or 0.0000001?
    Ideally there would not be such numbers. But in such edge cases I'd prioritize the fixed exponent.
    12 12000e-3
    0.0000001 0.00e-3

    Quote Originally Posted by zbor View Post
    Try this custom number format:

    #00E+00
    Using this:
    0.0052 = 05E-3

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Scientific notation - Fixed exponent, fixed significant digits

    There's no way to tell how many significant digits there are in 120000E-3 -- it's somewhere between 2 and 6.

    The only way to show three significant digits is to format as 0.00E+0 and let the exponent vary.

    EDIT: Also, 0.89E-3 only has two significant digits.
    Last edited by shg; 11-22-2017 at 03:04 PM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Scientific notation - Fixed exponent, fixed significant digits

    I think this is as close as you'll get, and the result is text, and the value is rounded to the significant digits:

    A
    B
    C
    2
    0.000 012 345
    0.012E-3
    B2: =TEXT(TEXT(1000*A2, "0.00E+0"), LOOKUP(--TEXT(1000*A2, "0.00E+0")/1000, {0,10,100,1000}/10000, {"0.000","0.00","0.0","0"})) & "E-3"
    3
    0.000 123 450
    0.123E-3
    4
    0.001 234 500
    1.23E-3
    5
    0.012 345 000
    12.3E-3
    6
    0.123 450 000
    123E-3
    7
    1.234 500 000
    1230E-3
    8
    12.345 000 000
    12300E-3
    9
    123.450 000 000
    123000E-3
    Last edited by shg; 11-22-2017 at 03:28 PM.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,369

    Re: Scientific notation - Fixed exponent, fixed significant digits

    If it helps, I have been wishing for something like this for a long time (this is from 2005: https://www.excelforum.com/excel-gen...ng-format.html ). Something text based like shg has proposed is as close as I have got, and I generally don't like storing numbers as text.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Registered User
    Join Date
    06-06-2006
    Location
    English(UK)
    MS-Off Ver
    2019
    Posts
    93

    Re: Scientific notation - Fixed exponent, fixed significant digits

    Good point. I'll settle for fixed exponent then:
    ##0.00E+0

    Oh, btw, is it possible to use the small "e"?
    Not terribly relevant, but I like it better.
    Last edited by martix; 11-22-2017 at 07:11 PM.

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Scientific notation - Fixed exponent, fixed significant digits

    is it possible to use the small "e"?
    Wrap it in LOWER()

+ 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. Fixed exponent in scientific notation
    By krusader23 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 10-25-2019, 04:19 AM
  2. Display scientific notation in fixed exponent units
    By woebegone1997 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2013, 12:23 PM
  3. [SOLVED] Fixed exponent while using scientific notation.
    By AATOP in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-03-2012, 09:16 PM
  4. Loan Calculator with Terms based on Fixed Payment not a fixed time frame.
    By cc4digital in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2012, 04:49 AM
  5. Replies: 2
    Last Post: 11-22-2011, 12:33 PM
  6. Replies: 0
    Last Post: 05-21-2011, 05:32 AM
  7. Replies: 1
    Last Post: 05-16-2006, 01:20 PM

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