0% found this document useful (0 votes)
80 views31 pages

Y9 W02 L03 Excel Basic Functions Exercise 9DigiTech

Uploaded by

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

Y9 W02 L03 Excel Basic Functions Exercise 9DigiTech

Uploaded by

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

1.

Excel Basic Functions Exercise


Excel has a variety of tools, functions and commands that are available for yo

These features can make using Excel much easier.


Some of the functions may take a few minutes to understand, but are worth th

This workbook is set up as a tutorial to walk you through the at least a dozen
features.

Each worksheet has a brief description of the feature, instructions on how to


feature and then some data on which to practice using the function, comman

So click on each tab at the bottom of the worksheet page in order to walk thro
tutorial.
Exercise
e available for your use.

, but are worth the effort.

at least a dozen or so

tions on how to use the


nction, command or tool.

order to walk through this


Janurary 3 Janurary 4 Janurary 5 Janurary 6 Janurary 7 Janurary 8 Janurary 9 Janurary 1 Janurary 1
Janurary 10
Janurary 11
Janurary 12
Janurary 13
Janurary 14
Janurary 15
Janurary 16
Janurary 17
Janurary 18
Janurary 19
Janurary 20

Fill
FillFunction
Function
Information: To save unnecessary typing and time, Excel will automatically fill in information for you
Information: To save unnecessary typing and time, Excel will automatically fill in information for you
.
.
Activity 1:
Activity 1:
1. Type January in cell A1
1. Type January in cell A1
2. Go back to cell A1, click your mouse in the lower right corner of the cell (when a black cross will appear), and dr
2. Go back to cell A1, click your mouse in the lower right corner of the cell (when a black cross will appear), and d
Column N and then let go.
Column N and then let go.
3. Highlight A1, click your mouse in the lower right corner and drag down to line 12 and then let go.
3. Highlight A1, click your mouse in the lower right corner and drag down to line 12 and then let go.
4. Repeat Step 2 but hold the control key down as you drag.
4. Repeat Step 2 but hold the control key down as you drag.
5. Try it using an abbreviation of the months, e.g. Jan, try dragging down from cell F1 to F12 or drag to the right fro
5. Try it using an abbreviation of the months, e.g. Jan, try dragging down from cell F1 to F12 or drag to the right f
Activity 2:
Activity 2:
1. Do steps 1 to 3 as in Activity1 but type Monday in A1 instead.
1. Do steps 1 to 3 as in Activity1 but type Monday in A1 instead.
2. Repeat Step 1 but hold the control key down as you drag.
2. Repeat Step 1 but hold the control key down as you drag.
3. Try it using an abbreviation of the days, e.g. Mon
3. Try it using an abbreviation of the days, e.g. Mon
Activity 3
Activity 3
1. Do steps 1 to 3 as in Activity 1 by type 10:30 AM in A1 instead.
1. Do steps 1 to 3 as in Activity 1 by type 10:30 AM in A1 instead.
2. Repeat Step 1 but hold the control key down as you drag.
2. Repeat Step 1 but hold the control key down as you drag.
Activity 4
Activity 4
1. Type 1 in A1, 3 in A2 and 5 in A3.
1. Type 1 in A1, 3 in A2 and 5 in A3.
2. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the selected cells and then drag
2. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the selected cells and then drag
3. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the cell and then drag down to row
3. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the cell and then drag down to r
4. Repeat Step 2 but hold the control key down as you drag.
4. Repeat Step 2 but hold the control key down as you drag.
Activity 5
Activity 5
1. Type Ann in A1, Beth in A2 and Sue in A3.
1. Type Ann in A1, Beth in A2 and Sue in A3.
2. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the cell and then drag to the righ
2. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the cell and then drag to the rig
3. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the cell and then drag down to row
3. Block select cells A1, A2 and A3, click your mouse in the lower right corner of the cell and then drag down to r
Activity 6
Activity 6
1. Type January 3 in A1 and January 10 in A2.
1. Type January 3 in A1 and January 10 in A2.
2. Block select cells A1 and A2, click your mouse in the lower right corner of the cell and then drag to the right to c
2. Block select cells A1 and A2, click your mouse in the lower right corner of the cell and then drag to the right to
3. Block select cells A1 and A2, click your mouse in the lower right corner of the cell and then drag down to row 12
3. Block select cells A1 and A2, click your mouse in the lower right corner of the cell and then drag down to row 1
Activity 7
Activity 7
1. Experiment with other words or numbers or combinations.
1. Experiment with other words or numbers or combinations.
1. Experiment with other words or numbers or combinations.
Janurary 1 Janurary 1 Janurary 1 Janurary 1 Janurary 16

