TWO - Lecture 2, 3 AND 4 Advanced Excel
TWO - Lecture 2, 3 AND 4 Advanced Excel
TWO - Lecture 2, 3 AND 4 Advanced Excel
EDDONS MUNTHALI
Vocabulary
Argument
Some of the Types of Functions
date and time functions
financial functions
logical functions
mathematical functions
statistical functions
text functions
trigonometric functions
2
Cell referencing
=A2 * B2 =$A$2 * B2
=A3 * B3 =$A$3 * B3
=A4 * B4 =$A$4 * $B$4
=A5 * B5
Mixed Cell reference
=A$4 * $B4
What Are Functions?
A function is a shorthand/shortcut way to
write an equation that performs a
calculation.
A formula with a function has three parts:
The equal sign identifies the cell contents as a
formula.
The function name identifies the operation to
be performed.
The argument is the value the function uses to
perform a calculation.
Parts of a function
4
Using Functions in Excel
Faster execution
The Increase/Decrease
decimal buttons do NOT
change a value only how
the value is displayed.
=COUNTIF(B5:B8, ”H”)
The COUNTIF Function counts the number of
items in a range that meet a specific criteria.
COUNTIF (range*, criteria) –
Range - a continuous cell range
Criteria Syntax:
- A number 6 =COUNTIF(B2:B7,6)
- Text “USA” =COUNTIF(A1:A50,“USA”)
- A cell reference B2 =COUNTIF(C3:C10,B2)
- A Boolean expression “>5” =COUNTIF(A1:A10,“>5”)
* The comma tells the computer the next argument is the criteria – so
you cannot list individual cells separated by a comma for the range
How many people scored above 6
points on either lab?
The SUMIF Function sums the values in a
range that meet a specific criteria
SUMIF(range, criteria, sum-range)
Range – Continuous range used to compare the criteria
Criteria – Comparison Criteria
Sum-Range - If criteria is met, the computer will sum
the corresponding entry in this range
The syntax of the criteria is the same as the syntax of
the COUNTIF function:
- a number such as 6
- text such as “Honor”
- a Boolean value such as “<2”
- a cell reference such as A1
Sumif Function
=SUMIF(B$2:B$6,A9, C$2:C$6)
Use the AVERAGEIF function to average values
that meet a specified criteria – average number of
courses taken by students in each college
=AVERAGEIF(B$2:B$6,A9, C$2:C$6)