You are on page 1of 28

1

Where number1, number2 are 1 to 30 numeric arguments.


Arguments can either be numbers, ranged names or ranges
of cell references which contain numbers.

= SUM(number1, number2, ) Calculates the sum of a list of values
=AVERAGE(number1, number2,
)
Calculates the average value of a list of
values
=MIN(number1, number2, ) Calculates the minimum value in a list of
values
=MAX(number1,number2,) Calculates the maximum value in a list of
values
=COUNT(number1,number2,) Determines the number of values in a list
(Ignores cells that contain text)
=COUNTA(number,number2,) Does not ignore cells that contain text
=STDEV(number,number2,) Returns the standard deviation a list of
values
2
Write an Excel formula in cell Gradebook!H3, to calculate the
total points earned for the student Teri Brown. Copy the formula
so it calculates the total points earned for each student in the list.
(sums a range of values)
3
Write an Excel formula in cell Gradebook!I3, to calculate the
percentage grade for the student Teri Brown. Copy the formula
so it calculates the percentage grade for each student in the list.
4
Write an Excel formula in cell Gradebook!D9 to calculate the
highest score received on Lab1. Copy the formula so it calculates
the highest score received on each Lab, Midterm, Final, etc.
(returns the maximum value in a range)
5
What about the green triangles?
Excel tries to be smart and tell you that you might have an error
in your formula. How do you fix this? First check, do you have
an error in the formula. If not, just ignore the error.
(returns the minimum value in a range)
6
Write an Excel formula in cell Gradebook!D10 to calculate the
lowest score received on Lab1. Copy the formula so it calculates
the lowest score received on each Lab, Midterm, Final, etc.
Write an Excel formula in cell Gradebook!D11 to calculate the number
of scores recorded for Lab 1. Copy the formula so it calculates the
number of scores recorded on each Lab, Midterm, Final, etc.
(returns the number of items in a range)
7
What happens if you delete the Lab 1 score for Teri Brown?
Function used to calculate a loan payment amount using
principal, interest rate and number of payment periods.

=PMT(rate, nper,pv)
=PMT( .09/12,4*12,24000)
New Perspectives on
Microsoft Office Excel 2003 Tutorial 2
9
A B C D
1 5
2 6
3
4
In C3, =A1+B2 means
Display sum of the content of cell which is 2 columns to the left
and 2 rows above
and the content of cell which is 1 column to the left and
1 row above.
When this formula is copied to other cells, the same instruction is
copied.
E.g., if the formula is copied to D4, it becomes =B2+C3.
A B C D
1 5
2 6
3
4
In C3, =$A$1+B2 means
Display the sum of the content of cell which is at A1
and the content of cell which is 1 column to the left and 1 row above.
When this formula is copied to other cells, the same instruction is copied.
E.g., if the formula is copied to D4, it becomes =$A$1+C3.
New Perspectives on
Microsoft Office Excel 2003 Tutorial 2
13
The arguments for the IF function are:
IF(logical_test,value_if_true,value_if_false)
For example, the function =IF(A1=10,20,30) tests whether
the value in cell A1 is equal to 10
If it is, the function returns the value 20, otherwise the
function returns the value 30
Cell A1 could be empty or contain anything else besides
the value 10 and the logical test would be false; therefore,
the function returns the value 30
To insert an IF function, click the Insert Function button and
search for the IF function, then click OK.
When the Function Arguments dialog box appears, simply fill
in the arguments.

A B C D E F
1 Name Exam Grade
2 Adams 87 Pass
3 Benson 92 Pass
4 Carson 68 Fail
5 Danson 78 Pass
6
=IF(B2>=70,Pass,Fail)
Form
=IF(condition,
value-for-TRUE-case,
value-for-FALSE-case)
Example
Assume: B2 contains semester average
Then, in C2, we can have:
=IF(B2>=70, Pass, Fail)
Suppose letter grades for exam scores are
assigned as follows:
A 90 or above
B 80 or above, but less than 90
C 70 or above, but less than 80
D 60 or above, but less than 70
F less than 60
Use VLOOKUP() function to assigning letter
grade to a score, buy looking up a table.
A B C D E F G H
1 Name Exam Grade
2 Adams 87 B
3 Benson 92 A
4 Carson 68 D
5 Danson 78 C
6 Criteria
7 0 F
8 60 D
9 70 C
10 80 B
11 90 A
Format
=VLOOKUP( Value to look up,
The range of the table,
The column number containing
the grade)
For example,
In the preceding case
=VLOOKUP(B2, $G$7:$H$11,2)
In the VLOOKUP(), the 2
nd
argument, the
range for the lookup table, should be in
absolute address.
In the lookup table, values to be looked up
should be in ascending order (from small
to larger).
A B C D E F G H
1 Name Exa
m
Grade
2 Adams 87 B
3 Benson 92 A
4 Carson 68 D
5 Danson 78 C
6
7
8 Criteria
9 0 60 70 80 90
10 F D C B A
11
Format
=HLOOKUP( Value to look up,
The range of the table,
The row number containing
the grade)
For example,
In the preceding case
=HLOOKUP(B2, $B$(:$F$10,2)
In the HLOOKUP(), the 2
nd
argument, the
range for the lookup table, should be in
absolute address.
In the lookup table, values to be looked up
should be in ascending order (from small
to larger) from left to right.
Returns the result of a number raised to a power.
Syntax
POWER(number,power)
Number is the base number. It can be any real
number.
Power is the exponent to which the base number
is raised.
Remark
The "^" operator can be used instead of POWER to
indicate to what power the base number is to be
raised, such as in 5^2.return 25

23
The PRODUCT function multiplies all the
numbers given as arguments and returns
the product. For example, if cells A1 and
A2 contain numbers, you can use the
formula =PRODUCT(A1, A2) to multiply
those two numbers together. You can also
perform the same operation by using the
multiply (*) mathematical operator; for
example,=A1 * A2.
24
The FLOOR function is used to round a number
downwards to the nearest multiple of a specified
value.
For example, the function can be used to round
down the costs of items to the nearest dime ( $
0.10 ) to avoid having to deal with smaller change
such as pennies ($ 0.01 ) and nickels ($ 0.05 ).
The syntax for the FLOOR function is:
= FLOOR ( Number, Significance )
Number - the value to be rounded.
Significance - the function rounds the Number
specified above down to the nearest multiple of
this value.

25
26
The CEILING function is used to round a number
upwards to the nearest multiple of a specified
value.
For example, the function can be used to round up
the costs of items to the nearest dime ( $ 0.10 ) to
avoid having to deal with smaller change such as
pennies ($ 0.01 ) and nickels ($ 0.05 ).
The syntax for the CEILING function is:
= CEILING ( Number, Significance )
Number - the value to be rounded.
Significance - the function rounds the Number
specified above up to the nearest multiple of this
value.

27
28

You might also like