rmation for you


ormation for you

black cross will appear), and drag across to


black cross will appear), and drag across to
and then let go.
2 and then let go.
F1 to F12 or drag to the right from cell F6 to column P.
F1 to F12 or drag to the right from cell F6 to column P.

e selected cells and then drag to the right to column N.


he selected cells and then drag to the right to column N.
e cell and then drag down to row 12.
he cell and then drag down to row 12.

e cell and then drag to the right to column N.


he cell and then drag to the right to column N.
e cell and then drag down to row 12.
he cell and then drag down to row 12.

l and then drag to the right to column N.


ell and then drag to the right to column N.
l and then drag down to row 12.
ell and then drag down to row 12.
Hours of
Community
Name Home Town Service Hint: the autosum button
Bill Adams Charlotte 5 should be someplace above the arrow
Sandra Brown Dallas 13
Ted Carpenter Winston 10
Doug Dublin
Bob Edwards
Greenville
Wilson
9
6
SUM
SUMFunction
Function
Fred Fortner Rocky Mount 8
Information: Sum adds all the numbers in a selected
Ralph Green Charlotte 23 Information: Sum adds all the numbers in a selecte
contiguous (adjacent) cells.
Dan Hunter Asheville 15 contiguous (adjacent) cells.
Ted Jones Concord 10 The sum function adds all the numbers in a column
Carol Kitchens Asheboro 11 The sum function adds all the numbers in a column
were to type the following command =sum(c2:c38)
were to type the following command =sum(c2:c38
Bob Dale Boone 7 would add all the numbers in Column C starting with
would add all the numbers in Column C starting w
Dale Green Washington 17 ending with row 38.
ending with row 38.
Matt Hardison Goldsboro 12
Remember, always type the = to start a formula or fu
Jenny Jones New Bern 7 Remember, always type the = to start a formula or
colon is used to designate the first and last cell in the
Laura King Greensboro 20 colon is used to designate the first and last cell in t
the formula. All the cells in between will be included.
Candy Moore Graham 12 the formula. All the cells in between will be included
Tom Anderson Sanford 12 However, the quickest way to sum the numbers in co
However, the quickest way to sum the numbers in
Rick Nelson Richlands 10 use the autosum button.
use the autosum button.
Cathy Smith Jacksonville 9 1. Place your cursor where you want the answer to a
1. Place your cursor where you want the answer to
Donna Shirley Charlottte 11 2. Click the AutoSum button.
2. Click the AutoSum button.
It is on the toolbar and looks
Carol Short Wilmington 8 It is on the toolbar and looks
like the Greek Sigma.
Jennifer Watson Clinton 25 like the Greek Sigma.
3. Make sure the crawling lines ("ants")
Lawrence Madison Surf City 21 3. Make sure the crawling lines ("ants")
surround all the cells you want to add.
Paul Walston Boone 15 surround all the cells you want to add.
4. Then click the Autosum button again or type <En
4. Then click the Autosum button again or type <E
Pedro Rogers Henderson 13
Frank Black Conetoe 4
Harry Hammer Bunn 12
Melvin Bower Statesville 11
Donald Priest Asheville 16
Ronnie Rivers Blowing Rock 9
Missy Brown Henderson 22
Gary Schell Bunn 20
John Henderson Clinton 12
Paul Isenberg Nags Head 6
Hank Greenburg Wilmington 18
Randy White Statesville 10
June Flowers Reidsville 23 Question to Answer: How many hours of
472 community service did this class do?
421
osum button
omeplace above the arrow

on
ion
all the numbers in a selected range of
s all the numbers in a selected range of
ells.
cells.
all the numbers in a column or row. If you
s all the numbers in a column or row. If you
ng command =sum(c2:c38) in cell C39 this
ing command =sum(c2:c38) in cell C39 this
ers in Column C starting with row 2 and
bers in Column C starting with row 2 and

e the = to start a formula or function. The


pe the = to start a formula or function. The
ate the first and last cell in the range to use in
nate the first and last cell in the range to use in
in between will be included.
ls in between will be included.
way to sum the numbers in column C is to
way to sum the numbers in column C is to
n.
on.
ere you want the answer to appear (C39).
here you want the answer to appear (C39).
utton.
button.
d looks
nd looks
.
a.
ng lines ("ants")
ling lines ("ants")
you want to add.
s you want to add.
um button again or type <Enter>.
sum button again or type <Enter>.

ny hours of
lass do?
23 5687
1. Let's now add the values in cells A1 to A7 and put their
56 36 1. Let's now add the values in cells A1 to A7 and put their
total in cell A8.
45 89 total in cell A8.
2. Let's now put that total in cell F9.
78 45 2. Let's now put that total in cell F9.
3. Now, add the values in cells C1 to C7 and put their
3. Now, add the values in cells C1 to C7 and put their
12 25 total in cell C8.
total in cell C8.
6 361 4. Add the totals of cells A8 and C8 and put the answer in
4. Add the totals of cells A8 and C8 and put the answer in
25 25873 cell F9.
cell F9.
245 32116
32361

5. Let's now add the values in cells A16 to E16


5. Let's now add the values in cells A16 to E16
2 5 6 7 8 28 their total in cell F16.
their total in cell F16.
6. Let's now put that total in cell K9.
17 25 65 84 95 286 6. Let's now put that total in cell K9.
7. Now, use Drag and Fill to add the values in ro
12 123 45 874 965 314 7. Now, use Drag and Fill to add the values in
placing the totals in cells F17 through to F20.
357 259 12 164 548 1340 placing the totals in cells F17 through to F20
8. Add the totals of cells A16 to A20 and put the
45 25 487 214 36 807 8. Add the totals of cells A16 to A20 and put th
cell A21.
cell A21.
433 437 615 1343 1652 0 9. Now, use the Drag and Fill function to obtain
9. Now, use the Drag and Fill function to obtain
7255 row 21 for columns B through to F.
row 21 for columns B through to F.
put their
nd put their

their
t their
answer in
answer in

the values in cells A16 to E16 and put


d the values in cells A16 to E16 and put
ell F16.
cell F16.
that total in cell K9.
t that total in cell K9.
g and Fill to add the values in rows 17 to 20,
ag and Fill to add the values in rows 17 to 20,
tals in cells F17 through to F20.
otals in cells F17 through to F20.
of cells A16 to A20 and put the answer in
s of cells A16 to A20 and put the answer in
Drag and Fill function to obtain the totals in
e Drag and Fill function to obtain the totals in
umns B through to F.
olumns B through to F.
1 3 3 =A1*B1
2 3 6 =A2*B2
3 3 9 =A3*B3
Multiply Function Drag and Fill
Using the drag and fill function, we can multiply a column of numbers. If we dr
4 3 12 =A4*B4 the formula in cell C1 down column C, Excel will copy the formula to the cells
5 3 15 =A5*B5 below where it will multiply the two adjacent cells.
6 3 18 =A6*B6
7 3 21 =A7*B7 Notice how the formula changes the cell references to the adjacent cells. This
8 3 24 known as RELATIVE CELL REFERENCING. The cell references move relati
9 3 28 the movement of the cell containing the formula.
10 3 31
11 3 34 =A11*B11
See what happens if you drag the formula to the right, say, copy the formula in
C11 to cell D11 and then E11. What happens? Double click the cell to
observe what happened.

2 3 6 =PRODUCT(A4:B4) 2 x 3 x 6 = 36

2 3 4 11 24 =PRODUCT(A17:C17)
3 4 4 11
4 5 4 22
5 6 4 15 Product Function
The result of a multiplication process is known as the PRODUCT.
6 7 4 17
The product function multiplies all the numbers in a column or row. If
you were to type the following formula =PRODUCT(A15:B15) in cell
C15 this would multipy the numbers in the two cells mentioned.

Likewise, the formula =PRODUCT(A17:C17) will multiply the


numbers in the three cells mentioned.

Now drag the product function in cell D17 down to D21.


nd Fill
ltiply a column of numbers. If we drag
el will copy the formula to the cells
nt cells.

eferences to the adjacent cells. This is


NG. The cell references move relative to
mula.

to the right, say, copy the formula in


ens? Double click the cell to

s is known as the PRODUCT.

he numbers in a column or row. If


ula =PRODUCT(A15:B15) in cell
s in the two cells mentioned.

A17:C17) will multiply the


