Very likely the dumbest Excel question ever asked
April 3, 2006 10:28 AM
Subscribe
MS Excel: How do I convert a number representing seconds into minutes:seconds?
This ought to be simple enough, but I can't hit upon anything that works. I've checked the help index in Excel, looked online on Microsoft's help pages, and through AskMetafilter archives tagged 'Excel' and so far, nothing solves this problem.*
I have a large amount of data that represent durations of time in seconds. (e.g., 512, 726, 322....). I need to take all these values and convert them to mm:ss format (6:32, 12:06, 5:22...). I only need minutes and seconds. None of the numbers is large enough to need an hour component.
MS Excel help says to use the formula to convert times:
=TEXT(A1/24, "h:mm") where A1 is my data cell and h:mm is the output
I tried adjusting this to =TEXT(A1/60, "mm:ss"). This does not work. The results I get are completely innacurate. For example, I tried to convert 215 seconds with this formula, and my result was 7:58. Boggling. 215 seconds by my calculation is 3:35.
I'm on the verge of hacking out a brute-force method to do this (divide # by 60, discard remainder and multiply result by 60 again, subtract this product from my original # to get #seconds, and display as whole#result:#seconds), but before I do that I thought somebody here may have a better solution.
*(It actually seems like the discussion groups for Excel on the Microsoft Office website may actually cover and answer my question; unfortunately, here at work, ActiveX is disabled on all browsers by our IT department (non-reenableable by me), and I can't read the *@#^!@$ threads without it. Discussions about the inherrent stupidity of this situation will likely be entertaining, but mostly will rub salt into some slowly healing wounds. Assume for the sake of the question that IT is standing firm on this ridiculous policy.)
posted by contessa to computers & internet (13 comments total)
Works for me. I hope this doesn't get mangled. And no, it's not very elegant.1>
posted by jwadhams at 10:35 AM on April 3, 2006