+ Reply to Thread
Results 1 to 6 of 6

How to stop excel converting numbers into time

  1. #1
    Registered User
    Join Date
    10-26-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2016
    Posts
    56

    How to stop excel converting numbers into time

    Before it's said, I've already tried making the sheet as text.

    I'm trying to import data from a web page, every column comes through as text except for cells that have numbers formatted like 1:28.586 which excel insists on turning that in a Custom cell for 12:01:29 AM... I don't want that!

    In the import settings I have already tried selecting "Disable date recognition" but that doesn't help. All cells on the sheet are set as text before the import, and that doesn't help. Is there any other option to fix this?

    Thank you.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to stop excel converting numbers into time

    Here's a thought....
    I think Excel only converts numeric data if the destination cell(s) are formatted as General or Text.
    So, before importing the data, convert the destination cells to any of the non-General, non-Text formats.

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    10-26-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2016
    Posts
    56

    Re: How to stop excel converting numbers into time

    Quote Originally Posted by Ron Coderre View Post
    Here's a thought....
    I think Excel only converts numeric data if the destination cell(s) are formatted as General or Text.
    So, before importing the data, convert the destination cells to any of the non-General, non-Text formats.

    Does that help?
    Sadly that doesn't work. I tried with a number of different formats and they just return really long decimals.

    Is there any way to just paste the scraped data as text? Such as through the macro?

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to stop excel converting numbers into time

    Can you post a small sample source file that we can import to see what you're working with?

  5. #5
    Registered User
    Join Date
    10-26-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2016
    Posts
    56

    Re: How to stop excel converting numbers into time

    Quote Originally Posted by Ron Coderre View Post
    Can you post a small sample source file that we can import to see what you're working with?
    I'm trying to import the entirety of this link and many more like it. No matter how I seem to do it, the columns of J, K & L keep coming out wrong. It pastes fine if I do it manually, but refuses to import itself cleanly.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How to stop excel converting numbers into time

    Exactly what is wrong with Excel interpreting these as times? They look like times to me ([m]:ss.sss format), and a value of 12:01:29 AM would be correct as Excel sees time data (assuming Excel is not losing the millisecond data). (Read this http://www.cpearson.com/Excel/datetime.htm#SerialDates if you need help understanding how Excel stores date/time information).

    I understand some of the frustration when Excel interprets input as dates and times incorrectly, especially when it interprets non-date/time data as date/time data. In this case, I think Excel is reading the data correctly and not really losing anything, and it might be easier to work with Excel, rather than trying to fight with Excel on this issue.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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: 4
    Last Post: 08-20-2014, 07:14 AM
  2. Replies: 2
    Last Post: 07-22-2014, 09:20 AM
  3. Stop Excel from converting numbers to Dateformat
    By ChrisNor in forum Excel General
    Replies: 13
    Last Post: 11-12-2011, 04:16 AM
  4. Converting numbers to Time
    By syntax_err in forum Excel General
    Replies: 2
    Last Post: 03-15-2009, 04:12 PM
  5. Converting Numbers to Time
    By aj1125 in forum Excel General
    Replies: 1
    Last Post: 05-28-2007, 05:36 PM
  6. Can stop excel from converting value to date?
    By desmond in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-21-2005, 08:36 AM
  7. Stop numbers converting to dates.
    By biglar85012 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2005, 03: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