Professional Documents
Culture Documents
Lecture 3: Microsoft
Excel
LECTURE CONTENTS
3.1. GENERAL INTRODUCTION
• In addition, Excel also has advanced features such as database administration, data analysis, economic
forecasting, etc.
4
3.2. Some Basic Operations
• The spreadsheet (Sheet)
• Introduction to spreadsheet Excel
• Each Workbook corresponds to a file, including WorkSheets
• Rows: row titles are numbered from 1 in turn from top to bottom.
• Columns: column headers are placed according to A, B, C,…, XFC, XFD from left to right respectively.
• Cells: is the intersection of rows and columns, each cell has its own address, there is always a cell
6
• Work with worksheets (on the sheet tab bar)
• Open a worksheet: click on the sheet name to open
• Insert more worksheets: select the Insert WorkSheet
button
• Rename the worksheet: right-click the sheet name,
7
• Arrange worksheet pages:
• Move a worksheet: Click on the sheet name, drag it to a new location
• Copy a spreadsheet sheet:
• Select Move or Copy, a dialog box appears
• Before sheet: location to place the copy
• Select Create a copy, press OK.
▸ Hide/show worksheets:
• Hide: Right-click the sheet name, select Hide
• how: Right-click, select the sheet name to show, click the OK button
8
3.3. Data in Excel
Address
• The cell is the intersection of the column and row, the address of the cell is determined by the
• A continuous block of cells is defined by the address of the cell in the upper left corner and the
cell address in the lower right corner of the block, between the two addresses separated by a " : ".
• cells A1, A2, A3, B1, B2, B3, C1, C2, C3.
• Each cell has a default address specified by Excel, in addition, Excel also allows users to name cells,
10
General Work With Data
• Select active cell: Click or use a, Y, Z, b, keys
• Enter data: Enter data as specified. Press the ESC key to cancel the input data.
• Edit data:
• Put the active cell in the cell to be edited
• Edit the data in the formula bar or double-click the cell and edit it directly
11
Types of Data
• Excel has the following data types:
• Character
• Numeric
• Date
• Formulas
• Logic
• Error.
• In a worksheet, cells can contain different data types, but the data in a cell
▸ Select a continuous block of cells: Click and drag the mouse from the upper left corner cell
to the lower right corner cell of the cell block
▸ Select discrete blocks of cells: select the first block, from the second block hold Ctrl when
selecting.
▸ Select a cell block that is a row or column: Click on the row number or column name
▸ Select the entire worksheet: Click on the intersection of the column name row and column
number.
14
Adjust The Structure of Spreadsheet
▸ Change column width, row height
▹ Use the mouse
▹ Change column width:
▹ Move the cursor to the boundary of the column name until the pointer changes to a two-
way arrow()
▹ Click and drag to the desired width, release the mouse.
15
Adjust The Structure of Spreadsheet
▸ Insert cells, rows, columns
▹ Select Home\Cells\Insert
▹ Select cells, rows, columns at the position to be inserted.
▹ Select Insert Sheet Rows: to insert row
▹ Select Insert Sheet Columns: to insert column
▹ Select Insert Cells: the Insert box dialog,
select the command to insert cells.
16
Adjust The Structure of Spreadsheet
▸ Delete cells, rows, columns
▹ Select Home\Cells\Delete
▹ Select cells, rows, columns at the position to be deleted.
▹ Select Delete Sheet Rows: to delete row
▹ Select Delete Sheet Columns: to delete column
▹ Select Delete Cells: the Delete box dialog,
select the command to delete cells
17
Adjust Data in the Cell
▸ Move data
▹ Select the data block to move.
▹ Select Home\Clipboard\Cut
▹ Move the active cell to the location where the data will be moved to.
▹ Select Home\Clipboard\Paste
▸ Copy data
▹ Select the data block to move p.
▹ Select Home\Clipboard\Copy
▹ Move the active cell to the location where the data will be copied.
▹ Select Home\Clipboard\Paste
18
Adjust Data in the Cell
▸ Copy with special parameters:
▹ Same operation as above. When pasting data, click the arrow command Home \
21
3.5. Function in Excel
▸ Definition: is a pre-written program that performs a certain function or task
based on the given data and returns one or more results.
▸ General format of the function:
=<Function name>(Argument 1, Argument 2,…,Argument n)
▸ Argument:
▹ Arguments are default separated by commas "," and enclosed in quotation
marks ().
▹ Arguments can be constants, cell addresses, block addresses, expressions, or
can be other functions…
23
▸ How to enter a function
▹ Enter the function name directly from the keyboard.
▹ Or use the fx button on the formula bar. A dialog box appears
24
Commonly used functions
▸ Arithmetic function
▸ Date function
▸ Character function
▸ Logic function
▸ Conditional function
▸ Search function
25
▸ Basic statistical function
▹ SUM
▹ Uses: Calculate the sum of numeric expressions
▹ Syntax: SUM(Number1, Number2,...)
Where: Number1, Number2,…, NumberN: are the numbers to sum
▹ AVERAGE
▹ Uses: Calculates the average of numeric expressions
▹ Systax: AVERAGE(Number1, Number2,…)
Where: Number1, Number2,… NumberN: are the numbers to
average
26
▸ Basic statistical function
▹ MAX
▹ Uses: Find the maximum value
▹ Syntax: MAX(Number1, Number2,...)
Where: Number1, Number2,…, NumberN: are the numbers to find the largest value
▹ MIN
▹ Uses: Find the smallest value
▹ Syntax : MIN(Number1, Number2,…)
Where: Number1, Number2,…, NumberN: are the numbers to find the
smallest value
27
▸ Statistical function :
▹ COUNTA
▹ Uses: Count the number of values in the argument list
▹ Syntax: COUNTA(Value1, Value2,...)
Where: Value1, Value2,…ValueN: are argument values
▹ COUNT
▹ Uses: Statistics on the number of cells containing numeric data in the
argument list
▹ Syntax: COUNT(Value1, Value2,…)
Where: Value1, Value2,…, ValueN: are argument values
28
▸ Date function
▹ DAY
▹ Uses: Get the date value in date data.
▹ Syntax: DAY(Serial Number)
Where: Serial Number: is date data
▹ MONTH
▹ Uses: Get the month value in date data.
▹ Syntax : MONTH(Serial Number)
Where: Serial Number: is date data
29
▸ Character function
▹ LEFT
▹ Uses: Gets some characters from the left side of a character string
▹ Syntax: LEFT(Text, Num_chars)
Where: Text: is the initial string of characters, Number_chars: Number of characters
to get.
▹ RIGHT
▹ Uses: Gets some characters from the right side of a string
▹ Syntax: RIGHT(Text, Num_chars)
Where: Text: is the initial string of characters, Number_chars: Number of characters
to get.
30
▸ Character function
▹ MID
▹ Uses: enter data according to the requirements and conditions of the topic.
▹ Syntax: IF(Logical_Test, Value_if_True, Value_if_False)
Where: Logical_Test: s a logical expression expressing the condition
Value_if_True: the result value of the IF function if Logical_Test true
Value_if_False: the result value of the IF function if Logical_Test false
▹ Execution: The calculator checks the value of the logical expression.
▹ f the logical expression returns True the result of the IF function is Value_if_true
▹ Otherwise, the result of the IF function receives Value_if_false
32
LOOKUP: performs a search for a value on the first row or first column of a given
table and returns the result with the corresponding position in the last row or last
column.
▸ LOOKUP(Lookup_value, Lookup_vector,Result vector)
▹ Lookup_value: The value to look for
▹ Lookup_ vector: Range of values containing the value to be searched
▹ Result vector: A range of values containing the corresponding search value
34
Group Syntax Uses
DAY(Serial Number) Get the date value
35
Syntax Uses
Enter data according to the
IF(Logical_Test, Value_if_True, Value_if_False) topic requirements
Performs a search for a value
in the first row or column of a
given table and returns a result
LOOKUP(Lookup_value, Lookup_vector,Result vector with the corresponding
position in the last row or
column
36
THANK YOU