ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Greater than formula (https://www.excelbanter.com/excel-worksheet-functions/63413-greater-than-formula.html)

Tracey

Greater than formula
 
What is the correct formula for this situation:

A1 + A2 = 1900 but if 1900 is greater than 1800 = 1800

the reason, my staff can only accumulate sick time hours to a maximum of
1800.

thanks
Tracey

wjohnson

Greater than formula
 

Try the following:
=IF(A1+B1<=1800,A1+B1,IF(A1+B11800,1800,"Check"))
The "Check" can be any value you want for the false part of the last IF
statement - This can be a warning or you can set it to 1800 also


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=498457


Domenic

Greater than formula
 
Try...

=MIN(A1+A2,1800)

Hope this helps!

In article ,
Tracey wrote:

What is the correct formula for this situation:

A1 + A2 = 1900 but if 1900 is greater than 1800 = 1800

the reason, my staff can only accumulate sick time hours to a maximum of
1800.

thanks
Tracey



All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com