Hours to working days

VCC35

New Member
Joined
Jan 23, 2025
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All, I'm struggling to generate data of the numbers of days it takes to complete a task.

Assuming if a task takes 25 hours to complete,i am trying to calculate how many days to allocate to a resource, so based on a 8 hour work day, i need it to show as 3 days 1 hour is there a way of doing this?
 

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
Hello,
I hope this "overengineered" formula helps you understand the calculous. In B1 the total hours, and in B2 the hours/day.
Excel Formula:
=LET(
totH, B1,
HpDays, B2,
nbDays, TRUNC(B1/B2),
HLeft, MOD(B1,B2),
SWITCH(nbDays, 0, "",1, nbDays &" day ", nbDays, nbDays&" days ") & SWITCH(HLeft, 0, "",1, HLeft &" hour", HLeft, HLeft&" hours"))
 
Upvote 0
Hello,
I hope this "overengineered" formula helps you understand the calculous. In B1 the total hours, and in B2 the hours/day.
Excel Formula:
=LET(
totH, B1,
HpDays, B2,
nbDays, TRUNC(B1/B2),
HLeft, MOD(B1,B2),
SWITCH(nbDays, 0, "",1, nbDays &" day ", nbDays, nbDays&" days ") & SWITCH(HLeft, 0, "",1, HLeft &" hour", HLeft, HLeft&" hours"))
Thank you, thats perfect
 
Upvote 0

Forum statistics

Threads
1,226,067
Messages
6,188,700
Members
453,493
Latest member
BRACE

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