Forum Discussion
jthodges
Feb 11, 2023Copper Contributor
Formulas and Functions
I need assistance with a formula. I am attempting to create a formula that will deduct if a number is bigger. For example, if a person works over eight hours, subtract thirty minutes for lunch, and if over ten hours, subtract one hour. Therefore, when I enter the start and end time, if the total exceeds 8 hours, it should subtract 30 minutes, and if it exceeds 10 hours, it should subtract 1 hour from the total hours worked that day.
1 Reply
- Riny_van_EekelenPlatinum Contributor
jthodges Some examples in the attached file, using the following formula (column C contains the duration):
=IF(C2>10/24,C2-1/24,IF(C2>8/24,C2-1/48,0))