+ Reply to Thread
Results 1 to 11 of 11

Fixed exponent in scientific notation

Hybrid View

  1. #1
    Registered User
    Join Date
    11-27-2009
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Fixed exponent in scientific notation

    Hi, I want to display two values with the scientific notation in a way, that both of the values have the same fixed exponent value, i.e.:
    x=2345,5
    y=0,897
    Should be displayed as:
    x=2,3455e3
    y=0,000897e3

    Any suggestions?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Fixed exponent in scientific notation

    Hi,

    Just format them using the scientific notation option.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    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: Fixed exponent in scientific notation

    Welcome to the forum.

    Try formatting as 0.0#####,"e3" adapted for your regional settings (note that it includes both a decimal and a comma)
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    11-27-2009
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Fixed exponent in scientific notation

    Quote Originally Posted by shg View Post
    Try formatting as 0.0#####,"e3" adapted for your regional settings (note that it includes both a decimal and a comma)
    Let's say the number x=0,0234
    When I format the cell using notation 0.0#### the value is of course calculated right,
    but when I use something like this: 0.0#####,"e3" the original value in the cell and the processed value aren't equal: 0.0234!=0,0234e3.

    This doesn't solve my problem. What I want to do with the two values is that they should be displayed as:
    xe(fixed exponent)
    ye(fixed exponent),
    no matter, what the actual x and y values are. When I format cells using the engineering notation I still get something like this:
    x=0,001029628
    y=0,00008481
    After processing:
    x=1,030e-03
    y=84,810e-06

    I want the numbers marked as red in the above example to be equal, no matter what x and y are.
    If somebody has a macro dealing with this I would be glad to see it (I know some programming languages, but not the VBA).

    Cheers.

  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: Fixed exponent in scientific notation

    Here's what I get with my suggestion using US regional settings:
          ---A--- ----B-----
      1   42499.5  42.4995e3
      2   16126.6  16.1266e3
      3   5636.81  5.63681e3
      4   2255.41  2.25541e3
      5   564.627 0.564627e3
      6   361.825 0.361825e3
      7   3.99228 0.003992e3
      8   2.96033  0.00296e3
      9   1.79814 0.001798e3
    Not what you want?
    Last edited by shg; 11-27-2009 at 09:00 PM.

  6. #6
    Registered User
    Join Date
    11-27-2009
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Fixed exponent in scientific notation

    I want this exactly! Thank you!
    I guess I've input your formula wrong, because I use european (polish) regional settings.
    But even after reading your last post I'm still unable to "format" the formula the right way.
    In Europe, we've got a comma and not a dot in the value representation, so I've figured out I have to change that in your script. But I don't know what sing should I use for: 0,00####,"e3".
    And another question: does this thing "e3" is something like a formatting flag for a printf() function in c++?

  7. #7
    Registered User
    Join Date
    06-01-2013
    Location
    Peru
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Fixed exponent in scientific notation

    If you want complete control over the displayed exponent then you might find this useful:

    formula:
    your data desired exponent fixed exponent format
    1.00E-08 -5 =TEXT(A1/10^$B$1,"#,0.00###")&"E"&$B$1
    1.00E+03 =TEXT(A2/10^$B$1,"#,0.00###")&"E"&$B$1

    displayed result:
    your data desired exponent fixed exponent format
    1.00E-08 -5 0.001E-5
    1.00E+03 100,000,000.00E-5

    The formatted results can be used in calculations without modification.
    Last edited by here to help; 06-03-2013 at 11:12 AM.

  8. #8
    Registered User
    Join Date
    10-25-2019
    Location
    Europe
    MS-Off Ver
    MS Office 2016
    Posts
    1

    Re: Fixed exponent in scientific notation

    Hi all,
    6 years later I do have the same problem. I'm using Excel 2016 German language edition and did not succeed with 0.0#####,e3 either.
    While playing around with the formula I more or less accidentally found a solultion that worked for me.
    Considering that the decimal separator in Europe is the comma and not the point and that in my case I tried to display big numerical values like 1.036.372.818,17 as 1,04E+09 I used 0,00..."E+09"
    Also maybe something has changed during time in Excel but for me not # but . worked well.

+ 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