ed.

ll D17 down to D21.


1 =A1*$B$1
2 6 =A2*$B$1
ABSOLUTE Cell Reference
3 =A3*$B$1 With RELATIVE CELL REFERENCING the cells referenced by the formula
4 =A4*$B$1 the way the function is copied.
5 =A5*$B$1
6 =A6*$B$1 In the three times table in the cell range A1:C12 we copied the number "3" d
7 =A7*$B$1 can avoid this by making the cell reference for B1 an ABSOLUTE cell refere
8 =A8*$B$1 cell reference by using dollar "$" signs around the cell reference.
9 =A9*$B$1
When on a cell, we can apply the dollar "$" signs by striking the F4 key. In t
10 =A10*$B$1 formula =A1*B1, place the cursor over the B1 in the function and strike the
11 =A11*$B$1 =A1*$B$1 After doing that we can drag the formula down.
12 =A12*$B$1
It is not necessary that cells in a function are adjacent to one another. One
several rows or columns away or even in another workbook or even another

For instance, let's put the number 3 in cell N10 and remove column B altoge
the formula replacing B1 by N10 and then drag the formula. What happene

Now make cell N10 an absolute cell reference. Now what happens?

The F4 key toggles through four variants of relative, absolute and mixed cell references.
When the cell reference is first struck with the F4 key toggle it changes from a relative cell reference to an absolute cell ref
both the column and row reference - $B$1. This means that regardless of what way we drag the function the cell reference

