I miss read your question at first, that's why I gave this answer:
10.55.99
is being converted into 10:56:39
, adding 10.20.12
will total 21:16:51
Because in the normal TIME()
function, milliseconds aren't accounted for.
What I didn't notice, was the exact notation you're interested in: mm:ss.SSS. This requires a bit of a different approach.
First, you need to calculate the text values to milliseconds, like below:
Formula
SUM(
ARRAYFORMULA(
LEFT(A2:A3,2)*60*1000+ // minutes
MID(A2:A3,4,2)*1000+ // seconds
RIGHT(A2:A3,3) // milliseconds
)
)
Secondly, you need to format the time to mm:ss.SSS
. There you need to use a little bit of Google Apps Script, to do the formatting like this:
Code
function setFormat(value) {
return Utilities.formatDate(new Date(value), "GMT+1", "mm:ss.SSS");
}
Screenshot
Note
This solution is tailor-made towards the mm:ss.SSS
notation. The advantage is that every entry is seen as a text entry (because the format isn't recognized). A slight disadvantage is the usage of the script (add script under Tools>Script editor, press bug button, authenticate script).
There is yet another way to perform this calculation, but it starts by using this notation: mm:ss:SSS
. Advantage is that no script is used. Disadvantage would be that all entries are recognized as time and converted accordingly. Therefore you need to either set the format in advance or start the entry with a single quote. See reference for complete solution by Ahab on the Google Forum
Reference
https://productforums.google.com/d/msg/docs/o9xvG4gYeIc/fBi6ZgrEbfYJ
At this time, Google docs editors don't include a built-in feature but you could extend them through add-ons and Google Apps Script. But someone already did the hard work for us and developed a free Google Gadget that work together with Google Apps Script to use
- Google Forms as the UI for creating and editing records
- Google Sheets for storing records
- Google Gadgets as the list/search UI
From Awesome Tables
The "Awesome Tables" gadget can be used to create a table from a
spreadsheet and add interactive controls to manipulate the data it
displays. It is not an Apps Script web app but a Google
Gadget and it uses the
Google Visualization
API.
From Awesome Table and Google Form
Awesome Table is mainly used to display data in multiple ways. But it
can also be very useful to let your users edit the data displayed.
Here's how to do it, using Google Forms : see the
documentation
(or take a look at the
spreadsheet).
If you try it, note that the changes you'll make can take a minute
before being displayed on the site.
Best Answer
I'd use a script in the spreadsheet, see this example.
The script:
Hopefully my comments in the code describes most of it. And you can test it in the example sheet.
The main thing is the
setData
function, you use it for every column. It displays a prompt where you can enter data. As described in the comments, you have parameters for if the field is required (which wont let the user pass an empty field) and if the field has any formatting requirements, (using regex), pass the regexpresion you want to use to check the formats.