Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

IMPORTHTML incorrectly formats colon separated data as dates

$
0
0

I have sport data that I imported from a website link into google sheet using importhtml() function

#TeamMPWWOLOLGPts
1.Red Eagles Hokkaido2620204110:5564
2.Nikko Ice Bucks2415036106:6548
3.Tohoku Free Blades2811431098:8244
4.East Hokkaido Cranes268421286:8534
5.Yokohama Grits281132344:1578

There is a particular column named G in which, two data are combined together in each cells and partitioned with colon : and when the data is imported into the google sheet, it formats G column as date/time.

Examples given:

  1. For the first cell of colum G, which has 110:55 from the website, it was imported as 110:55:00. That is in hh:mm:ss format.

  2. For the second cell which has 106:65 on the site, it was imported as 107:05:00 in hh:mm:ss. The 65 in the data from website was assumed to be 65min, then it was counted as an hour and was added to initial 106 to make it 107.

attached is the pic of the table

Attached is the pic of how the table looks when imported to google sheet picture the affected column was painted in purple

How can I work around it?

Similar question was answered in this thread Trying to use Google Sheets importHTML() to import a table. It forces content to a date format


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>