The next two toggles leads to a mixed cell reference, the first is where the row remains locked but the column is relative - B
or right the values will alter according to values in adjacent cells relative to the movement of the cell containing the function,
down the value will not change.

The second is where the column remains locked but the row is relative - $B1. If you drag the referenced formula up or dow
adjacent cells relative to the movement of the cell containing the function, however, if the function is dragged left or right the

The fourth toggle returns the cell reference to a relative cell reference B1.

Test it:
1. Go to the highlighted cell J40 and type the function =C40, containing the cell reference C40. Drag the function left or righ
2. Now, return to J40 and select the cell reference C40 and strike the F4 key. Now drag the function in each direction. Wh
3. Repeat step 2 above twice more and observe what happens.

2 4 6 8 10
3 16 17 29 15
4 64 28 60 20
5 256 39 81 25
referenced by the formula will move relative to

we copied the number "3" down column B. We


an ABSOLUTE cell reference. We "lock" the
cell reference.

by striking the F4 key. In the cell containing the


he function and strike the F4 key. It changes to
la down.

cent to one another. One of the cells could be


workbook or even another workbook.

d remove column B altogether. Now, create


e formula. What happened?

ow what happens?

nce to an absolute cell reference, where the dollar $ sign precedes


function the cell reference will not change.

ut the column is relative - B$1. If you drag the referenced formula left
ell containing the function, however, if the function is dragged up or

erenced formula up or down the values will alter according to values in


is dragged left or right the value will not change.

Drag the function left or right, up or down. What happens?


ion in each direction. What happened?
1 2 3 4 5 6 7 8 9 10 11 12
1 1 2 3 4 5 6 7 8 9 10 11 12
2 2 4 6 8 10 12 14 16 18 20 22 24
3 3 6 9 12 15 18 21 24 27 30 33 36
4 4 8 12 16 20 24 28 32 36 40 44 48
5 5 10 15 20 25 30 35 40 45 50 55 60 Maths Table Challenge
6 6 12 18 24 30 36 42 48 54 60 66 72 You are required to create a single form
7 7 14 21 28 35 42 49 56 63 70 77 84 will be able to drag to the right and down
8 8 16 24 32 40 48 56 64 72 80 88 96 twelve times table.
9 9 18 27 36 45 54 63 72 81 90 99 108
10 10 20 30 40 50 60 70 80 90 100 110 120
11 11 22 33 44 55 66 77 88 99 110 121 132
12 12 24 36 48 60 72 84 96 108 120 132 144

