Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Time as a number

$
0
0

Hi,

 

Trying to transform a time figure (hh:mm:ss) into just seconds (So 00:10:00 would be 600 seconds) and can't seem to get a formula to work at all.

 

I'm currently using the text to column function to split time down by the ":" - however, leaving the original format as "Time" makes the new columns fail upon running as they aren't time. When I switch them to string I can no longer perform a calculation on the columns as it gives me a "Can't do math on string columns" type error.

 

Any chance anyones got a work around for this?

 

I did try and use this tutorial, but I just find the same problems as above.

 

Bonus question: I've got about ten columns of this type of data, do I have to do each column as a different formula, or is there one big procedure I could use?


Viewing all articles
Browse latest Browse all 4999

Trending Articles