# Solved: Excel Formula Help

Discussion in 'Business Applications' started by armymech88, Apr 11, 2012.

Not open for further replies.

Joined:
Apr 11, 2012
Messages:
2
I am hoping someone can help me with this, as I am most certainly lost. I am attempting to create a spreadsheet that allows me to enter ASVAB test scores and physical condition data (on sheet 1) for an applicant that then correlates to related cells (on sheet 2) and then if certain conditions are met, a Cell on (sheet 2) will then show results of either: "QUALIFIED" (cell filled in green) or "NOT QUALIFIED" (cell filled in red).
I am trying to see how to create this formula correlating the data from the multiple cells across two sheets with the results highlighting the one cell in one of two colors with the related text above.

Here is an example of what I am working with:

Using Data entered into:

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)

with results ending up in C4 (sheet 2) that display either:"QUALIFIED" (cell filled in green) or "NOT QUALIFIED" (cell filled in red).

EXAMPLE 2:

Using Data entered into:

F4 (sheet 1) => I7 (sheet 2)
C4 (sheet 1) => J7 (sheet 2)
F16 (sheet 1) => N7 (sheet 2)
and J4(sheet 1)=< P7 (sheet 2)
and J7(sheet 1) =< Q7 (sheet 2)
and J10(sheet 1) =< R7 (sheet 2)
and M4(sheet 1) =< S7 (sheet 2)
and M7(sheet 1) =< T7 (sheet 2)
and M10(sheet 1) =< U7 (sheet 2)

with results ending up in C7 (sheet 2) that display either:"QUALIFIED" (cell filled in green) or "NOT QUALIFIED" (cell filled in red).

Hopefully, the above examples are not too difficult to understand for what I am trying to accomplish. Additionally, Is it possible to create a rule that will compress a lot of these formula's? I tried to do some research, but try as I might, I just can't seem to figure it out. I greatly appreciate any assistance I can get. I have also attached a condensed version of the worksheet named "new MOS qual" I am trying to create if it helps. Thank you very much.

SSG Mathew Lynd
US Army Recruiter

File size:
42.5 KB
Views:
80
2. ### etaf Wayne Moderator

Joined:
Oct 2, 2003
Messages:
63,089
you say AND - so you should be able to use the AND function and conditional format

=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

#### Attached Files:

• ###### AND_etaf.xls
File size:
14 KB
Views:
45

Joined:
Apr 11, 2012
Messages:
2
etaf,

formula worked wonders, can not thank you enough. this will probable save me several days of headaches and cut my workload considerably.

Mathew

Joined:
Oct 2, 2003
Messages:
63,089

As Seen On