ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Basic IF/AND and Nested IF/AND Statements? (https://www.excelbanter.com/excel-discussion-misc-queries/153110-basic-if-nested-if-statements.html)

ConfusedNHouston

Basic IF/AND and Nested IF/AND Statements?
 
I'd like to know how to write statements that create the following arguments:

Basic IF/AND ---- Example: IF A1 = "KG" and B1 = "LB", then C1=2.205, IF
NOT, then C1 is ""

Nested IF/AND with an AND condition in the join ---- Example: ( IF A1 =
"KG" AND B1 = "LB ) AND (IF E1 = "GBP" AND F1 = "PER DAY") then G1=
"EVALUATE"; IF NOT THEN G1= "DROP")

Nested IF/AND with an "OR" condition in the join ---- Example: ( IF A1 =
"KG" AND B1 = "LB ) OR (IF E1 = "GBP" AND F1 = "PER DAY") then H1= "FLAG FOR
HQ"; IF NEITHER IS TRUE, THEN H1= "LOST BUSINESS")


i'm looking for syntax for the most part. However I'm also seeking to verify
that I actually CAN join separate arguments with AND or join them with OR, as
above.


Thanks


Max

Basic IF/AND and Nested IF/AND Statements?
 
Basic IF/AND ---- Example: IF A1 = "KG" and B1 = "LB", then C1=2.205, IF
NOT, then C1 is ""


In C1:
=IF(AND(A1="KG",B1="LB"),2.205,"")

Nested IF/AND with an AND condition in the join ---- Example: ( IF A1 =
"KG" AND B1 = "LB ) AND (IF E1 = "GBP" AND F1 = "PER DAY") then G1=
"EVALUATE"; IF NOT THEN G1= "DROP")


In G1:
=IF(AND(A1="KG",B1="LB",E1="GBP",F1="PER DAY"),"EVALUATE","DROP")

Nested IF/AND with an "OR" condition in the join ---- Example: ( IF A1 =
"KG" AND B1 = "LB ) OR (IF E1 = "GBP" AND F1 = "PER DAY") then H1= "FLAG FOR
HQ"; IF NEITHER IS TRUE, THEN H1= "LOST BUSINESS")


In H1:
=IF(OR(AND(A1="KG",B1="LB"),AND(E1="GBP",F1="PER DAY")),"FLAG FOR HQ","LOST
BUSINESS"

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Max

Basic IF/AND and Nested IF/AND Statements?
 
Oops, typo for H1, missing closing parens

In H1 should be:
=IF(OR(AND(A1="KG",B1="LB"),AND(E1="GBP",F1="PER DAY")),"FLAG FOR HQ","LOST
BUSINESS")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


All times are GMT +1. The time now is 02:19 PM.

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