Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximizing a total at 24

Status
Not open for further replies.

zidol

Technical User
Feb 9, 2016
24
US
Formula: {Hours 1} - {Hours 2} = 28 hours

I want it to return the total, but maximize at 24


How do I write the formula for this?




 
if {Hours 1} - {Hours 2} >24 then 24 else {Hours 1} - {Hours 2}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top