0% found this document useful (0 votes)
8 views6 pages

Lab Intro To Excel

Uploaded by

venice
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

Lab Intro To Excel

Uploaded by

venice
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Name of Students Grade in Academics Grade in Extra-curriculars

Sheldon Cooper A+ A+
Amy Fowler A A+
Leonard Hofstader B+ B+
Raj Koothrapali B A
Howard Wolowitz A+ A+

Here's a list of students and their grades in academics, as well as in extra-curricular activities

Per the rules, only those students pass who:


Scored an A+ in academics
And A+ in extra-curriculars

To have the pass/fail results populated in Column D, let’s write the IF AND function as follows:
Step 1) Begin by writing the AND function.
dragged and dropped it to the whole list
Step 2) Nest the above function into the IF formula as below:
The first argument of the IF function is the logical test. Set the AND function in its place. The IF function will now run the AND
Step 3) Specify the value_if_true (if both the conditions are true) as “Pass”.
Step 4) Specify the value_if_false (if any of the conditions or both the conditions are false) as “Fail”.
Step 5) All set – hit enter for results.
Step 6) Drag and drop the above formula to the entire result.

The IF AND function evaluates both the given conditions and returns the pass/fail result for each student
Pass or Fail?
Pass
Fail
Fail
Fail
Pass

ular activities

tion as follows:

ts place. The IF function will now run the AND function as the logical test.

ns are false) as “Fail”.

ail result for each student


Name of Students Grade in Academics Grade in EC Attendance Behavior Pass or Fail?

Sheldon Cooper A+ A+ 90% Excellent Pass


Amy Fowler A A+ 90% Good Fail
Leonard Hofstader B+ B+ 80% Bad Fail
Raj Koothrapali B A 100% Average Fail
Howard Wolowitz A+ A+ 85% Excellent Fail

The IF AND function is very well capable of running 3, 4, 5 and so on up to 255 conditions.

For any student to pass now, he must:

Score A+ in academics
Score A+ in extra-curricular
Have 90% or higher Attendance; and
Have his behavior graded as Excellent

Time to see if anyone passes the above criteria.


Step 1) Write the AND function like below.
Only the text values need to be enclosed in quotation marks. Numbers (like 90%) need not be enclosed in quotation marks or
This time the AND function translates to:

First Condition: Cell B2 should be equal to the text value “A+”


Second Condition: Cell C2 should be equal to the text value “A+”
Third Condition: Cell D2 should be equal to or greater than 90%
Fourth Condition: Cell E2 should be equal to the text value “Excellent”

Step 2) Hit enter to see what we get.


Step 3) Nest the above function into the IF function as below:
Step 4) Add the next two arguments for value_if_true and value_if_false as “Pass” and “Fail”, respectively.
Step 5) It’s time we see the results in our worksheet.
osed in quotation marks or else Excel will treat them as text values too.
Restaurant Branches Food Grade Ambience Grade Performance
Makati City 5 5 Excellent
Alabang 2 1 Shut Down
Sta. Rosa 3 2 Need Improvement
Calamba 4 4 Good
Carmona 3 4 Need Improvement

The IF AND combination can be tweaked in another way, too.


This is the situation where you want Excel to run a logical test and return results based on how the logical test performed.
However, the results are not just limited to two values (the value_if_true and value_if_false), but more.

Here’s a restaurant with multiple branches that are assessed based on two of their KPIs i.e., Food and Ambience

The KPI sheet is simple:

Food and Ambience both graded above 4 > Excellent


Food and Ambience both graded above 3 > Good
Food and Ambience both graded equal to or above 2 > Need Improvement
Food and Ambience are both graded below 2 > Shut Down

But the point is, how do we translate the aforementioned KPIs into an Excel formula?

Step 1) Begin writing from the first KPI using the IF AND function:
We’re just telling Excel to return the performance score as Excellent if both the Food and Ambience grades exceed 4.
But – in case both the conditions don’t turn true (any of the grades is equal to or less than 4), in place of the value_if_false, we
Step 2) As the value_if_false for this function write a new IF AND function.
With this, we are telling Excel that if the first condition isn’t met, run another IF AND function.
The nested IF AND function checks if both the Food and Ambience grades exceed 3. If they do, it returns the value_if_true i.e.
Step 3) Repeating the same science as above, we will nest another IF AND function in the following formula (in place of the
If none of the branches exceed grade 4 or 3 for both KPIs, check if any branch achieves a score of 2 or above for both KPIs.
If any branch does, return the performance score “Need Improvement”.
Step 4) Next, specify the final value_if_false as “Shut Down”.
With that, Excel knows that if none of the branches exceeds grade 4 or 3 or at least meets grade 2 for both the KPIs, it needs t
Step 5) Hit Enter to have your results populated.
ical test performed.

ades exceed 4.
of the value_if_false, we will nest another IF AND function.

ns the value_if_true i.e., Good.


ormula (in place of the Value_if_false) :
above for both KPIs.

both the KPIs, it needs to be “Shut Down”.

You might also like