Solution:
ble Challenge
ired to create a single formula in cell B2 that you
o drag to the right and down that will produce the
table.
Hours of
Community
Name Home Town Service
Bill Adams
Sandra Brown
Charlotte
Dallas
10
13
AVERAGE Function
Ted Carpenter Winston 10
Information: The Average function finds the average value of all value
Doug Dublin Greenville 9 range of cells.
Bob Edwards Wilson 6
Fred Fortner Rocky Mount 8 Excel handles a blank cell and a cell with a 0 differently. If a cell is blan
Ralph Green Charlotte 23 it in calcuating the average. If you want a blank cell to represent zero (
Dan Hunter Asheville 15 type a 0 in that cell.
Ted Jones Concord 10
The average function adds all the numbers in a column or row and the
Carol Kitchens Asheboro 11
number of cells that contain data. If you were to type the following com
Bob Dale Boone 7 =average(c2:c43) in cell C44 this would add all the numbers in Colum
Dale Green Washington 17 row 2 and ending with row 43 and then divide that by the number of ce
Matt Hardison Goldsboro 12
Jenny Jones New Bern 7
Laura King Greensboro 20
Candy Moore Graham 12
Tom Anderson Sanford 12 The Average function may be obtained by selecting the Average func
Rick Nelson Richlands 10 the AutoSum button. Alternatively, it may be found in the Insert Func
Cathy Smith Jacksonville 9 after clicking the Insert function button in the Formula bar.
Donna Shirley Charlottte 11
Carol Short Wilmington 8
Jennifer Watson Clinton 25
Lawrence Madison Surf City 21
Paul Walston Boone 15
Pedro Rogers Henderson 13
Frank Black Conetoe 4
Harry Hammer Bunn 12
Melvin Bower Statesville 11
Donald Priest Asheville 16
Ronnie Rivers Blowing Rock 9
Missy Brown Henderson 22
Gary Schell Bunn 20
John Henderson Clinton 12
Paul Isenberg Nags Head 10
Hank Greenburg Wilmington 18
Randy White Statesville 10
June Flowers Reidsville 23
Bob Jenkins Garner
Bo Lewis Randelman
Ray Cline Cary
Jane Cline Cary Questions to Answer:
Pam Bookholt Charlotte 1. How many hours of community service
did this class average per student? Type
13
the formula =average(c2:c43) in cell C44.
1 13.0 13.00 Look at the answer in C44.
2 13 11.45
2. Now type 0 (Zero, not the letter O) in
cells C39, C40, C41, C42, C43. Is the
answer different now that the cells have a
0 instead of a blank?
did this class average per student? Type
the formula =average(c2:c43) in cell C44.
Look at the answer in C44.

2. Now type 0 (Zero, not the letter O) in


cells C39, C40, C41, C42, C43. Is the
answer different now that the cells have a
0 instead of a blank?
on
ds the average value of all values in a selected

with a 0 differently. If a cell is blank, Excel will ignore


nt a blank cell to represent zero (0), then you must

mbers in a column or row and then divides by the


ou were to type the following command
uld add all the numbers in Column C starting with
n divide that by the number of cells containing data.

ed by selecting the Average function after clicking


may be found in the Insert Function dialog box
tton in the Formula bar.

nity service
ent? Type
n cell C44.

ter O) in
Is the
cells have a
ent? Type
n cell C44.

ter O) in
Is the
cells have a
45 65 78 23 65 55.2
45 77 51 35 54 52.4
65 24 158 99 82 85.6
36 68 42 57 68 54.2
17 58 43 76 61 51
Total 208 292 372 290 330 298.4

Average 69.33333 97.33333 124 96.66667 110

St. Dev. 69.68692 97.0972 129.1433 98.60358 108.1758

1. Obtain the total for each column in row 6.


