sabrrrrina
New Member
- Joined
- Aug 23, 2023
- Messages
- 1
- Office Version
- 2021
- 2019
- 2016
- Platform
- Windows
- MacOS
Hello!
I am trying to calculate my worked hours whilst accounting for my lunch break.
I have a 30 minute lunch break if I work more than 8 hours, but do not have a lunch break if I work 6 hours.
I want to incorporate this into my formula, so that it will calculate the hours worked and minus the lunch break if the value is over 8, but does not minus the lunch break if the value is 6.
I currently have this formula:
This formula works but it inserts the value -0.50 instead of taking away 0.5 from the value after calculating E3-D3)*24 <-- that section of the formula.
In words I want: IF (15:30 minus 06:45) multiplied by 24 equals more than 8, then minus 0.5
And if the value is 6 then do not minus 0.5
I hope this makes sense...
I am trying to calculate my worked hours whilst accounting for my lunch break.
I have a 30 minute lunch break if I work more than 8 hours, but do not have a lunch break if I work 6 hours.
I want to incorporate this into my formula, so that it will calculate the hours worked and minus the lunch break if the value is over 8, but does not minus the lunch break if the value is 6.
I currently have this formula:
06:45 | 15:30 | =IF(((E3-D3)*24)>8,- 0.5) |
This formula works but it inserts the value -0.50 instead of taking away 0.5 from the value after calculating E3-D3)*24 <-- that section of the formula.
In words I want: IF (15:30 minus 06:45) multiplied by 24 equals more than 8, then minus 0.5
And if the value is 6 then do not minus 0.5
I hope this makes sense...