Professional Documents
Culture Documents
05-2 IT WKSH Spreadsheet II 2021
05-2 IT WKSH Spreadsheet II 2021
The Hang Seng University of Hong Kong Workshop for IT Proficiency Test
05 Spreadsheet
MS Excel 2019
II. Excel Functions
1
IT Learning Centre
The Hang Seng University of Hong Kong
IT Learning Center 2
IT Learning Centre
The Hang Seng University of Hong Kong
Contents
Spreadsheet II
◼ Formulas
◼ Built-in functions
IT Learning Center 3
IT Learning Centre
The Hang Seng University of Hong Kong
IT Learning Center 4
IT Learning Centre
The Hang Seng University of Hong Kong
1. Formulas
◼ Using a formula can help you analyze data on a
worksheet more easily and efficiently.
◼ With a formula you can perform operations, such
as addition, multiplication, and comparison on
worksheet values.
◼ A Microsoft Excel formula always begins with an
equal sign =
◼ Without = at the beginning, Excel treats the
numeric or text value that you type directly into
a cell as a constant
IT Learning Center 5
IT Learning Centre
The Hang Seng University of Hong Kong
Operators
Operator Description Example
- Negation =-10
% Percent =A1%
^ Exponentiation =A1^2
* and / Multiplication =A1*A2/A1
and division
+ and - Addition and =A1+A2-A3
subtraction
& Text joining =“HELLO”&A1
= < > <= >= <> Comparison =IF(A1<>A2,1,0)
IT Learning Center 5
IT Learning Centre
The Hang Seng University of Hong Kong
References
◼ References are the addresses of cells,
i.e. A1 or B1 etc
◼ 2 major types (differ in the copy-and-
paste action):
◼ Relative reference
◼ Absolute reference
IT Learning Center 7
IT Learning Centre
The Hang Seng University of Hong Kong
Relative References
◼ When relative references are used, as you copy and
paste the cell, Excel will automatically update the
references relative to the position of pasted cell(s).
IT Learning Center 8
IT Learning Centre
The Hang Seng University of Hong Kong
Absolute References
◼ When absolute references are used, the data in that
particular address will be used without change.
◼ An absolute reference is designated by adding a
dollar sign ($) before the column letter and the
row number.
$D$7
is kept
the
same
Hint: You may press F4 to switch between relative and absolute reference 9
IT Learning Centre
The Hang Seng University of Hong Kong
Function_name ( Parameter(s))
Examples
SUM(B2, B3, B4)
SUM(B2:B4)
Specifying a range
IT Learning Center 10
IT Learning Centre
The Hang Seng University of Hong Kong
10
IT Learning Centre
The Hang Seng University of Hong Kong
IT Learning Center 12
IT Learning Centre
The Hang Seng University of Hong Kong
a) Statistical Functions
⚫ AVERAGE() ⚫ COUNT()
⚫ MIN()
⚫ MAX()
⚫ SUM()
IT Learning Center 13
IT Learning Centre
The Hang Seng University of Hong Kong
COUNT(Range)
◼ counts the number of numeric entries
in the given range
◼ Example: COUNT(A1:B7)
IT Learning Center 15
IT Learning Centre
The Hang Seng University of Hong Kong
b) Mathematical Functions
⚫ ABS()
⚫ SQRT()
⚫ ROUND()
⚫ TRUNC()
IT Learning Center 16
IT Learning Centre
The Hang Seng University of Hong Kong
ABS(Num)
◼ returns the absolute value of a given
number
◼ Examples: ABS(3) returns 3
ABS(-3) returns 3
SQRT(Num)
◼ returns the square root of a given
number
◼ Example: SQRT(16) returns 4
IT Learning Center 17
IT Learning Centre
The Hang Seng University of Hong Kong
ROUND(Num1, Num2)
Number of decimal places
IT Learning Center 18
IT Learning Centre
The Hang Seng University of Hong Kong
TRUNC(Num1, Num2)
Number of decimal places
◼ truncates a number to the specified
decimal place(s)
◼ Example: TRUNC(-8.956, 2) gives -8.95
IT Learning Center 19
IT Learning Centre
The Hang Seng University of Hong Kong
20
IT Learning Centre
The Hang Seng University of Hong Kong
d) Text Functions
⚫ MID() ⚫ LEN()
⚫ UPPER() ⚫ CONCATENATE()
⚫ LOWER()
⚫ PROPER()
⚫ TRIM()
IT Learning Center 21
IT Learning Centre
The Hang Seng University of Hong Kong
TRIM(text)
◼ removes all spaces from text except for
single space between words
◼ Example:
Trim(“ First Quarter ”) returns “First Quarter”
spaces 22
IT Learning Centre
The Hang Seng University of Hong Kong
UPPER(text)
◼ converts all letters in a text string to
uppercase
◼ Example: UPPER(“School”) returns “SCHOOL”
LOWER(text)
◼ converts all letters in a text string to
lowercase
◼ Example: LOWER(“School”) returns “school”
IT Learning Center 23
IT Learning Centre
The Hang Seng University of Hong Kong
LEN(text)
◼ returns the length of a string
◼ Examples
LEN(“Excel”) returns 5
LEN(“MS Excel”) returns 8
IT Learning Center 24
IT Learning Centre
The Hang Seng University of Hong Kong
CONCATENATE(text1, text2, …)
◼ joins several text strings into one
string
◼Example
CONCATENATE(“EXCEL ”, “is easy”) returns
“EXCEL is easy”
PROPER(text)
◼ capitalizes the first letter in text and any
other letters in text that follow any character
other than a letter. Converts all other letters to
lowercase.
◼ Examples
PROPER(“this is a TITLE”) returns “This Is A Title”
PROPER(“76BudGet”) returns “76Budget”
IT Learning Center 26
IT Learning Centre
The Hang Seng University of Hong Kong
Recommendation
◼ To join Intermediate/Advanced Level of
IT Workshops to learn more skills
IT Learning Center 27