1. Obtain the total for each column in row 6.
2. Obtain the average for each column in row 8.
2. Obtain the average for each column in row 8.
3. Obtain the standard deviation for each column in row 10.
3. Obtain the standard deviation for each column in row 10.
4. Obtain the average for each row for rows 1 to 5 in column G.
4. Obtain the average for each row for rows 1 to 5 in column G.
.
mn in row 10.
mn in row 10.
5 in column G.
o 5 in column G.
Hours of
Community
Name Home Town Service
Jennifer Watson
Ralph Green
Clinton
Charlotte
25
23
Sort Function
June Flowers Reidsville 23
Information: There may be times when you want to
Missy Brown Henderson 22 rearrange your data. We typically use the sort tool.
Lawrence Madison Surf City 21
Laura King Greensboro 20 Let us suppose we would like to resort this data
Gary Schell Bunn 20 according to hours of community service. We want to list
Hank Greenburg Wilmington 18 the students from the most hours of community service
Dale Green Washington 17 to the least hours.
Donald Priest Asheville 16
Steps:
Dan Hunter Asheville 15 1. Block the entire set of rows to be sorted (1-43). Do
Paul Walston Boone 15 this by dragging your mouse over the numbers to the left
Sandra Brown Dallas 13 of the rows. This will highlight each row. (DO NOT just
Pedro Rogers Henderson 13 block the cells or column where hours of community
Matt Hardison Goldsboro 12 service are located. If you do this, you will mess up your
Candy Moore Graham 12 data since this information will be sorted but the name
and home town will not.)
Tom Anderson Sanford 12
[Alternatively, select the cell range A1:C43 ]
Harry Hammer Bunn 12 2. Click on Data on the toolbar
John Henderson Clinton 12 3. Click on Sort
Carol Kitchens Asheboro 11 4. Then select the column on which to sort (either
Donna Shirley Charlottte 11 Column C or Hours of Community Service)
Melvin Bower Statesville 11 5. Then select the Descending option to go from most
Bill Adams Charlotte 10 to least.
Ted Carpenter Winston 10 6. Then click OK
Ted Jones Concord 10
Rick Nelson Richlands 10
Paul Isenberg Nags Head 10
Randy White Statesville 10
Doug Dublin Greenville 9
Cathy Smith Jacksonville 9
Ronnie Rivers Blowing Rock 9
Fred Fortner Rocky Mount 8 Questions to Answer:
Carol Short Wilmington 8 1. Which student worked the most hours?
Bob Dale 0 7 Jennifer Watson
Jenny Jones New Bern 7 2. Which student worked the least hours?
Bob Jenkins, Bo Lewis, Ray Cline, Jane Cline, Pam
Bob Edwards Wilson 6 Bookholt
Frank Black Conetoe 4 3. How many students did 20 or more
Bob Jenkins Garner hours?
Bo Lewis Randelman 7 students
Ray Cline Cary 4. We can use the Countif function to do
Jane Cline Cary question 3. Try it.
Pam Bookholt Charlotte ok
n you want to
the sort tool.

t this data
ce. We want to list
ommunity service

orted (1-43). Do
numbers to the left
w. (DO NOT just
of community
will mess up your
ed but the name
Note: This is just a sample image of the Sort
A1:C43 ]
dialog box and does not contain data related
to this specific exercise.
sort (either
ervice)
n to go from most

most hours?

east hours?
ne Cline, Pam

or more

ction to do 1 Jennifer watson


2 Frank Black
3 7
4 7
Hours of
Community
Name Home Town Service
Bill Adams charlotte 5
Sandra Brown Dallas 13
Ted Carpenter Winston 10
Doug Dublin Greenville 9
Bob Edwards Wilson 6
Fred Fortner Rocky Mount 8
Ralph Green Charlotte 23 COUNTIF
COUNTIFFunction
Function
Dan Hunter Asheville 15
Ted Jones Concord 10 Information: The Countif function counts the num
Information: The Countif function counts the nu
a specific word, phrase or number appears in the
Carol Kitchens Asheboro 11 a specific word, phrase or number appears in th
cells.
Bob Dale Boone 7 cells.
Dale Green Washington 17 Format: =COUNTIF(B2:B38,"Charlotte" )
Matt Hardison Goldsboro 12 Format: =COUNTIF(B2:B38,"Charlotte" )
Another example: =COUNTIF(C2:C38,12)
Another example: =COUNTIF(C2:C38,12)
Jenny Jones New Bern 7
Laura King Greensboro 20 In the first example, we are telling Excel to look i
In the first example, we are telling Excel to look
Candy Moore Graham 12 through B38 and count the number of times the w
through B38 and count the number of times the
Charlotte appears. Please note, that when one
Tom Anderson Sanford 12 Charlotte appears. Please note, that when one
a word or words, the words of words must be en
Rick Nelson Richlands 10 a word or words, the words of words must be e
quotation marks " " in the formula.
Cathy Smith Jacksonville 9 quotation marks " " in the formula.
Donna Shirley Charlotte 11 In the second example we are telling Excel to loo
In the second example we are telling Excel to lo
Carol Short Wilmington 8 through C30 and count the number of times the
through C30 and count the number of times the
Jennifer Watson Clinton 25 appears. When you are looking for a number, yo
appears. When you are looking for a number, y
Lawrence Madison Surf City 21 to use quotation marks.
to use quotation marks.
Paul Walston Boone 15
The wording can be upper or lower case.
Pedro Rogers Henderson 13 The wording can be upper or lower case.
Frank Black Conetoe 4
Harry Hammer Bunn 12
Melvin Bower Statesville 11
Donald Priest Asheville 16
Ronnie Rivers Blowing Rock 9
Missy Brown Henderson 22
Gary Schell Bunn 20
John Henderson Clinton 12
Paul Isenberg Nags Head 6 Activity1 : Write a countif command in B39 to
Hank Greenburg Wilmington 18 number of times Charlotte appears in the Ho
Randy White Statesville 10 Column. Now try for Asheville.
June Flowers Reidsville 23
3 5 Activity 2: Write a countif command in C39 to
3 5 number of times the number 12 appears in th
Community Service Column. Now, try for the
10.
3 5

