Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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
---
  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IF statements TwoDot Excel Worksheet Functions 4 February 8th 07 12:17 AM
nested if statements Accountant7 Excel Discussion (Misc queries) 2 October 24th 06 04:48 PM
nested if statements Jeremy Excel Worksheet Functions 2 September 14th 06 08:08 PM
Nested If/Then statements qwik6 Excel Worksheet Functions 3 December 9th 05 03:38 AM
I want to use more than 7 nested if then statements IF I only had a brain for IF statements Excel Worksheet Functions 11 August 9th 05 01:28 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"