+ Reply to Thread
Results 1 to 4 of 4

Problem with converting scientific notation as text to numbers

  1. #1
    Registered User
    Join Date
    02-23-2023
    Location
    Hamburg
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Problem with converting scientific notation as text to numbers

    Hello everyone,
    I'm really struggling to convert this data I've extracted via a PDF to Excel conversion tool from texts to numeric values, especially those who are displayed in exponential notation. I'm not totally new to Excel, but I use it only occasionally and I never encountered such formatting.

    Some displayed numbers have negative values as well negative exponents, but when I click on the cell, the minus signs are nowhere to be found in the formula bar. I attached a picture to show what exactly I mean by that.
    I have to delete the E, the first and last number 2, write them again with the minus signs at the right places, then it will make the text convertible to a number.
    Furthermore, I attached the Excel file with the hope of getting some concrete help.

    Thanks in advance.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Problem with converting scientific notation as text to numbers

    something like this?
    Parameter Einheit A1-A3 A4 A5 B1 C1 C2 C3 D
    HWD [kg]
    25000
    3310000
    129000000
    0
    2620000
    102000
    2300000
    3580000
    NHWD [kg]
    40.1
    0
    0.01
    0
    0
    0.01
    0
    -47
    RWD [kg]
    370
    797000
    1260
    0
    633000
    24200
    400
    -0.0207
    CRU [kg]
    0
    0
    0
    0
    0
    0
    0
    0
    MFR [kg]
    0
    0
    0
    0
    0
    0
    2400
    0
    MER [kg]
    0
    0
    0
    0
    0
    0
    0
    0
    EEE [MJ]
    0
    0
    0
    0
    0
    0
    0
    0
    EET [MJ]
    0
    0
    0
    0
    0
    0
    0
    0
    Last edited by sandy666; 02-23-2023 at 12:22 PM.

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

    Re: Problem with converting scientific notation as text to numbers

    This sort of thing often turns out to be an unexpected character somewhere in the text string. I debugged by:

    1) =LEN(C6) to see if Excel is seeing more characters than I can see. In this case, the result is the expected length.
    2) With that, I check the code number for each character in the text string =CODE(MID(J6,ROW(C1),1)) [copy down to see all characters]. What I quickly notice is that the hyphen characters used for "negative" are code 173 hyphen characters and not the the usual code 45 hyphen character. Excel only recognizes 45 hyphen characters to indicate negative numbers, so Excel cannot convert these text strings to numbers.

    A quick Find/Replace command (Find what? ­[alt-0173] Replace with? -) quickly replaces the offending hyphen character with the appropriate hyphen character, and Excel automatically converts the text to number.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    02-23-2023
    Location
    Hamburg
    MS-Off Ver
    Microsoft 365
    Posts
    2

    Re: Problem with converting scientific notation as text to numbers

    Quote Originally Posted by MrShorty View Post
    This sort of thing often turns out to be an unexpected character somewhere in the text string. I debugged by:

    1) =LEN(C6) to see if Excel is seeing more characters than I can see. In this case, the result is the expected length.
    2) With that, I check the code number for each character in the text string =CODE(MID(J6,ROW(C1),1)) [copy down to see all characters]. What I quickly notice is that the hyphen characters used for "negative" are code 173 hyphen characters and not the the usual code 45 hyphen character. Excel only recognizes 45 hyphen characters to indicate negative numbers, so Excel cannot convert these text strings to numbers.

    A quick Find/Replace command (Find what? ­[alt-0173] Replace with? -) quickly replaces the offending hyphen character with the appropriate hyphen character, and Excel automatically converts the text to number.
    You identified the problem correctly, thank you very much! Had just to find and replace the hyphen characters to solve it.

    Cheers

+ 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. [SOLVED] Issue with Excel converting value to scientific notation
    By kermit_d_frog in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2019, 09:55 AM
  2. Replies: 8
    Last Post: 08-05-2015, 02:36 PM
  3. [SOLVED] Problem with scientific notation in VBA
    By aprimak in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-15-2015, 11:03 PM
  4. [SOLVED] Problem with scientific notation
    By hinkwale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2015, 06:11 PM
  5. Converting Scientific Notation to text strings
    By JohnnyBGood in forum Excel General
    Replies: 1
    Last Post: 05-14-2009, 03:43 PM
  6. problem with scientific notation
    By HydroChris in forum Excel General
    Replies: 3
    Last Post: 05-24-2007, 01:24 PM
  7. Problem with scientific notation.
    By ericsemail in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-23-2006, 02:04 AM

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