Create and Edit A Excel Document(II) Shenghua ZHONG Department of Computing The Hong Kong...

Preview:

Citation preview

Create and Edit A Excel

Document(II)Shenghua ZHONG

Department of ComputingThe Hong Kong Polytechnic University

zsh696@gmail.com

Lab of COMP 102 Feb. 22-23, 2012

2

Cell Operation of Excel Merge and Unmerge Cell Fill contents in Cell Excel Grouping

Outline

3

Cell Operation of Excel Merge and Unmerge Cell Fill contents in Cell Excel Grouping

Outline

4

Cell Function Can be used to retrieve information about a cell Can include contents, formatting, size, etc

Syntax for the Cell function Cell( type, range ) type is the type of information that you retrieve for type can be one of the following values

Cell Function of Excel

5

Value Explanation“address” Address of the cell. If the cell refers to a range, it is the first cell in the range.

"col" Column number of the cell."color" Returns 1 if the color is a negative value; Otherwise it returns 0.

"contents" Contents of the upper-left cell."filename" Filename of the file that contains reference."format" Number format of the cell.

"parentheses" Returns 1 if the cell is formatted with parentheses; Otherwise, it returns 0.

"prefix" Label prefix for the cell.* Returns a single quote (') if the cell is left-aligned.* Returns a double quote (") if the cell is right-aligned.* Returns a caret (^) if the cell is center-aligned.* Returns a back slash (\) if the cell is fill-aligned.* Returns an empty text value for all others.

"protect" Returns 1 if the cell is locked. Returns 0 if the cell is not locked.

"row" Row number of the cell."type" Returns "b" if the cell is empty.

Returns "l" if the cell contains a text constant.Returns "v" for all others.

"width" Column width of the cell, rounded to the nearest integer.

Cell Function of Excel (II)

6

Functions return based on spreadsheet above =Cell("col", A1) would return 1 =Cell("address", A2) would return $A$2 =Cell(“contents", A2) would return 0.055

Some Examples of Cell Function

7

Cell Operation of Excel Merge and Unmerge Cell Fill contents in Cell Excel Grouping

Outline

8

Definition of merge cells A single cell that is created by combining two or more selected cells

Cell reference of merge cell The upper-left cell in the original selected range

What is merge cells Merge two or more adjacent cells into one cell and display the contents of one cell

in the merged cell Different types of merge

Utilize system merge

Merge cells more than one contains data, Excel keeps the data in the upper-left or upper-right cell (depending on your current view direction) and deletes all remaining data.

Utilize combination merge & For example, =A2&" "&B2 Combines the contents, separated by a space

Merge and Unmerge Cell

9

Utilize system merge

Examples of Merge

10

Utilize combination merge

Examples of Merge

11

Notes of system unmerge Can unmerge (or split) a cell that has been merged Can split the contents of an unmerged cell and

distribute the divided contents across other cells Cannot split an empty, unmerged cell

Example

Unmerge in Excel

12

Copy the contents

Examples of Split Contents (I)

13

Split contents

Examples of Split Contents (II)

14

Cell Operation of Excel Merge and Unmerge Cell Fill contents in Cell Excel Grouping

Outline

15

Study knowledge by internet http://www.youtube.com/watch?v=glqgLyfnm0U&f

eature=related Find information in Excel

Icon of Excel help

Auto Fill Contents in Cell

16

Fill Series

17

Cell Operation of Excel Merge and Unmerge Cell Fill contents in Cell Excel Grouping

Outline

18

Excel Grouping A useful Excel feature gives you control over how

the information is displayed Steps

Select any cell with information in it Click the Subtotal command. The information in is

automatically selected and the Subtotal dialog box appears.

Grouping Cells Using the Subtotal Command

19

Examples of Grouping Cells Using the Subtotal Command