+ Reply to Thread
Results 1 to 12 of 12

Formula that displays the power number of a scientific notation?

  1. #1
    Registered User
    Join Date
    05-24-2019
    Location
    USA
    MS-Off Ver
    MS Office Professional Plus
    Posts
    33

    Formula that displays the power number of a scientific notation?

    Pretty simple question but can't find out the solution. Say I have a number in scientific notation, like;

    1.23E+04

    I need a formula for that would display the "4" only, which is the power.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,850

    Re: Formula that displays the power number of a scientific notation?

    Shouldn't that be common log of the number, then round down to the nearest integer? =ROUNDDOWN(LOG10(value),0)
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Formula that displays the power number of a scientific notation?

    see attachment

    Edit: with formula MrShorty

    Edit2: @AliGW : as I use a dutch version, the formula isn't ok, the dutch version is
    Please Login or Register  to view this content.
    English version after macro-recording, not 100%
    Attached Files Attached Files
    Last edited by bsalv; 09-24-2021 at 05:55 PM.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,407

    Re: Formula that displays the power number of a scientific notation?

    @bsalv

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    05-24-2019
    Location
    USA
    MS-Off Ver
    MS Office Professional Plus
    Posts
    33

    Re: Formula that displays the power number of a scientific notation?

    Thanks! It works for almost everything but not those with a negative sign...

  6. #6
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Formula that displays the power number of a scientific notation?

    .. .. .. .. ..
    Last edited by bsalv; 09-25-2021 at 06:10 AM.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,850

    Re: Formula that displays the power number of a scientific notation?

    Your only example was for a number greater than 10, so I did not account for different behavior. ROUNDDOWN() always rounds down. INT(), on the other hand, always rounds towards 0, which, I think, is the behavior you want =INT(LOG10(value)).

  8. #8
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Formula that displays the power number of a scientific notation?

    .. .. .. .. ..
    Last edited by bsalv; 09-25-2021 at 06:08 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,407

    Re: Formula that displays the power number of a scientific notation?

    @bsalv

    Try bookmarking this to use to translate formulae from Dutch to English: https://en.excel-translator.de/

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Formula that displays the power number of a scientific notation?

    Excel INT function translation to Ducth is INTEGER, not GEHEEL. GEHEEL = TRUNC in English.

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Formula that displays the power number of a scientific notation?

    Oh... Ali's post #9 came in while I was typing.

  12. #12
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,418

    Re: Formula that displays the power number of a scientific notation?

    As long as all the numbers the formula will be applied against are always displayed in E-notation, you can use this simple formula...

    =0+MID(TEXT(A2,"#E+000"),3,4)

    Note: Excel will try to be "helpful" and set the cell format to Scientific so you will have to manually set it to General after you enter the formula into its cell.

    EDIT NOTE:
    =====================
    You could also write this formula like this...
    Please Login or Register  to view this content.
    which I note is similar to what bsalv posted in Message #3 except his formula has (1) a syntax error - he added a closing square bracket where none is needed, (2) returns text instead of a number and (3) would not handle up to the maximum possible exponent as written.
    Last edited by Rick Rothstein; 09-25-2021 at 03:44 AM.

+ 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. CSV: Long Number Scientific Notation issue
    By mourt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2019, 02:46 AM
  2. How to turn a scientific notation E number into a string of text?
    By bigscientist in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2019, 06:47 PM
  3. Replies: 1
    Last Post: 06-09-2015, 01:44 AM
  4. Formula should evaluate to zero; showing scientific notation instead
    By yay_excel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2013, 09:34 PM
  5. Replies: 3
    Last Post: 03-08-2013, 12:51 PM
  6. Custom Number format to get scientific notation and percent
    By lwflip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2012, 09:53 AM
  7. convert scientific notation to a number
    By Peter in forum Excel General
    Replies: 1
    Last Post: 01-04-2005, 04:06 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