+ Reply to Thread
Results 1 to 4 of 4

Converting #'s away from scientific excel format

  1. #1
    Forum Contributor
    Join Date
    02-26-2010
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    164

    Converting #'s away from scientific excel format

    This is a two part question.

    Original issue was I'm trying to use V look up to map UPC #'s to product ID's. I figured that out by using the substitute formula removing the "-".

    The problem I have now is:

    1. Removing leading ZERO.
    2. Getting it to # that will work for V Look up but every time I convert it goes to that scientific number.

    I attached what I was working on. Column E & F would be the new data from Column C & D but in a format that will work for V Look up.

    Thank you
    Attached Files Attached Files
    Last edited by Statz; 08-30-2018 at 09:57 AM.

  2. #2
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: Converting #'s away from scientific excel format

    Maybe wrap your SUBSTITUE() in VALUE(), then highlight those columns, format cells as Number with "0" decimals and no 1000 separator?

    =VALUE(SUBSTITUTE(A2,"-",""))

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Converting #'s away from scientific excel format

    The issues your facing have to do with numbers vs text and what data type the functions your using return.

    For example SUBSTITUTE in C & D are returning text values despite the cell being formatted as number (go ahead and toss =ISTEXT(C2) in another cell and see for yourself). Some function return text and others numbers, regardless of the values passed to them.

    SUBSTITUTE is atext function, it returns text even if what it returns is a numeric digit or sequence of digits. Straight from the help for the function: "Substitutes new_text for old_text in a text string. Use SUBSTITUTE when you want to replace specific text in a text string; use REPLACE when you want to replace any text that occurs in a specific location in a text string."

    Lookups generally work off whatever data types are used. So in a VLOOKUP for example the lookup value could be a numeric type and the range its looking in could contain text values, thus no match. For lookups you need things in like terms, that is to say all numeric or all text.

    So you can either ensure the lookup value is a text entry to match the text values you have or change the results in your table_array to contain numeric data to match to a numeric lookup_value.

    There are tricks to converting a digit or sequence of digits stored as text to number values. 1 possible solution is to multiple by 1. Any number * 1 = the number, and Excel is smart enough to know you cant multiple text so it effectively converts the number stored as text to numeric values (if the numeric sequence is a valid number).

    Ex:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Another would be to use something like VALUE function provided.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  4. #4
    Forum Contributor
    Join Date
    02-26-2010
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    164

    Re: Converting #'s away from scientific excel format

    Thank you!!

+ 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. Excel Automatically Converting Hex Numbers to Scientific
    By ChicagoTRS in forum Excel General
    Replies: 8
    Last Post: 12-01-2016, 02:08 PM
  2. Replies: 2
    Last Post: 06-02-2015, 08:42 AM
  3. Replies: 4
    Last Post: 12-11-2012, 01:12 PM
  4. Scientific format
    By ElmerS in forum Excel General
    Replies: 5
    Last Post: 07-18-2010, 02:56 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. Stop scientific format
    By rjay in forum Excel General
    Replies: 3
    Last Post: 07-01-2005, 07:16 PM
  7. [SOLVED] csv converting numbers to scientific format
    By JR in forum Excel General
    Replies: 7
    Last Post: 06-15-2005, 08:05 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