Sas#22-Acc 117
Sas#22-Acc 117
Mess creates stress (I learned this from tennis icon Andre Agassi who
said he wouldn’t let anyone touch his tennis bag because if it got
disorganized, he’d get distracted). So clean out the clutter in your office
to get more done.
A. LESSON PREVIEW/REVIEW
INTRODUCTION (2 minutes)
Another day another blessing in life so no matter what problems you are encountering makes
sure that you are strong enough to face those challenges. What an inspiring day right? Be an
inspiration not just to yourself but even to others who believes in you. Now, this is another
lesson in Microsoft Excel in its formula and function.
B. MAIN LESSON
Activity 2: Content Notes (13 minutes)
Below are the notes about Microsoft Excel Application: Formula and Function. You may
underline or highlight words or phrases that you think is the main focus of the lesson.
1
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
You can find all available Excel functions in the Function Library on the Formulas tab:
2
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
To sum with conditions, use the SUMIF function: in the 1st argument, you enter the range of cells to be
tested against the criteria (A2:A6), in the 2nd argument - the criteria itself (D2), and in the last argument
- the cells to sum (B2:B6):
=SUMIF(A2:A6, D2, B2:B6)
In your Excel worksheets, the formulas may look something similar to this:
2. AVERAGE. The Excel AVERAGE function does exactly what its name suggests, i.e. finds an
average, or arithmetic mean, of numbers. Its syntax is similar to SUM's:
AVERAGE(number1, [number2], …)
Having a closer look at the formula from the previous section (=SUM(B2:B6)/5), what does it actually
do? Sums values in cells B2 through B6, and then divides the result by 5. And what do you call adding
up a group of numbers and then dividing the sum by the count of those numbers? Yep, an average!
The Excel AVERAGE function performs these calculations behind the scenes. So, instead of dividing
sum by count, you can simply put this formula in a cell:
=AVERAGE(B2:B6)
To average cells based on condition, use the following AVERAGEIF formula, where A2:A6 is the
criteria range, D3 is he criteria, and B2:B6 are the cells to average:
=AVERAGEIF(A2:A6, D3, B2:B6)
3. MAX & MIN. The MAX and MIN formulas in Excel get the largest and smallest value in a set of
numbers, respectively. For our sample data set, the formulas will be as simple as:
=MAX(B2:B6)
=MIN(B2:B6)
3
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
4. COUNT & COUNTA. If you are curious to know how many cells in a given range
contain numeric values (numbers or dates), don't waste your time counting them by hand. The
Excel COUNT function will bring you the count in a heartbeat:
COUNT(value1, [value2], …)
While the COUNT function deals only with those cells that contain numbers, the COUNTA function
counts all cells that are not blank, whether they contain numbers, dates, times, text, logical values of
TRUE and FALSE, errors or empty text strings (""):
COUNTA (value1, [value2], …)
For example, to find out how many cells in column B contain numbers, use this formula:
=COUNT(B:B)
To count all non-empty cells in column B, go with this one:
=COUNTA(B:B)
In both formulas, you use the so-called "whole column reference" (B:B) that refers to all the cells within
column B.
The following screenshot shows the difference: while COUNT processes only numbers, COUNTA
outputs the total number of non-blank cells in column B, including the the text value in the column
header.
5. IF. Judging by the number of IF-related comments on our blog, it's the most popular function in
Excel. In simple terms, you use an IF formula to ask Excel to test a certain condition and return
one value or perform one calculation if the condition is met, and another value or calculation if
the condition is not met:
IF(logical_test, [value_if_true], [value_if_false])
4
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
For example, the following IF statement checks if the order is completed (i.e. there is a value in column
C) or not. To test if a cell is not blank, you use the "not equal to" operator (<>) in combination with an
empty string (""). As the result, if cell C2 is not empty, the formula returns "Yes", otherwise "No":
=IF(C2<>"", "Yes", "No")
6. TRIM. If your obviously correct Excel formulas return just a bunch of errors, one of the first
things to check is extra spaces in the referenced cells (You may be surprised to know how
many leading, trailing and in-between spaces lurk unnoticed in your sheets just until something
goes wrong!).
For example, to trim extra spaces in column A, enter the following formula in cell A1, and then copy it
down the column:
=TRIM(A1)
It will eliminate all extra spaces in cells but a single space character between words:
7. LEN. Whenever you want to know the number of characters in a certain cell, LEN is the function
to use:
Wish to find out how many characters are in cell A2? Just type the below formula into another cell:
=LEN(A2)
5
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
Please keep in mind that the Excel LEN function counts absolutely all characters including spaces:
Want to get the total count of characters in a range or cells or count only specific characters? Please
check out the following resources.
8. AND & OR. These are the two most popular logical functions to check multiple criteria. The
difference is how they do this:
AND returns TRUE if all conditions are met, FALSE otherwise.
OR returns TRUE if any condition is met, FALSE otherwise.
While rarely used on their own, these functions come in very handy as part of bigger formulas.
For example, to check the test results in columns B and C and return "Pass" if both are greater than 60,
"Fail" otherwise, use the following IF formula with an embedded AND statement:
=IF(AND(B2>60, B2>60), "Pass", "Fail")
If it's sufficient to have just one test score greater than 60 (either test 1 or test 2), embed the OR
statement:
=IF(OR(B2>60, B2>60), "Pass", "Fail")
9. CONCATENATE. In case you want to take values from two or more cells and combine them
into one cell, use the concatenate operator (&) or the CONCATENATE function:
CONCATENATE(text1, [text2], …)
6
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
For example, to combine the values from cells A2 and B2, just enter the following formula in a different
cell:
=CONCATENATE(A2, B2)
To separate the combined values with a space, type the space character (" ") in the arguments list:
=CONCATENATE(A2, " ", B2)
10. TODAY & NOW. To see the current date and time whenever you open your worksheet without
having to manually update it on a daily basis, use either:
=TODAY() to insert the today's date in a cell.
=NOW() to insert the current date and time in a cell.
The beauty of these functions is that they don't require any arguments at all, you type the formulas
exactly as written above.
2. AVERAGE
7
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
5. IF
6. TRIM
7. LEN
8.AND & OR
9.CONCATENATE
8
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
C. LESSON WRAP-UP
Activity 6: Thinking about Learning (5 minutes)
A. Work Tracker
You are done with this session! Let’s track your progress. Shade the session number you just
completed.
FAQs
9
This document is the property of PHINMA EDUCATION
ACC 117: Statistical Analysis with Software Application
Students Activity Sheet #22
Note. After copying the formula, make sure that all cell references are correct. Cell references may
change depending on whether they are absolute (do not change) or relative (change).
KEY TO CORRECTIONS:
A. Activity 3
Note: Answer may depend on the content notes for its Functions in MS Excel
B. Activity 5:
1. SUM
2. AVERAGE
3. MAX & MIN
4. COUNT & COUNTA
5. IF
6. TRIM
7. LEN
8.AND & OR
9.CONCATENATE
10.TODAY & NOW
10
This document is the property of PHINMA EDUCATION