Computer
Computer
Computer
1
What is Microsoft Excel?
Microsoft Excel is a spreadsheet program that
includes sophisticated charting and
database functions that quickly and easily
allow you to:
• Perform both simple and complex
calculations.
• Filter data from a database or spreadsheet
list.
• Chart data in numerous formats.
2
Microsoft Excel Environment
Worksheet
Tab scroll
button
3
Microsoft Excel Environment
4
Microsoft Excel Environment
• Name box – shows the cell reference of the active cell in the
worksheet.
• Formula bar – shows the content of the active cell.
5
File tab and Backstage view
• Backstage view contains commands used
to create a new, open existing and save
workbook, preview and print a worksheet
and other file management tasks.
• Tools that changes the Excel user
interface options and close Excel with
options are also found in the Backstage
view.
6
File tab and Backstage view
7
The Workbook
• The Workbook is a collection of sheets
that help you better organize your work.
• A workbook can contain worksheets,
charts, macros or other types of sheets--
you can have up to 255 sheets in one
workbook.
• The Sheet Tab , which is to the left of the
horizontal scroll bar, shows you a list of
sheets in the current workbook.
8
The Worksheet
• A worksheet is divided into a grid of columns and
rows.
• Each worksheet can 16,384 columns and
1,048,576 rows.
• Each intersection of a column and row forms a cell.
• Each cell is referred to as cell address or cell
reference: the column letter and row number. E.g.
A4, B32, and C3.
• Cells can contain text, numbers, or mathematical
formulas.
9
The Worksheet
• Worksheet is given default names such as "Sheet1",
"Sheet2", etc.
• To change the name of a sheet, double-click on the tab and
type in a new name, or
• Right-click on the tab with the mouse, select Rename from
the shortcut menu, type the new name and press the ENTER
key.
• Sheet names must adhere to the following rules:
- No more than 31 characters in length (you can use
spaces!).
- Must be unique within the workbook.
- Must not use the following special characters: \ , / ,
* , ? , : , [ or ] .
10
Command Tabs
11
Command Tabs
12
Command Tabs
13
Command Tabs
15
Keyboard shortcuts
16
Keyboard shortcuts
17
Working on a workbook
To create a new Workbook: To save a workbook for the 1st
•Click the Office Button. time or using a new name.
•Click New •Click the Office Button
•Choose Blank Workbook •Click Save As
•Type in the name for the
Workbook.
To open an existing •In the Save as Type box,
workbook: choose Excel 97-2003
•Click the Office Button
•Click Open
Workbook
•Browse to the workbook
•Click the title of the
workbook
•Click Open
18
Cell Entries
Types of Data
1. Labels - text entries e.g. "January".
2. Constants- numerical data including numbers,
dates and times (e.g. $12,000, 9.60%, 60)
3. Formulas- calculations on the values in a cell or
group of cells. It consists of an equal sign (=), the
values or cell references you want to calculate and
the operators (mathematical operations such as
addition or subtraction), for example =(A1/A2).
19
Moving Through Cells
Movement Key stroke
One cell up up arrow key
One cell down down arrow key or ENTER
20
Selecting Cells
Cells to select Mouse action
Cluster of cells Drag mouse over the cells or hold down the SHIFT
key while using the arrow keys
21
Adding / Deleting Worksheets, Rows, and
Columns
23
Resizing Rows and Columns
24
Auto Fill
Fills cell data or series of data in a worksheet into a
selected range of cells.
25
Formatting Cells
Click the desired format on the Number group of the Home
tab, or
26
Formatting Cells
27
Formatting Cells
28
Formatting Cells
29
Formatting Cells
• Number tab - The data type can be selected
from the options on this tab. This command tab
is mainly use to change the number formatting in
your worksheet.
• Alignment tab - These options allow you to
change the position and alignment of the data
with the cell.
• Font tab - All of the font attributes are displayed
in this tab including font face, size, style, and
effects.
30
Formatting Cells
• Border tab - This tab allows you to add borders,
shading, and background colors to a cell. You
also use this tab to remove border or change the
color and style of the border.
• Pattern tab – Pattern Tab is use to add different
color on a selected cell at the same time different
pattern in it.
• Protection tab - This tab allows you to Lock or
Hide a selected cell. Locking cell or hiding
formulas has no effect unless the worksheet is
protected.
31
Freeze Panes
• Click Freeze Panes from the Window
group of the View tab.
• Select appropriate option:
Freeze Panes. Keep rows and
columns visible while the rest of
the worksheet scrolls (based on
current selection).
Freeze Top Row. Keep the top
row visible while scrolling
through the rest of the
worksheet.
Freeze First Column. Keep the
first column visible while scrolling
through the rest of the
worksheet.
32
Formula
• A formula is an equation that performs
operations on worksheet data.
• Formulas are entered in the worksheet cell and
must begin with an equal sign "=".
• Following the equal sign are the elements to be
calculated (the operands), which are separated
by calculation operators.
• Excel calculates the formula from left to right,
according to a specific order for each operator in
the formula. You can change the order of
operations by using parentheses.
33
Formula
Operator – A sign or symbol that specifies the type
of calculation such as addition, subtraction, or
multiplication to perform on the elements of a
formula. Operators include:
• Mathematical operators, which perform basic
mathematical operations.
• Comparison, or logical, operators, which
compare two values and produce the value
TRUE or FALSE.
34
Operator Precedence
Operator Description
: (colon) Reference operators
(single space) Parentheses
, (comma)
()
% Percent
^ Exponentiation
* and / Multiplication and division
36
Cell Referencing
• Relative referencing is the calling of cells by
just their column and row labels (such as "A1").
• Absolute referencing is the calling of cells that
does not change when copied to a new cell.
(such as “=$A$1+$b$1”; $ is used so as not to
change the value when copied.)
• Mixed Referencing can also be used where
only the row OR column is fixed. (such as
"=A$1+$B2“)
37
Linking Worksheets
• "sheetname!celladdress".
• to use the value from a cell in another
worksheet within the same workbook in a
formula.
• "=A1+Sheet2!A2"
• the value of cell A1 in the current
worksheet is added to the value of cell A2
in the worksheet named "Sheet2".
38
Using Functions
• Function – A pre-written formula that takes a value or
values, performs an operation, and returns a value or
values.
• Use functions to simplify and shorten formulas on a
worksheet, especially those that perform lengthy or
complex calculations.
• Functions often include references to ranges of cells,
called range references.
• A range reference consists of two cell reference
separated by a colon, such as C3:G18. C3 is the upper-
left cell in the range, and G18 is the lower-right cell in the
range.
• A range includes all the cells between the two cell
references.
39
Inserting a Function
48
• Logical_test is any value or expression that can
be evaluated to TRUE or FALSE. (such as A10=100;
A1>=B1; A1=“Ana”)
• Value_if_true is the value that is returned if
logical_test is TRUE. (such as "Within budget“;
A1=10, B5=SUM(B1:B4)
• Value_if_false is the value that is returned if
logical_test is FALSE. (such as "Over budget“;
A1=0, B5=MIN(B1:B4)
49
• Examples:
DATA:
A1: -5 =IF(3>2,”BIG”,”SMALL”)
A2: 15 =IF(A5=TRUE,1,2)
A3: 30 =IF(A3<>30,”C”,”W”)
A4: ‘5
A5: TRUE
50
COUNTIF Function
• Counts the number of cells within a range that
meet the given criteria.
• Syntax:
COUNTIF(range,criteria)
• Range is the range of cells from which you want
to count cells.
• Criteria is the criteria in the form of a number,
expression, or text that defines which cells will
be counted. For example, criteria can be
expressed as 32, "32", ">32", "apples".
51
Examples: DATA:
A1: Apple B1: 32
=COUNTIF(A1:A4,"apple") A2: Orange B2: 54
=COUNTIF(B1:B4,">55") A3: Mango B3: 75
A4: Apple B4: 86
52
SUMIF Function
• Adds the cells specified by a given criteria.
• Syntax:
SUMIF(range,criteria,sum_range)
• Range is the range of cells you want evaluated.
• Criteria is the criteria in the form of a number,
expression, or text that defines which cells will
be added. For example, criteria can be
expressed as 32, "32", ">32", "apples".
• Sum_range are the actual cells to sum.
53
Examples:
=SUMIF(A2:A5,">160000",B2:B5)
=SUMIF(A1:A6,">299999",B1:B6)
DATA:
A1: 100,000, B1: 7,000
A2: 200,000, B2: 14,000
A3: 300,000, B3: 21,000
A4: 400,000, B4: 28,000
A5: 500,000, B5: 35,000
A6: 600,000, B6: 42,000 54
VLOOKUP Function
• Searches for a value in the leftmost column of a table,
and then returns a value in the same row from a
column you specify in the table.
• Syntax:
VLOOKUP(lookup_value,table_array,col_index_num,r
ange_lookup)
• Lookup_value is the value to be found in the first
column of the array. (It can be a value, a reference, or
a text string.)
• Table_array is the table of information in which data is
looked up.
55
Col_index_num is the column number in table_array
from which the matching value must be returned.
58
Create a Chart
• Select the cells that contain the data you want to use in
the chart
• Click the Insert tab on the Ribbon
• Click the type of Chart you want to create
59
Modify a Chart
TO MOVE THE CHART:
• Click the Chart and Drag it another location on the
same worksheet, or
• Click the Move Chart button on the Design tab
• Choose the desired location (either a new sheet or a current sheet in the
workbook)
60
Modify a Chart
TO REVERSE WHICH DATA ARE DISPLAYED IN THE ROWS AND COLUMNS:
• Click the Chart
• Click the Switch Row/Column button on the Design tab
61
Chart Tools
The Chart Tools appear on the Ribbon when you click on the chart. The tools
are located on three tabs: Design, Layout, and Format.
Design Tab
Within the Design tab you can control the chart type, layout,
styles, and location.
62
Chart Tools
Layout tab
Within the Layout tab you can control inserting pictures, shapes
and text boxes, labels, axes, background, and analysis.
Format tab
Within the Format tab you can modify shape styles, word styles
and size of the chart. 63