+ Reply to Thread
Results 1 to 6 of 6

value "37e0" is being automatically reformatted upon import to excel

Hybrid View

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    2

    value "37e0" is being automatically reformatted upon import to excel

    Hello,

    I am an intermediate user of excel currently working with the 2007 version. I am performing some analysis work which involves heavy use of a long list of 4 digit values which can be a blend of letters and numbers, for example:

    89SD
    37K0
    X425
    37E0
    1234
    89SD
    X123
    6901
    4150

    I am having various problems working with the list in excel, especially when using vlookups, however the problem I would like assistance with here is as follows....

    I have built a report which involves exporting a subset of data from our database to excel and then formatting the data with a pivot table, I am keen to minimize manual intervention to make life easier for future users. The following value is giving me problems:

    37E0

    If I put it into a worksheet along with all my other values, it gets changed to:

    3.70E+01

    If I reformat the list as general, number or text the value is changed to:

    37

    I can manually format the value as text and then add the 'E0' back in, but I would like to know if this step is avoidable. Is there any way of preventing excel from changing this value when it is first entered?

    Many thanks in advance,

    Jon
    Last edited by jontuplin; 01-18-2012 at 11:50 AM. Reason: bad title

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: 37e0

    Welcome to the forum.

    How does the data get entered into your sheet in the first place? Is it in a text file that you import?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,791

    Re: 37e0

    Have you tried to formate cells as text before importing your database values?

    Alf

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,063

    Re: 37e0

    Please read and adhere to these simple rules!

    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more hours have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.
    Never use Merged Cells in Excel

  5. #5
    Registered User
    Join Date
    01-10-2012
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: value "37e0" is being automatically reformatted upon import to excel

    Hi again and thanks for the replies.

    I've tried importing the data a few different ways; with the excel import "From Text" feature, directly from the db tool I use (toad) and with cut & paste. None of these help. And yes - I've tried formatting as text in Excel, this results in the scientific number i mention above.

    However since posting my query I also found this: http://support.microsoft.com/kb/214233
    I was hoping there might be a way to tell excel that I never want to format such values automatically, seems that is not the case and I will just have to live with it, never mind!

  6. #6
    Registered User
    Join Date
    01-03-2012
    Location
    Baghdad, Iraq
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: value "37e0" is being automatically reformatted upon import to excel

    Hi;

    You should format cells in your worksheet as "TEXT" before importing data to it
    Regards

    Khalid Taha

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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