Вы находитесь на странице: 1из 24

Exer 2 Excel – Average, Count, SumIF, AverageIF, CountIFS, CountIF

Student's Surname, First Name: Castigador, Cyril Vince Year & Section: BSA-2A
1) Replace the student’s surname, first name with your name the excel file and doc file before
submitting them.
2) Use print screen or snipping tool to document every step that you perform in this exercise found in
the Excel file named “Exer 2 Excel – Average, Count, SumIF, AverageIF, CountIFS, CountIF –
Student’s Surname, First Name”.
3) Follow the instructions shown here.
4) Make an explanation on the result emphasizing the use of the function. (The explanations are
places on the last page)

1. Average Function – Open the “Average” worksheet of the Exer 2.xlsx file

STEP 1: We need to enter the AVERAGE function in a blank cell:


=AVERAGE(
STEP 2: The AVERAGE arguments:
text
What numbers do we want to get the average of?
Select the range of values:
=AVERAGE(D9:D12)

You have now calculated the average of the Sales numbers!


2. Count Function
Count 1 Worksheet: Here we have our heroes, working hard to save people (and to earn
money to pay the bills). You need to figure out how many days did each hero work, and how
many heroes worked each day. So you need to use the COUNT function in horizontal and
vertical way.
Step 1: Start writing your formula in B11
=COUNT(
Step 2: Select the Range of cells. In this situation you will need the
whole Monday column (to figure out how many heroes worked that day)
=COUNT(B2:B10)
Step 3: Drag the formula to the right!
Step 4: Repeat the process to find the work days but now by each hero. Put your formula in H2.
And drag the formula down.
=COUNT(B2:G2)
With this formula we found that Thor and Rocky were the most active heroes during the week,
they worked 6 days! While Obi Wan Kenobi simply didn’t want to work that much. At the same
time, we found that Friday was the least active day of the week. I guess some heroes need a
break.

3. Count Function
Count 2 Worksheet: Ever had a column of data and wanted to check if all of the values contain
valid numbers? It would be cumbersome to count and check them one by one, especially if you
had hundreds of entries! Imagine we have the following data, we see an error, a text and a
couple of numbers:

Thankfully there is an easy way to count how many of these cells contain valid numbers using
the Excel’s COUNT formula.
STEP 1: We need to enter the COUNT function in a blank cell:
=COUNT(

STEP 2: The COUNT arguments:


value
What is the value / range of values that you want to check?
=COUNT(C9:C12)

You now have your count of valid numbers!


4. Counta Function
Counta Worksheet:Do you have a scenario where you want to count the number of
cells that are non-blank or not empty? There is a simple way to count this with
Excel’s COUNTA formula! This formula counts everything: numbers, text, non-
empty text ””.

STEP 1: We need to enter the COUNTA function in a blank cell. Notice there are 6 non-blank
cells in here:
=COUNTA(
STEP 2: The COUNTA arguments:
value
What is the value or range of values that you want to check how many are non-blank?
=COUNTA(B9:C12)

You now have your count of values that are non-blank! There are 6 non-blank values!
5. Countblank Function
Countblank Worksheet:Do you have a scenario where you want to count the number of
cells that are blank in your Excel data?
If you are auditing your data and want to make sure that a blank cell is actually
blank (and doesn’t contain an invisible character), then this formula is for you.
STEP 1: We need to enter the COUNTBLANK function in a blank cell:
=COUNTBLANK(

STEP 2: The COUNTBLANK arguments:


range
What are the range of values that you want to check to see how many are
blank?
=COUNTBLANK(B9:C12)
You now have your count of values that are blank! There are 3 blank
values!
6. CountIF Function
Do you have a scenario where you want to count the number of
CountIF Worksheet:
cells that match a specific condition? There is a simple way to count this with
Excel’s COUNTIF formula!
The COUNTIF formula is very flexible indeed, so let us try to count the
following from our Excel worksheet:
Number of cells greater than 2
Number of cells that have a Yellow value
Number of cells that start with the letter “J”

STEP 1: We need to enter the COUNTIF function in a blank cell:


=COUNTIF(

STEP 2: The COUNTIF arguments:


range
What are the range of values that you want to check your condition against?
=COUNTIF(A9:A12,
criteria
What is the condition that you want to check against?
For our 1st example, we want to count the number of values greater than 2.
=COUNTIF(A9:A12, “>2”)

You now have your count of numbers greater than 2!

STEP 3: Now let us try for counting the number of Yellow values:
=COUNTIF(C9:C12, “Yellow”)
You now have your count of values that have the Yellow text!

STEP 4: Now let us try for counting the number of names starting
with the Letter J:
Let us use the wildcard expression J*
* signifies a wildcard character i.e. Return any value that begins with a J
=COUNTIF(E9:E12, “J*”)

You now have your count of values that have a starting letter of J!
7. CountIFS Function
CountIFS Worksheet: Do you have a scenario where you want to count the number of
cells that match specific conditions? There is a simple way to count this with
Excel’s COUNTIFS formula! This is very similar to the CountIf Formula! The
only difference is it allows you to add even more conditions as needed…That’s
POWEFUL!
The COUNTIFS formula is very flexible indeed, so let us try to count the
following from our Excel worksheet:
Number of times John got more than 10,000 sales
Number of times Kim got more than 18,000 sales

STEP 1: Let us target the first question: How many times John got
more than 10,000 sales?
We need to enter the COUNTIFS function in a blank cell:
=COUNTIFS(

STEP 2: The COUNTIFS arguments:


range1, criteria1
What is our first condition?
We want to find the names that match “John”
=COUNTIFS(A9:A13, “John”,

range2, criteria2
What is our second condition?
We want to find sales that are more than 10,000
COUNTIFS(A9:A13, “John”, C9:C13, “>10000”)
You now have your count of 2!

STEP 3: Now let us try doing the same for Kim!


range1, criteria1
What is our first condition?
We want to find the names that match “Kim”
=COUNTIFS(A9:A13, “Kim”,
range2, criteria2
What is our second condition?
We want to find the sales that are more than 18,000
=COUNTIFS(A9:A13, “Kim”, C9:C13, “>18000”)

You now have your count of 1!


8. Conditional Function – SumIF, AverageIF, CountIF

Scenario:
You’ve been given a spreadsheet that contains the Apple sales by quarter for
three regions. You’ve been asked to summarize the data and provide the
following information:
1) What are the total sales by quarter? SUMIF
2) What are the average sales by quarter? AVERAGEIF
3) How many times per quarter were sales greater than $400? COUNTIFS
4) Total number of times for all quarters, sales were greater than $400?
COUNTIF

SUMIF: What are the total sales by quarter?


1. Open the spreadsheet SumIF,AverageIF,CountIF Worksheet of
Exer2.xlsx
2. Place your cursor in cell ‘F2’
3. From the Ribbon select the tab ‘Formulas’
4. Click fx Insert Function
5. Type ‘SumIF’ in the ‘Search for a function:’ box
6. Click the ‘Go’ button
7. When prompted, select ‘SUMIF’:
8. Click the ‘OK’ button
In the Function Arguments dialogue box enter the following:
A. For the Range click the column ‘B’ (this column lists the
quarter)
B. For the Criteria enter ‘1’ for Quarter 1 (note: if this were a text
field, you would encapsulate the text with double quotes “ ”)
C. For the Sum_range click the column ‘C’ (this column lists the
Apple sales)

9. Click the ‘OK’ button. The result for Q1 sales is $884


10. Copy the formula down through cells ‘F3’ – ‘F5’ and change the
‘Criteria’ value for the appropriate quarter (i.e. 2,3, & 4 for
quarters 2-4)
AVERAGEIF: What are the average sales by quarter?
1. Place your cursor in cell ‘G2’
2. From the Ribbon select the tab ‘Formulas’
3. Clickfx Insert Function
4. When prompted, type ‘AverageIF’ in the ‘Search for a function:’
box
5. Click the ‘Go’ button
6. Click the ‘OK’ button:
In the Function Arguments dialogue box enter the following:
A. For the Range click the column ‘B’ (this column lists the
quarter)
B. For the Criteria enter ‘1’ for Quarter 1 (note: if this were a text
field, you would encapsulate the text with double quotes “ ”)
C. For the Average_range click the column ‘C’ (this column list
the Apple sales)
7. Click the ‘OK’ button

The average sales for Q1 are $295:

8. Copy the formula down through cells ‘G3’ – ‘G5’ and change the
‘Criteria’ value for the appropriate quarter (i.e. 2,3, & 4 for
quarters 2-4)

COUNTIFS: How many times per quarter were sales greater than $400?
In this example, we need to determine two items: A) the quarter AND B) the
number of times sales were greater than $400
1. Place your cursor in cell ‘H2’
2. From the Ribbon select the tab ‘Formulas’
3. Clickfx Insert Function
4. When prompted, type ‘CountIFS’ in the ‘Search for a function:’
box
5. Click the ‘Go’ button
6. Click the ‘OK’ button:
In the Function Arguments dialogue box enter the following:
For the Criteria_range1 click column ‘B’
For the Criteria1 enter ‘1’ for Quarter 1
For the Criteria_range2 click column ‘C’
For the Criteria2 enter “>400” for sales greater than $400,
(make sure >400 is in double quotes “ ”)
7. Click the ‘OK’ button

8. Copy the formula down through cells ‘H3’ – ‘H5’ and change the
‘Criteria1’ value for the appropriate quarter (i.e. 2,3, & 4 for
quarters 2-4)
COUNTIF
The total number of times over all quarters, sales were greater than $400?
1. Place your cursor in cell ‘J2’
2. From the Ribbon select the tab ‘Formulas’
3. Clickfx Insert Function
4. When prompted, type ‘CountIF’ in the ‘Search for a function:’
box
5. Click the ‘Go’ button
6. Select ‘CountIF’ and click the ‘OK’ button:
In the Function Arguments dialogue box enter the following:
A. For the Range click the column ‘C’
B. For the Criteria enter “>400” for sales greater than $400, (make
sure >400 is in double quotes “ ”)
7. Click the ‘OK’ button

The result is; 5 times over all quarters, sales were greater than $400
Result Explanations:
1. Average Function Result: $769.71
The average function is used to find the average between a set of numbers. In this case,
we used the average function to find the average sales from Monday to Thursday.
2. Count Function Result: 2
The count function is used to find the quantity of numbers present in the given set of
data. In the example above, it is used to find how many days did a certain hero work and
who is the hero who worked the most.
3. CountA Function Result: 6
The countA function is used to find cells which are non-blank. This is used to find if how
many units are present in a group of cells.
4. CountBlank Function Result: 3
The CountBlank function is used to find the number of blanked cells in a data. This can
be used in finding which cells are missing or if there are absences.
5. CountIF Function Result: 3, 2, 3
The CountIF function is used to find the number of cells which meets a specific criterion.
In the situation given, different criteria are given, and the function finds the number of
cells which meets the critera.
6. CountIFS Function Result: 2, 1
This function is like the CountIF function but in this function, more than one criterion
can be set. It can count cells even if there are different criteria and ranges that the user
requires.
7. SumIF Function Result: $884
The sumIF function is used to add values that meets the criterion given. If the cell is
within the criteria, the values inside it will be added.
8. AverageIF function Result: $295
The averageIF function will find the average of the numbers which meets the criteria.
The values in a cell that meets the criteria will be used to find the average.

Вам также может понравиться