ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Function - two conditions? (https://www.excelbanter.com/excel-discussion-misc-queries/135311-if-function-two-conditions.html)

TypeType

If Function - two conditions?
 
Is it possble to make two conditions (logical test) in the IF statement.

For example IF A1 = ("Rejected" or "Denied",A2+90,A2+30)

I tried this but it was not accepted - invalid. What is the correct way to
do this?

Thanks!





T. Valko

If Function - two conditions?
 
Try this:

=IF(OR(A1={"Rejected","Denied"}),A2+90,A2+30)

Biff

"TypeType" wrote in message
...
Is it possble to make two conditions (logical test) in the IF statement.

For example IF A1 = ("Rejected" or "Denied",A2+90,A2+30)

I tried this but it was not accepted - invalid. What is the correct way
to
do this?

Thanks!








All times are GMT +1. The time now is 07:09 PM.

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