Time sheet formulas

CommBPL

New Member
Joined
Mar 21, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I'm trying to establish a formula that calculates the total hours between a start and end time, but then if over 6 hours minus 0.5.

I've managed to do this in one cell calculating the hours =INT((G6-F6)*24) then in a separate cell taking away the 0.5 if over 6 =IF(H6>6, H6-0.5)

Is it possible to merge these two formulas together, so the total hours take away the 0.5 hours if over 6 hours in just one formula?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to the Board!

Here is one way:
Excel Formula:
=LET(x,(G6-F6)*24,IF(x>6,x-0.5,x))
 
Upvote 1
Solution
Thanks Joe, appreciate the welcome and the help with the formula! Perfect fix, thank you :)
 
Upvote 0
You are welcome.
Glad I was able to help!

I really like the new "LET" function!
 
Upvote 0

Forum statistics

Threads
1,215,204
Messages
6,123,630
Members
449,109
Latest member
Sebas8956

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