Formatting text to mm:ss time

Trillian

New Member
Joined
Aug 9, 2007
Messages
4
I need to average some durations recorded in the format minutes:seconds. They were originally numbers formatted as text.

I have formatted the cells as mm:ss. I need a formula similar to =timevalue to convert the data to serials, but =timevalue gives me a 24-hour clock value, rather than minutes and seconds.

Any suggestions?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
These methods give me the same result as using =timevalue with no other qualifiers. The fields look correct, but taking an average or finding the max or min value are wrong.

Is there a way to express my mm:ss values as fractions of a minute?
 
Upvote 0
Sorry I don't understand.

If A1 contains the text entry 15:03, then:

=TIMEVALUE("00:"&A1)
=TIMEVALUE(A1)

return 00:15:03 and 15:03:00 respectively when formatted as hh:mm:ss.

To get decimal minutes use:

=TIMEVALUE("00:"&A1)*24*60

and format as General.
 
Upvote 0
I'm sure I'm explaining it badly. Sorry.

If I format using your method, it looks right. But if I try to average with =average(a1:whatever) or select the maximum value with =max(a1:whatever), both calculations fail. The average gives me a divided by zero error, and the max value comes up as zero.
 
Upvote 0
You won't be able to perform arithmetic on the text entries. Put the formula I posted in column B and use that column as the reference in your AVERAGE and MAX formulas.
 
Upvote 0
I was using the computed values. I guess I've got a problem with my data, and I don't know what it is. If I try this with a small set of exaple data it works fine; with my actual sheet it doesn't.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top