ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF with and OR (https://www.excelbanter.com/excel-worksheet-functions/230180-if.html)

PR[_2_]

IF with and OR
 
Can anyone help I trying to get a OR statement to work with and if
statement...

what I am trying to do is if cell K8 is = 2 and P8 is =1 mark cell j8 with
a win else not, what I am also trying to do is say in the same statement if
K8 =1 and P8 =2 then mark cell j8 with win else not...

=IF(AND(K8=2,P8=1),"Win","Not")

can anyone help...

Paul



Mike H

IF with and OR
 
maybe

=IF(OR(AND(K8=2,P8=1),AND(K8=1,P8=2)),"Win","N ot")

Mike

"PR" wrote:

Can anyone help I trying to get a OR statement to work with and if
statement...

what I am trying to do is if cell K8 is = 2 and P8 is =1 mark cell j8 with
a win else not, what I am also trying to do is say in the same statement if
K8 =1 and P8 =2 then mark cell j8 with win else not...

=IF(AND(K8=2,P8=1),"Win","Not")

can anyone help...

Paul




PR[_2_]

IF with and OR
 
thanks very much, thats great... it is where you put the OR...




All times are GMT +1. The time now is 04:11 AM.

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