Need help figuring out excel formula with time.

umdiddy098

New Member
Joined
May 1, 2023
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
So I am trying to figure out a way to calculate total hours worked. The only issue is the hours worked is 15.5 hours day's (6:30AM to 10:00pm on weekdays) and it is for specific task. I am trying to calculate productivity based on the task. I will post a example below.
Start time: 6:30am Start date: 5/1/23
End Time:10:00pm End date: 5/2/23
Downtime: 60 min, Work week hours: 6:30am to 10:00pm
I need a formula that can calculate the total hours worked within multiple days that subtracts the downtime (min.).

I have tried writing this complicated "if" formula out but can't get it.

Any help would be great!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
try this and see if it works for what you're looking for
Book1
ABCDEFG
1start timestart dateend timeend datedowntimeHours for all days
26:30 AM5/1/202310:00 PM5/2/20236027.00
Sheet1
Cell Formulas
RangeFormula
G2G2=(((C2-A2)*1440-(E2*(D2-B2+1)))/60)*(D2-B2+1)
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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