[h]:mm:ss Conversion to Minutes For Calculation

yourcontactsfriend

New Member
Joined
May 22, 2008
Messages
2
Alright, I've been at this for a few days now and my master excel buddies haven't been able to figure this one out either. So they referred me to Mr. Excel...

Problem:

I'm calculating a variety of cells that have a format of [h]:mm:ss. I'm using this format as it displays the information correctly in the cell and using a normal h:mm:ss format doesn't work. I'm calculating these cells using a =SUMIF(M34:M50000,">00:05:00") formula to sum up the amount of time that occurs that is greater than 5 minutes. The problem occurs when I try to make a calculation or convert this type of formatted cell into a normal number format so that I can make calculations off of it. For example, if the sumif formula returns data "01:30:00" I need to convert that cell into minutes (remember the format is [h]:mm:ss (with brackets)) so that it returns "90" minutes so that I can do another calculation off of the "90" minutes.

The one conversion that got the closest was a =(E15-INT(E15))*1440 convert but it ignores the hour section when their are brackets around the hour in the format and if I remove the brackets the time is not displayed correctly.

Hopefully this is enough explaination and its understandable. Any help with this would be greatly appreciated.

Thanks.
yourcontactsfriend
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Holy crap that was fast - I'm coming here more often.
Thanks for the reply.

As a follow up question do you know what the difference is between a format of [h]:mm:ss vs h:mm:ss? I can't find anywhere why brackets make a difference in a format situation.

Thanks again.
 
Upvote 0
putting the [] around the hour makes it count over 24 hours

so 36:00:00 formatted as hh:mm would appear as 12:00 becase that is 1 day and 12 hours
but formatted as [hh]:mm appears as 36:00:00

Same with minutes and seconds.
 
Upvote 0
Note: to convert to minutes you only have to multiply by 1440, i.e.

=SUMIF(M34:M50000,">00:05:00")*1440

format as number
 
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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