| Moderator with 46,159 posts. | | Join Date: Oct 2003 Location: Surrey, UK Experience: Intermediate | |
Quote:
C10 (sheet 1) => F4 (sheet 2)
and J4(sheet 1)=< P4(sheet 2)
and J7(sheet 1) =< Q4(sheet 2)
and J10(sheet 1) =< R4(sheet 2)
and M4(sheet 1) =< S4(sheet 2)
and M7(sheet 1) =< T4(sheet 2)
and M10(sheet 1) =< U4(sheet 2)
| you say AND - so you should be able to use the AND function and conditional format Quote: |
with results ending up in C4 (sheet 2) that display either:"QUALIFIED" (cell filled in green) or "NOT QUALIFIED" (cell filled in red).
| =Sheet2!C3
=AND (
sheet1!C10 >= sheet2!F4,
sheet1!J4 <= sheet2!P4,
sheet1!J7 >= sheet2!Q4,
sheet1!J10 <= sheet2!R4,
sheet1!M4 <= sheet2!S4,
sheet1!M7 <= sheet2!T4,
sheet1!M10 <= sheet2!U4
)
that will give true or false
so now we add an IF
=IF ( the and statement, "QUALIFIED" , "NOT QUALIFIED")
so should look like this Code: =IF(AND(Sheet1!C10>=Sheet2!F4,Sheet1!J4<=Sheet2!P4,Sheet1!J7>=Sheet2!Q4,Sheet1!J10<=Sheet2!R4,Sheet1!M4<=Sheet2!S4,Sheet1!M7<=Sheet2!T4,Sheet1!M10<=Sheet2!U4),"QUALIFIED","NOT QUALIFIED") and then use conditional format to set the colour based on qualified or non qualified
looked at your sheet wasnt sure where to put the formula as no sheet 1 or sheet 2
so i attached a sample here
and to test just change cell C10 to 1 or -1
as 1 will be true for the AND statement and -1 false
for C7
AND(
sheet1!F4 >= sheet2!I7,
sheet1!C4 >= sheet2!J7,
sheet1!F16 >= sheet2!N7,
sheet1!J4 <= sheet2!P7,
sheet1!J7 <= sheet2!Q7,
sheet1!J10 <= sheet2!R7,
sheet1!M4 <= sheet2!S7,
sheet1!M7 <= sheet2!T7,
sheet1!M10 <= sheet2!U7
)
so the code looks like this for C7 Code: =IF(AND(Sheet1!F4>=Sheet2!I7,Sheet1!C4>=Sheet2!J7,Sheet1!F16>=Sheet2!N7,Sheet1!J4<=Sheet2!P7,Sheet1!J7<=Sheet2!Q7,Sheet1!J10<=Sheet2!R7,Sheet1!M4<=Sheet2!S7,Sheet1!M7<=Sheet2!T7,Sheet1!M10<=Sheet2!U7),"QUALIFIED","NOT QUALIFIED") I have edited the spreadsheet and F4 1 or -1 changes C7
__________________ Please let us know what the final solution was to any problem posted
Last edited by etaf; 12-Apr-2012 at 07:02 AM..
|