ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Restraints on an "if" statement (https://www.excelbanter.com/new-users-excel/120892-restraints-if-statement.html)

jmac2006

Restraints on an "if" statement
 
Hi there,

I have a simple "if" statement and am trying to add a constraint.
Essentially, the statement is:

If(AB, C, D)

However, I wan to say if "A" is a negative number, then it should be 0
(can't have a negative number).

Anyone have any advice?

Thanks

Marion

Restraints on an "if" statement
 
if(a<0,0,if(ab,c,d)) should do it

Marion



"jmac2006" wrote:

Hi there,

I have a simple "if" statement and am trying to add a constraint.
Essentially, the statement is:

If(AB, C, D)

However, I wan to say if "A" is a negative number, then it should be 0
(can't have a negative number).

Anyone have any advice?

Thanks



All times are GMT +1. The time now is 06:50 PM.

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