Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
nested if statements using "AND" as well as "OR"
I am trying to write a conditional statement where if a the time in cell D4
is between range1(G7-H7) or range2(I7-J7) then say YES else leave blank. I'm trying if(and(d4=G7, d4<=H7), "YES"," ") which works but I don't know how to get the OR in their. Any help you give me will be so appreciated! Thanks in advance. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
nested if statements using "AND" as well as "OR"
if(OR(AND(I7=G7,J7<=H7),AND(d4=G7, d4<=H7)), "YES"," ")
"ibbm" wrote: I am trying to write a conditional statement where if a the time in cell D4 is between range1(G7-H7) or range2(I7-J7) then say YES else leave blank. I'm trying if(and(d4=G7, d4<=H7), "YES"," ") which works but I don't know how to get the OR in their. Any help you give me will be so appreciated! Thanks in advance. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
nested if statements using "AND" as well as "OR"
Nothing short of AWESOME... thank you so much!
"Sean Timmons" wrote: if(OR(AND(I7=G7,J7<=H7),AND(d4=G7, d4<=H7)), "YES"," ") "ibbm" wrote: I am trying to write a conditional statement where if a the time in cell D4 is between range1(G7-H7) or range2(I7-J7) then say YES else leave blank. I'm trying if(and(d4=G7, d4<=H7), "YES"," ") which works but I don't know how to get the OR in their. Any help you give me will be so appreciated! Thanks in advance. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
nested if statements using "AND" as well as "OR"
Or perhaps =IF(OR(AND(D4=I7,D4<=J7),AND(D4=G7, D4<=H7)), "YES","") if I understand the OP correctly. -- David Biddulph "Sean Timmons" wrote in message ... if(OR(AND(I7=G7,J7<=H7),AND(d4=G7, d4<=H7)), "YES"," ") "ibbm" wrote: I am trying to write a conditional statement where if a the time in cell D4 is between range1(G7-H7) or range2(I7-J7) then say YES else leave blank. I'm trying if(and(d4=G7, d4<=H7), "YES"," ") which works but I don't know how to get the OR in their. Any help you give me will be so appreciated! Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Need more than 7 nested "IF" statements in Excel" | Excel Discussion (Misc queries) | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |