Display hours over 8 hours as 1 day

jeffreybrown

Well-known Member
Joined
Jul 28, 2004
Messages
5,152
So far this is as far as I have gotten which will work fine for over 24 hours, but since our day is 8 hours, how can this read 3d 00:50:00 for a time that is 24:50:00?

Any thoughts?

Code:
=IF(SUMPRODUCT(D16:F16,G16:I16)/1440>TIME(8,0,0),INT(SUMPRODUCT($D$16:$F$16,$G$16:$I$16)/1440)&"d "&TEXT(SUMPRODUCT($D$16:$F$16,$G$16:$I$16)/1440,"hh:mm:ss"),SUMPRODUCT($D$16:$F$16,$G$16:$I$16)/1440)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
So the SUMPRODUCT gives you a number of minutes and you want to convert that to workdays? Would 1000 minutes therefore be 16 hours 40 mins and become 2d 00:40:00? If so try

=TEXT(INT(SUMPRODUCT(D16:F16,G16:I16)/1440/"8:00"),"0\d ;;")&TEXT(MOD(SUMPRODUCT(D16:F16,G16:I16)/1440,"8:00"),"hh:mm:ss")
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,191
Members
453,151
Latest member
Lizamaison

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