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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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