Hours worked formula

Cmosley

New Member
Joined
Jul 4, 2022
Messages
1
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Hi, I’m trying to maximize our schedule we making that included an operating ratio. We’d like to calculate projected hours worked instead of manually filling that in. But I’m running into issues.. we take an hour lunch if you work 8 hours or more and 30 minutes if you work less than 8 hours.

I don’t want to add additional columns regarding start/end lunches. I know you can do if/then statements..I just haven’t figured out how to format that. Suggestions?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Assuming one does not work over night.
Book1
BCD
2StartEndWorked
313:13:0520:04:096:21:04
47:54:2512:30:094:05:45
50:49:0518:48:5016:59:46
67:14:269:07:261:23:00
72:06:3014:12:3411:06:04
820:42:3623:05:191:52:44
94:59:4421:13:2315:13:39
100:14:3822:49:3621:34:58
113:51:3717:59:4513:08:08
1214:02:2719:42:405:10:13
Sheet1
Cell Formulas
RangeFormula
D3:D12D3=IF((C3-B3)>=TIME(9,0,0),(C3-B3)-TIME(1,0,0),(C3-B3)-TIME(0,30,0))
 
Upvote 0

Forum statistics

Threads
1,215,819
Messages
6,127,049
Members
449,356
Latest member
tstapleton67

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