1 4
Function
Function
tif function counts the number of times
ntif function counts the number of times
e or number appears in the selected
se or number appears in the selected

2:B38,"Charlotte" )
B2:B38,"Charlotte" )
OUNTIF(C2:C38,12)
COUNTIF(C2:C38,12)
e are telling Excel to look in cells B2
we are telling Excel to look in cells B2
t the number of times the word
nt the number of times the word
ease note, that when one is looking for
Please note, that when one is looking for
words of words must be enclosed in
words of words must be enclosed in
n the formula.
in the formula.
e we are telling Excel to look in cells C2
le we are telling Excel to look in cells C2
t the number of times the number 12
nt the number of times the number 12
e looking for a number, you do not need
are looking for a number, you do not need
s.
ks.
pper or lower case.
upper or lower case.

ountif command in B39 to count the


arlotte appears in the Home Town
r Asheville.

ountif command in C39 to count the


number 12 appears in the Hours of
Column. Now, try for the number
Hours of
Community Exam Bonus
Name Home Town Service Exam 1 Exam 2 Exam 3 Average Points
Bill Adams Charlotte 5 81 71 77
Sandra Brown Dallas 13 71 90 68 0
Ted Carpenter Winston 10 75 70 90
Doug Dublin Greenville 9 77 99 78
Bob Edwards Wilson 6 93 90 85
Fred Fortner Rocky Mount 8 87 91 85
Ralph Green Charlotte 23 95 92 83
Dan Hunter Asheville 15 83 86 98
Ted Jones Concord 10 82 87 95
Carol Kitchens Asheboro 11 79 62 75
Bob Dale Boone 7 84 91 78
Dale Green Washington 17 83 86 85
Matt Hardison Goldsboro 12 76 86 95
Jenny Jones New Bern 7 90 94 93
Laura King Greensboro 20 96 94 93
Candy Moore Graham 12 80 91 75
Tom Anderson Sanford 12 88 91 88
Rick Nelson Richlands 10 85 87 83
Cathy Smith Jacksonville 9 83 85 98
Donna Shirley Charlottte 11 85 76 75
Carol Short Wilmington 8 71 84 78
Jennifer Watson Clinton 25 88 95 80
Lawrence Madison Surf City 21 96 96 98
Paul Walston Boone 15 72 78 60
Pedro Rogers Henderson 13 89 89 55
Frank Black Conetoe 4 77 88 73
Harry Hammer Bunn 12 73 90 58
Melvin Bower Statesville 11 80 81 87
Donald Priest Asheville 16 90 98 95
Ronnie Rivers Blowing Rock 9 93 90 95
Missy Brown Henderson 22 97 96 98
Gary Schell Bunn 20 100 100 95
John Henderson Clinton 12 95 98 95
Paul Isenberg Nags Head 6 89 88 73
Hank Greenburg Wilmington 18 77 81 80
Randy White Statesville 10 97 89 79
June Flowers Reidsville 23 95 95 93
0

