Google-sheets – How to add minutes and seconds only

google sheets

How can I add minutes and seconds only in a Google Spreadsheets?

Example: I want to add 1201:01 to 390:35.

Best Answer

Apologies for the long and convoluted formula, but this assumes the values to be summed are in A1:A5 (some of those cells may be blank and will be ignored, but in it's current form the range has to be vertical and no more than one column wide), that these values are text strings in the format that you described, and that you are set to a locale that does not use a comma for a decimal point:

=ArrayFormula(JOIN(":";TEXT(ROUNDDOWN((MOD(SUM(REGEXREPLACE(A1:A5;"([0-9]+):([0-9]+)";{"$1","$2"})*{60,1})/60;{1E293;1})+{0;0.01})*{1;60});{"0";"00"})))

edit: based on Jacob Jan Tuinstra's comment that pointed out an inaccuracy, I have had to make it even more convoluted to mitigate against an occasional floating point error; this is the reason for the +{0;0.01}.