Applying a limit to a cell adding up hours worked.

OGCarroll

New Member
Joined
May 18, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I'm having an issue with a timesheet I'm building for my companies Engineers. The way it works here is that after 50 hours worked in the week, they get paid over time.

What I want is for I38 to add up all the hours from the I column, but to not exceed a maximum of 50:00:00.

I've been racking my brain over this, trouble is I've just come back to using Excel after not using it for the better part of a decade so I'm rusty as hell.

Can anybody help solve this issue for me? For what its worth, the cell I38 is formatted as Custom in hh:mm:ss

Thank you in advance everyone.
 

Attachments

  • timesheet formula issue.png
    timesheet formula issue.png
    38.4 KB · Views: 12

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi & welcome to MrExcel.
How about
Excel Formula:
=MIN(2+TIME(2,0,0),SUM(I3:I37))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=MIN(2+TIME(2,0,0),SUM(I3:I37))
Hello Fluff,

Thank you very much for taking time to reply to my thread, and for the warm welcome!

I tried the formula you provided, but unfortunately this makes I38 return "02:00:00"
 
Upvote 0
Make sure the cell is formatted as [h]:mm:ss
My goodness that worked!

Thank you so much Fluff you've saved me such a headache I would have never attempted the formula you provided above.

This forum (and yourself) are a life saver!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,387
Members
448,957
Latest member
Hat4Life

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