google-sheetstimesumgoogle-sheets-formuladuration

How to convert duration of MM:SS to seconds in Google Sheets?


As duration of a task, suppose that we have a column with cells formatted as MM:SS that would like to convert to seconds. Mathematically speaking, the solution is simple. We just need to compute MM * 60 + SS converting it to seconds. Additionally, we followed this strategy to solve the problem. However, the direct way to solve it remains a question.

What is the direct way to do it?


Solution

  • use:

    =INDEX(QUERY(SPLIT(TO_TEXT(A1:A), ":")*{60, 1},
     "select Col1+Col2 label Col1+Col2''"))
    

    enter image description here