ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Then Or Statement (https://www.excelbanter.com/excel-worksheet-functions/172931-if-then-statement.html)

nabanco

If Then Or Statement
 
Hello,

I am having a little trouble with this formula and was hoping for some help.

=IF(A1="X","Complete",IF(A1="",IF(OR(N1="Bond",N1= "Other"),"Yes",IF(AND(N1="Government",OR(V17,W11 )),"Yes","???"))))


If N1 equals "government" AND (V1 is 7 and less than 100) OR (W1 is 0 and
less than 100) then return "Yes". If not, return "No.

The first part of the formula works fine for "bond" and "other"

Thank you

Max

If Then Or Statement
 
Maybe you're looking for something like this:
=IF(A1="X","Complete",IF(A1="",IF(OR(N1="Bond",N1= "Other"),"Yes",IF(AND(N1="Government",OR(AND(V17, V1<100),AND(W10,W1<100))),"Yes","No"))))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"nabanco" wrote:
I am having a little trouble with this formula and was hoping for some help.

=IF(A1="X","Complete",IF(A1="",IF(OR(N1="Bond",N1= "Other"),"Yes",IF(AND(N1="Government",OR(V17,W11 )),"Yes","???"))))

If N1 equals "government" AND (V1 is 7 and less than 100) OR (W1 is 0 and
less than 100) then return "Yes". If not, return "No.

The first part of the formula works fine for "bond" and "other"

Thank you


nabanco

If Then Or Statement
 
Max, that worked perfectly, thank you sir

"Max" wrote:

Maybe you're looking for something like this:
=IF(A1="X","Complete",IF(A1="",IF(OR(N1="Bond",N1= "Other"),"Yes",IF(AND(N1="Government",OR(AND(V17, V1<100),AND(W10,W1<100))),"Yes","No"))))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"nabanco" wrote:
I am having a little trouble with this formula and was hoping for some help.

=IF(A1="X","Complete",IF(A1="",IF(OR(N1="Bond",N1= "Other"),"Yes",IF(AND(N1="Government",OR(V17,W11 )),"Yes","???"))))

If N1 equals "government" AND (V1 is 7 and less than 100) OR (W1 is 0 and
less than 100) then return "Yes". If not, return "No.

The first part of the formula works fine for "bond" and "other"

Thank you


Max

If Then Or Statement
 
Welcome, nabanco.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"nabanco" wrote in message
...
Max, that worked perfectly, thank you sir





All times are GMT +1. The time now is 07:22 AM.

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