Assign letter grades to students as follows:


0-49 - N
50-59 - E What is a problem of granting
60-69 - D
70-79 - C
all students with 20 or more
80-89 - B hours community service a
90-100 - A bonus of 2 marks?
Final Final Letter Pizza
Average Grade Grade Party??
IF
IFFunction
Function
Information: The IF function enters information in a cell depending upon
Information: The IF function enters information in a cell depending upon
the information contained in another cell.
the information contained in another cell.
Example: The teacher plans to give 2 bonus points on the final class
Example: The teacher plans to give 2 bonus points on the final class
grade if the student spent 20 hours or more performing community
grade if the student spent 20 hours or more performing community
service. The command to be entered in H2 would be:
service. The command to be entered in H2 would be:
=IF(C2>=20,2,0)
=IF(C2>=20,2,0)
What this says if the number in C2 (the hours of community service) is
What this says if the number in C2 (the hours of community service) is
greater than (>) or equal to (=) 20, then enter 2 in this cell. if not then
greater than (>) or equal to (=) 20, then enter 2 in this cell. if not then
enter a 0. One would then drag this formula down to the other cells in
enter a 0. One would then drag this formula down to the other cells in
column H.
column H.
Note: if you want a text statement to appear, it must be in quotation
Note: if you want a text statement to appear, it must be in quotation
marks.
marks.
Note: Two quotation marks with nothing between (“ ”) returns nothing.
Note: Two quotation marks with nothing between (“ ”) returns nothing.
Here are two more examples using text in cell J2:
Here are two more examples using text in cell J2:
=IF(I2<60,”Fails”,”Passes”) --- this is cell i2, not number 12.
=IF(I2<60,”Fails”,”Passes”) --- this is cell i2, not number 12.

Activity 1: Calculate the average of exam marks.

Activity 2: Enter the IF command example given above in H2 and


then drag it down the H column. How many students will get a 2
point bonus on their final grade? (Use a countIF function)

Activity 3: Add the Exam average and the Bonus Points.

Activity 4: Enter the IF function in cell I2, as shown above.

Activity 5: This teacher also announced that any student who


worked 10 or more hours doing community service would get
treated to a pizza party. Enter an IF command in L2 that will return a
YES statement if the student worked 10 or more hours and a NO
statement if the student did not work 10 hours. Copy that command
to the rest of the cells in that column.
`
Activity 6: Assign a letter grade, using a Nested IF function in
column K.

as follows:

blem of granting
th 20 or more
nity service a
An
An“IF”
“IF”statement
statementhas
hasthree
threeparts
parts
rks?
11––The condition to be met (P15=“yes”)
The condition to be met (P15=“yes”)
22––What
Whathappens
happensififthe
thecondition
conditionisismet
met(”Gold
(”GoldStar”)
Star”)
33––What
What happens if the condition is not met (“NoGold
happens if the condition is not met (“No GoldStar”)
Star”)
Commas are used to separate each condition
Commas are used to separate each condition
An
An“IF”
“IF”statement
statementhas
hasthree
threeparts
parts
11––The condition to be met (P15=“yes”)
The condition to be met (P15=“yes”)
22––What
Whathappens
happensififthe
thecondition
conditionisismet
met(”Gold
(”GoldStar”)
Star”)
33––What
What happens if the condition is not met (“NoGold
happens if the condition is not met (“No GoldStar”)
Star”)
Commas are used to separate each condition
Commas are used to separate each condition
a cell depending upon
in a cell depending upon

nts on the final class


ints on the final class
orming community
forming community
d be:
uld be:

community service) is
f community service) is
n this cell. if not then
in this cell. if not then
n to the other cells in
wn to the other cells in

ust be in quotation
must be in quotation
n (“ ”) returns nothing.
en (“ ”) returns nothing.
2:
J2:
, not number 12.
2, not number 12.

s.

n above in H2 and
dents will get a 2
F function)

us Points.

own above.

y student who
vice would get
n L2 that will return a
e hours and a NO
Copy that command

d IF function in

”Gold
(”GoldStar”)
Star”)
met
met (“NoGold
(“No GoldStar”)
Star”)
on
ion
”Gold
(”GoldStar”)
Star”)
met
met (“NoGold
(“No GoldStar”)
Star”)
on
ion

You might also like