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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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