Total Minutes and converting to Hours and Minutes

  • Thread starter Thread starter PSULionRP
  • Start date Start date
P

PSULionRP

I have an excel spreadsheet and I am summing the minutes. So I have total
minutes of "65". How can I get this to display as "1:05"??? Or Better Yet, "1
hour and 15 minutes"???

Any help is greatly appreciated.

Thanks!

PSULionRP
 
This should do the trick:

=IF(A1<60,A1&" minutes",INT(A1/60)&" hours and "&MOD(A1,60)&" minutes")

The IF checks to see if cell A1 has a value that is less than 60, and if
true returns only the minutes. Otherwise it divides the value in A1 by 60,
returning only the integer portion of the division to get the hours, and
using the MOD function it divides the value in A1 by 60 and return the
remainder to get the minutes.
 
If your formula is like this, say:

=SUM(A2:A50)

then change it to:

=SUM(A2:A50)/24/60

and then use a custom format on the cell of [h]:mm. Or you could make
the custom format:

[h]" hours and "m" minutes"

Hope this helps.

Pete
 
PERFECT!

Thanks Kevin. I'll add that to my Knowledgebase.

One other question. I am summarizing by week so I'm doing it the long way.
If I want to create a new spreadsheet with the Week totals, how do I copy the
data over without all the blanks between it???

Thanks again Kevin.
 
Back
Top