L4-Excel
L4-Excel
Excel
Content
General introduction
Basic Functions
Database functions
Draw a chart
2
Start Excel
C1: Double click on the icon on the desktop (Desktop)
C2: Start Menu/Programs/Microsoft Office/Microsoft Excel
…
The Excel window appears
08/02/2025 3
Excel work window
Title bar
Main menu bar
Toolbar
Format bar
Formula bar
Horizontal scroll
bar
Status bar
08/02/2025 4
Commands about files and data formats
08/02/2025 5
Commands to open files
a. Open a new file:
C1: Click the New icon on the Toolbar
C2: Press Ctrl+N
C3: Go to menu File / New… / Workbook
08/02/2025 6
Commands to open files
b. Open an existing file (*.xls):
C1: Click on the Open icon
C2: Press Ctrl+O
C3: Go to menu File / Open…
08/02/2025 7
File write commands
a. Record files
C1: Click on the Save icon
C2: Press Ctrl+S
C3: Go to File / Save …
08/02/2025 8
File write commands
b. Burn file with a different name
Go to menu File / Save As...
The old file still exists, the new file has the same content as
the old file
08/02/2025 9
Exit Excel (Exit)
C1: Press the key combination Alt+F4
C2: Click the Close button in the top right corner of the
Microsoft Excel work window
C3: Go to File / Exit menu
08/02/2025 10
Work on spreadsheets
Add, delete, and change worksheet names (Worksheet)
11
Commonly used data types
Number type
String type
Type of date and time
Recipe type
Type of date
and time
String
type
Recipe type
Numbe
r type
12
Error description table when input data is
invalid
Symbol Describe
###### This symbol will be displayed when the numeric and date data contained in
the cell is not large enough to display the data.
In this case it is necessary to increase the width of the column.
#VALUE This symbol will be displayed when the type of the parameters in the
function or formula is not valid.
Example: A1= “ABC”, A2=A1*10
#Name? This symbol will be displayed when a function or formula that Excel does
not understand or references a cell address that Excel does not know
For example: B1= Sum(A1A4) ; B2= ABC(A1:A4)
#REF! This symbol will be displayed when there is an invalid reference because in
the civil servant cell there is a reference to a deleted cell.
#DIV/0 Sign This signal will be displayed when there is a division by 0 . calculation
#N/A This symbol will appear when the value is not found in the function or
formula
13
Operations on data areas
Select rows and columns
Select region
Select multiple discrete regions
14
Operations on data areas (cont'd)
Numbering order: Hold down the Ctrl key and drag the mouse to
number in ascending order.
15
Spreadsheet Format
Format cells (cells)
Spreadsheet example after formatting
16
Spreadsheet Format
Format of data display
17
Spreadsheet Format
Change row and column width
Add, delete rows/columns for spreadsheets
18
Cell and domain addresses
Cell addresses and domain addresses are used in formulas
The cell address includes:
Relative address: includes column name and row name.
Example: A15, C43
Absolute address: add a $ sign before the column name and /
or row name if you want to freeze that part. Example: $A3,
B$4, $C$5
Relative addresses change when copying formulas, absolute
addresses do not
08/02/2025 19
Cell and Domain Addresses (Continued)
$C$5:$D$8
08/02/2025 20
Move the cell cursor
Use your mouse to click on the box
Type F5 (Ctrl+G), type the address of the cell you want to go
to in the Reference box, and then press the OK button
Type the
address of the
cell you want
to go to
08/02/2025 21
Cell cursor movement keys
08/02/2025 22
Cell cursor movement keys (continued)
08/02/2025 23
Cell cursor movement keys (continued)
08/02/2025 24
Enter data in the box
Method: click on the cell, type the data in, then type Enter
Normal input text data
Numeric data enter a dot (.) instead of a comma (,) to
separate the decimal part
In order for Excel to understand another type of data as
literal data, enter a ' sign before that data.
Example: ' 04.8766318
08/02/2025 25
Select domain, column, row,
table
Select a domain: click on the upper left cell, hold and move
to the lower right cell, release the mouse
Select the whole row: click in the row name box
Select the whole column: click on the column name box
Select the whole worksheet: click on the cell that intersects
the row name and column name
If you select multiple separate domains, hold down the Ctrl
key while selecting them
08/02/2025 26
Address Reference
Relative address
• <column address><line address>
Absolute address
• $<column address>$<row address>
Mixed address
• $<column address><row address>
• <column address>$<row address>
How to change address reference
• A1 $A$1 A$1 $A1
F4
27
Area Reference
Reference by address
• The starting and ending cells are on the same or different lines with
the syntax
<start cell address> : <end cell address>
• All cells on the same line or on multiple lines with the syntax
<start line> : <end line>
• All cells on the same column or on multiple columns with the
syntax
<start column> : <end column>
• Cells on another worksheet in the same workbook with the syntax
<worksheet name>!<address>
• The cells in the worksheet on the workbook are different from the
syntax
[<filename.xls>]<worksheet name>!<address>
28
Area Reference
An example of an address reference
Reference by domain name (for absolute addresses only)
• Scan to select the area you want to name
• Enter the area name in the Name Box box on the
toolbar.
• Use the newly created area name in an expression or
function
A1:A10 A2:B5
29
Basic Functions in Excel
30
Logical Functions
AND (< logical expression 1>, < logical expression 2 >, …, < logical
expression n>): intersection (returns TRUE or FALSE)
OR (< logical expression 1>, < logical expression 2 >, ...) : union (returns
TRUE or FALSE)
NOT (<logical expression>) : negation (returns TRUE or FALSE)
31
Calculation functions with numbers
34
Statistical function
35
Conditional function
=SUMIF(ChucVu,"NV",RightCT)
36
Data type conversion function
37
Search function
HLOOKUP (<search value>, <search area>, <value line>, <search
method>)
• First line values can be strings, numbers, or logical values
• Functions are not case sensitive
• If the line takes the value < 1: the function returns the #VALUE!
• If the line takes the value > the line number of the search area:
=VLOOKUP(RIGHT(B4,3),
the function returns the #REF! error. $B$13:$D$17.2,0)
• How to find: Find exact or approximate
VLOOKUP (<search value>,<search area>,<value column>,<search
method>)
• Similar to HLOOKUP
38
Test function
ISNA (<value>)
• The value you want to check can be null, error, logical, string, number
or reference value
• Returns TRUE if Value is #N/A. Otherwise returns FALSE .
ISERROR (<value>)
• Value you want to check, can be null, error, logic, string, number or
reference value
• Returns TRUE if Value is an error with the following values: #N/A,
#VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!. Otherwise
returns FALSE .
Illustrative example :
ISNA("ABC") returns FALSE
ISNA(#REF!) returns FALSE
ISNA(#N/A) returns TRUE
ISERROR( " ABC " ) returns FALSE
ISERROR(#N/A) returns TRUE
39
Database (database)
1. Concept
The database consists of fields and records.
A field is a database column, each field represents an
attribute of the object and has a certain data type
A record is a row of data
The first line of the database domain contains the field
names, the following lines are the records
08/02/2025 40
Database (database)
2. Sort – Menu Data/Sort
When ordering a list (database), all columns must be
selected to avoid data inaccuracy
The field that specifies the ordering is called the key . Up to
3 keys can be specified
How to : Select a domain. Select Menu Data / Sort…
08/02/2025 41
Database (database)
2. Sort – Menu Data/Sort
Choose the first
key Sort up
[Select second key] ascending
Sort
Descending
[Choose a third key]
No field names
The first line is (sort the first line)
the field name
(not sorted)
Arrange from
left to right
08/02/2025 42
Database (database)
3. Search (Filter Data) – Menu Data/Filter
Purpose: Retrieve records (information) that satisfy certain
conditions
You can filter in two ways:
AutoFilter: Excel supports filter conditions
Advanced Filter…: user-defined filter conditions
08/02/2025 43
Database (database)
3a. Search (Filter Data) – Menu Data/Filter
Select the database domain including the field name line
Data / Filter / AutoFilter menu, the field name cell has the
drop-down arrowhead of the listbox
Click on it, there is a drop-down list:
All: to show all records again
Top 10…: greatest values
Custom…: self-defined filter conditions
Column values
08/02/2025 44
Database (database)
3a. Search (Filter Data) – Menu Data/Filter
If you select Custom..., the Custom AutoFilter dialog box
will appear for the user to specify the filter conditions:
08/02/2025 45
Database (database)
3b. Filter data using Advanced Filter
B1: Determine the conditional domain:
The first line contains the field name to
specify the condition
The following lines write conditions:
conditions on the same line are AND,
conditions on different lines are OR
08/02/2025 46
Domain dong/k to filter Domain dong/k to filter
the copy take note yes the copy take note yes
number of products sold number of products sold
go out in January = 400 go out in January > 150 _
08/02/2025 48
Functions for use with
databases
Function_name(Database Domain, “field_name”,
standard_domain) : Calculations on the field in the 2nd
argument of the database domain satisfy the criteria domain
The second argument can be replaced
with the column number of the column
containing that field in the database
Function_name includes: DSUM, DMAX, DMIN,
DAVERAGE, DCOUNT
08/02/2025 49
Database functions
General syntax:
• <Function Name> (<data range>, <column name>, <standard range>)
Functions
• DAVERAGE Calculates the average of the cells on the column name that
meet the criteria of the range
• DCOUNT Counts numeric cells on column names that meet the standard
range condition
• DCOUNTA Counts non-empty cells on column names that meet the
criteria range
• DMAX/DMIN Returns the maximum/minimum value of cells on the
column name that meet the criteria of the specified range.
• DSUM Sum of cells on column name that meet the criteria of the target
range
standard
50
DSUM
08/02/2025 51
DMAX
08/02/2025 52
DAVERAGE
08/02/2025 53
DCOUNT
08/02/2025 54
Calculation by data group
B1: Sort the database with the key as the clustering field
B2: Select the database, including the field name line
Step 3: Go to menu Data / Subtotal…
Select a clustering
field
08/02/2025 55
Sort data
Select the data you want to sort
Select on the menu Data / Sort
56
Filter data
AutoFilter
• Select the area you want to perform data filtering
• Select on the menu Data / Filter / AutoFilter
• Select a value on the list, the data is filtered again by the
selected value
• Data after being filtered
57
Filter the data
AutoFilter
• If you want to filter by other criteria, choose Custom
from the list
58
Filter the data
Advanced Filter
• For complex filter criteria, we use Advanced Filter
=AND(H5="TP",G5<2
5)
59
Test data
Select the cell or area to be checked
Select Data / Validation…
60
Chart
Create a chart
Qualify
Toolbar Chart
Format
Menu chart
08/02/2025 61
Types of charts
Column type
Bar form
Line shape
Round shape
Coordinate format
Domain form
…
62
Elements in the chart
Grid chart
Horizontal axis
title
63
Draw a chart
64
Create a chart
Steps to create a chart:
Data: Entered by column when number of rows > number of
columns and vice versa
Select the Chart Wizard icon, which includes 4 steps to
determine the properties of the graph
At the end, the histogram has an outline with a black dot.
Can change position, size, addition, chart format
08/02/2025 65
Qualify
a. Step 1 – Styling
Choose type yes available :
+ Column: column vertical
+ Line :
+ Pie: cake round
+ XY: road soy sauce mandarin
+ Area: Area volume
+ Doughtnut : Ice round
+ Radar: Location degree pole
+ Surface: Face volume
08/02/2025 66
Characterization
(Continued)
b. Step 2 – Define Data – Tab Data Range
Domain evil Whether
painting expression thing
Column headings as
legend
Item title
08/02/2025 67
Characterization
(Continued)
b. Step 2 – Data Formatting – Series Tab
General header
cell
Domain containing
X-axis labels
08/02/2025 68
Characterization
(Continued)
c. Step 3 – Options – Tab Titles
Enter a graph
title
Enter X-axis
title
Enter Y-axis
title
08/02/2025 69
Characterization
(Continued)
c. Step 3 – Options – Tab Legend
Show/hide
legend
Note
Placement of
legend
08/02/2025 70
Step 4: Determine where to
place the chart
The graph shows up on a new sheet
08/02/2025 71
Change chart axis properties
Smallest value
08/02/2025 72
Change chart axis
properties
Change data display location
Khối lượng của lợn qua các ngày tuổi
20
16
0
Sơ sinh 10 20 30 40 50 60
Ngày
08/02/2025 73