+ Reply to Thread
Results 1 to 4 of 4

Macro to convert scientific notation to correct text format

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    CANADA
    MS-Off Ver
    2010
    Posts
    44

    Macro to convert scientific notation to correct text format

    Hi,

    I have the following excel file that is downloaded from the site below.

    The file has codes in column A that are being converted to scientific notation due to the code format. The codes should be 0E1, 1E0, 2E0 and so forth but they end up looking like format below.

    0.00E+00
    0.00E+00
    0.00E+00
    0.00E+00
    0.00E+00
    0.00E+00
    0.00E+00
    0.00E+00
    0.00E+00
    0.00E+00
    1.00E+00
    1.00E+01
    1.00E+02
    1.00E+03
    1.00E+04
    1.00E+05
    1.00E+06
    1.00E+07
    1.00E+08
    1.00E+09
    2.00E+00
    2.00E+01
    2.00E+02
    2.00E+03
    2.00E+04
    2.00E+05
    2.00E+06
    2.00E+07
    2.00E+08
    2.00E+09

    I'm currently manually correcting these, is there a formula that can check the cell/data and convert it to the correct format in column I?
    Last edited by exceleratevba; 09-21-2020 at 07:09 PM.

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

    Re: Macro to convert scientific notation to correct text format

    Instead of opening the file,

    Data > Get External Data > From Text

    Select the file, Tick delimited, select comma as the delimiter, and import col A as text.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-07-2017
    Location
    CANADA
    MS-Off Ver
    2010
    Posts
    44

    Re: Macro to convert scientific notation to correct text format

    Awesome, this did the job.

    Thanks!

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

    Re: Macro to convert scientific notation to correct text format

    You're welcome.

+ 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. Scientific Notation(text) and Rounding
    By Kalithro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2016, 06:09 AM
  2. Disabling scientific notation auto-correct
    By Ouka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2013, 03:25 AM
  3. 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
  4. Convert to Scientific notation
    By fabb2004 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-10-2010, 11:59 AM
  5. [SOLVED] Custom format for scientific notation
    By Melinda in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-22-2005, 12:00 PM
  6. Using scientific notation in TEXT() function
    By boopathi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-10-2005, 04:05 PM
  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