Calculate row values as in hours and minutes

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
SunMonTueWedTotal Overtime
6012545-75155
-12060-60-60-175

<colgroup><col span="4"><col></colgroup><tbody>
</tbody>

Hi,
Could you please help me to calculate to minutes into hrs?
Given sample above from Row A1:D1=E1(in minutes)
Cell E1 total 155min. formula will show as "2hrs 35min"
Cell E2 total -175min. formula will show as "-2hrs 55min"
Many Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this

=IF(SUM(A1:D1)>=0,"","-")&TEXT(ABS(SUM(A1:D1)/1440),"h""hrs"" mm""min""")

However, this is not a 'real' time value. It's just a text string.
You won't be able to do any math with it.

I'd recommend a helper column to put the 'real' time value in, with just a simple sum in E1
=SUM(A1:D1)

Then in F1 put
=IF(E1>=0,"","-")&TEXT(ABS(E1/1440),"h""hrs"" mm""min""")
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

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