INTRODUCTION TO
COMPUTER SCIENCE
1
Lecture 4
MODULE 4
MICROSOFT EXCEL
2
Run MS EXCEL
Start Run , write EXCEL then click OK
Start Programs Microsoft Office
Microsoft Office Excel 2007
3
Start up window
Formula Tabs
cell bar
worksheet
Scroll bars
4
Main tasks for MS Excel
Insert and format Data
Format Work Sheet (add, rename, delete, protect,
move and copy, hide/display rows/columns, freeze
rows/columns).
Formulas ( SUM , MAX, MIN, AVERAGE, IF).
Charts
5
Insert data to worksheet
Write any data on the cell and press ENTER to
accept or ESC to delete
Use arrow keys to move between cells.
Double click on any cell to edit the contents of this
cell.
Use ALT+ENTER to enter data in multiple line.
6
Using Fill Handle
Fill in a series of numbers, dates, or other built-in
series items
• Select the first cell in the range that you want to
fill.
• Type the starting value for the series.
• Type a value in the next cell to establish a
pattern
• Select the cell or cells that contain the starting
values.
• Drag the fill handle across the range that you
7
want to fill.
Using Fill Handle
Fill formulas into adjacent cells
• Select the cell that contains the formula that
you want to fill into adjacent cells.
• Drag the fill handle across the cells that you
want to fill.
8
Format data
Select the data you want to format.
Right click on that data and
select format cells
The dialog box format cells will appear as follows
9
Format data
To format
Numbers.
Or Alignment
Or Font
Or Border
Or Fill
10
Or Protection
Format worksheet
1- Insert a new worksheet
To quickly insert a new worksheet at the end of the existing
worksheets, click the Insert Worksheet tab at the bottom of
the screen
Or from tab Home group Cells click Insert and select insert sheet
11
Format worksheet
2- Rename worksheet
Select worksheet you want to rename.
Right click and select Rename
Type the new name and press ENTER
3- Delete worksheet
Select worksheet you want to delete.
Right click and select Delete
12
Format worksheet
4- Protect worksheet
Select worksheet you want to protect.
Right click and select protect sheet
Type the password and click OK
Re-type the password and click OK.
13
Format worksheet
5- Move Worksheet
Select worksheet you want to move.
Drag the sheet to the new place.
6- Hide Rows or Columns
Select the rows or columns that you want to hide.
Right click on it and select Hide.
13
Format worksheet
7- display Rows or Columns
Select the rows or columns adjacent either side to
the row or column that you want to unhide.
Right click and select Unhide.
13
Format worksheet
8- Freeze to lock Rows and Columns
To keep an area of a worksheet visible while you scroll to
another area of the worksheet
To lock rows select the row below the row or rows that you
want to keep visible when you scroll.
To lock columns, select the column to the right of the column
or columns that you want to keep visible when you scroll.
To lock both rows and columns, click the cell below and to
the right of the rows and columns that you want to keep 10
visible when you scroll
Format worksheet
8- Freeze to lock Rows and Columns
On the View tab, in the Window group, click Freeze Panes.
Click freeze panes.
10
Formulas
1- Sum the values in cells, columns, or rows
Add the values in a column or row by using a button
1. Click an empty cell below a column of numbers or to the
right of a row of numbers, and then click AutoSum.
2. Excel selects what it determines to be the most likely
range of data.
3. press ENTER to accept or select your own range and then
ENTER
15
Formulas
2- Maximum value in cells, columns, or rows
Add the maximum value in a column or row by using a button
1. Click an empty cell below a column of numbers or to the
right of a row of numbers, and then click arrow below
AutoSum, and select MAX.
2. Excel selects what it determines to be the most likely
range of data.
3. press ENTER to accept or select your own range and then
ENTER
15
Formulas
3- Minimum value in cells, columns, or rows
Add the minimum value in a column or row by using a button
1. Click an empty cell below a column of numbers or to the
right of a row of numbers, and then click arrow below
AutoSum, and select MIN.
2. Excel selects what it determines to be the most likely
range of data.
3. press ENTER to accept or select your own range and then
ENTER
15
Formulas
4- Average value in cells, columns, or rows
Add the average value in a column or row by using a button
1. Click an empty cell below a column of numbers or to the
right of a row of numbers, and then click arrow below
AutoSum, and select Average.
2. Excel selects what it determines to be the most likely
range of data.
3. Press ENTER to accept or select your own range and then
ENTER
15
Formulas
5- Conditional Formula
General formal
= if(logical_test, value_if_true, value_if _alse)
1. logical_test The condition that you want to check.
2. value_if_true: The value to return if the condition is True.
3. value_if_false: The value to return if the condition is
False.
15
Formulas
5- Conditional Formula
Add conditional formula in a row or column
1. Click an empty cell below a column of numbers or to the
right of a row of numbers, and then click arrow below
Logical, and select IF.
15
Formulas
5- Conditional Formula
Add conditional formula in a row or column
2. The following dialog appear, write
3. Logical test
4. Value if true
5. Value if false
6. And click OK
15
Charts
The elements of a chart
1. The chart area of the chart.
2. The plot area of the chart.
3. The data points of the data
series that are plotted in the chart.
4. The horizontal (category) and vertical (value) axis along which the
data is plotted in the chart
5. The legend of the chart
6. A chart and axis title that you can use in the chart.
7. A data label that you can use to identify the details of a data point in a
16
data series
Create new chart
Charts
1. Select the cells that contain the data that you want to use
for the chart.
2. On the Insert tab, in the Charts group ,click the chart type,
and then click a chart subtype that you want to use.
16
Format Chart
Charts
1. Select the chart you want to format.
2. On the Layout tab, in the Labels group ,you can format:
Add title to chart Align legend Show the table
with the chart
Add title to axis Show data on the
columns chart
3. On the design tab, in the group Data, you can switch
16
between row and column
Revision
To insert new worksheet quickly you can click on the tab ……..
a) insert b) Home c) insert worksheet d) formula
To write any operation in the cell you must start the operation with……
a) star b) equal c) plus d) slash
To write series of numbers using fill handle you must select …….
a) all columns b) all cells c) 2 cells d) one cell
To block any rows and columns you use freeze panes command from….
a) home tab b) view tab c) review tab
To hide the formula in formula bar you must do two operations ……….
a) copy and cut b) copy and past c) hidden and protect d) hidden and format 23