Excel – Prevent Excel from converting times into floats

microsoft excel

I have imported tabulated data from a website using Excel's "Data > From Web". The problem is, that a time, e.g. 47:38:00, is automatically translated. If I click on it, 01/01/1900 23:38:00 is shown in the formula textbox, and converting the data to text or general converts it to a float, 1.984722222.

The float conversion is super annoying as this is what is presented when extracting data from the spreadsheet. Is there a way to stop Excel from manipulating the data, and just treat everything as raw?

Best Answer

The data is not changed, it is only the Display Format that changes.

You can set the display format you prefer; for example, for the shown 47:38:00 use the (custom) format [hh]:mm:ss.

The square brackets [] tell Excel to not go to the next higher unit - days - but stay with hours, no matter how big the number is; without the brackets, you would see 1d 23:38:00or so. For example, using [mm]:ss would give you 2858:00, in minutes and seconds.

Related Question