+ Reply to Thread
Results 1 to 6 of 6

How to Stop Excel from Displaying Text as Scientific Notation

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    How to Stop Excel from Displaying Text as Scientific Notation

    Hi,

    I have a column of SKU numbers in a spreadsheet that need to be stored as text. The problem is that Excel keeps converting this column to scientific notation so when I import it into Access, I can't query on the SKU field.

    This is a huge worksheet with > 1 million records so it must be a solution that suitable for this situation.

    Thanks for any advice.

    Lyndy

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: How to Stop Excel from Displaying Text as Scientific Notation

    Hi,

    you could convert it to text via

    =TEXT(A2,"?")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: How to Stop Excel from Displaying Text as Scientific Notation

    Thanks for your reply.

    I have thought of that but the SKU numbers are not consistently the same length. Some have 14; some have 16 or 18. Is there any way tell Excel that I want to covert the contents of cell A2?

    Thanks,
    Lyndy

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: How to Stop Excel from Displaying Text as Scientific Notation

    Quote Originally Posted by lyndy256 View Post
    I have thought of that but the SKU numbers are not consistently the same length. Some have 14; some have 16 or 18. Is there any way tell Excel that I want to covert the contents of cell A2?
    If the SKU "numbers" (IDs) might have more than 15 digits, it is important that they are entered into Excel as text, not numbers. Otherwise, Excel replaces the excess digits on the left with zeros. Obviously, that changes the SKU ID, and no amount of post-processing (e.g. using TEXT) will correct that.

    I am not familiar with the Access-to-Excel procedure. Does it automatically go into Excel? Or does the Access data really go into a CSV file? Do you have the option to save the Access data into an XML file instead?

    If the data goes into a text file (other than XML), and if the SKU IDs are in columns by themselves, not mixed with other truly numeric data, you need to import the text file instead of opening it directly in Excel.

    Start Excel -- for example, click on the Excel icon, not the CSV file icon -- then click on Data, Get External Data, From Text. In Step 3, select the SKU ID column under "Data Previous", and select Text under "Column Data Format".

  5. #5
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: How to Stop Excel from Displaying Text as Scientific Notation

    Thanks for your reply.

    I should have mentioned that I received the data in txt format and have imported into Excel as you describe.

    You can import most types of data into Access, including Excel and text.

    I also tried directly importing the text file but I get a lot of errors and is not as smooth as importing Excel data.

    Ultimately, my goal is to get the tables with the SKU ids in text format all appended in Access.

    The issue of scientific notation seems to be a vexing and common issue in Excel.

    Lyndy

  6. #6
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: How to Stop Excel from Displaying Text as Scientific Notation

    Quote Originally Posted by lyndy256 View Post
    I have a column of SKU numbers in a spreadsheet that need to be stored as text. The problem is that Excel keeps converting this column to scientific notation so when I import it into Access, I can't query on the SKU field.
    Quote Originally Posted by lyndy256 View Post
    Ultimately, my goal is to get the tables with the SKU ids in text format all appended in Access. The issue of scientific notation seems to be a vexing and common issue in Excel.
    I'm sorry. Based on your title and your second comment, I thought you were concerned about importing SKU IDs into Excel. But your original posting makes it clear that you are concerned exporting Excel data as text and importing the text into Access. Right?

    Your assertions are incorrect. If the SKU IDs are displayed correctly in Excel to begin with, that is how they are appear in the text file created by Excel. In other words, Excel writes cell values exactly as they appear in the cells. Open the text file in Notepad to confirm.

    The problem of displaying them in Scientific form in Excel arises only when you (re)open the text file in Excel directly.

    And if you save the SKU IDs into a text file, they are "stored as text" by definition.

    If you are having problems importing the text file created by Excel into Access, that seems to be an Access problem, not an Excel problem. In that case, you are posting to the wrong forum.

    On the other hand, if Access always interprets unquoted digits as numbers, like Excel does [1], and Access does not have any way to force it to interpret the data as text, like Excel does, arguably you might perceive the problem as: how to coerce Excel into putting quotes around text cell values when they are written to a text file?

    The answer is: you cannot. You would have to write a VBA procedure to do that.

    Forgive me if I'm still misunderstanding the problem.


    -----
    [1] Actually, Excel interprets digits as numbers, whether or not they are quoted. Access, too?
    Last edited by joeu2004; 11-17-2015 at 02:07 PM. Reason: footnote 1

+ 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. Replies: 8
    Last Post: 08-05-2015, 02:36 PM
  2. [SOLVED] Stop Scientific Notation in VBA
    By JimmySmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2012, 02:12 PM
  3. [SOLVED] Import text file from Excel converts cell value into scientific notation in error
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2012, 02:03 PM
  4. Converting Scientific Notation to text strings
    By JohnnyBGood in forum Excel General
    Replies: 1
    Last Post: 05-14-2009, 03:43 PM
  5. Replies: 3
    Last Post: 01-26-2009, 07:43 PM
  6. change scientific notation (exponential) back to text
    By GEORGIA in forum Excel General
    Replies: 1
    Last Post: 04-06-2006, 11:30 AM
  7. Using scientific notation in TEXT() function
    By boopathi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-10-2005, 04:05 PM

Tags for this Thread

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