Spreadsheets
Spreadsheets
Uses of spreadsheets.
Spreadsheets are typically used by accountants and others to organize and analyze
data for professional or personal business activities, such as:
Financial projections
Income tax estimates
Budget to actual comparisons
Cash flow analysis
Bid preparations
Depreciation schedules
Stock portfolio analysis
Inventory analysis
Sports statistics
Expense account analysis
Example of spreadsheets
LOTUS 1, 2, 3
VISICALC
MS EXCEL
Ms Excel
Excel 2007 software (Excel) is used to organize, analyze, and store data in an
electronic file
To start Excel using the Windows Start menu and view a new workbook:
Click the Start button on the taskbar.
Point to All Programs.
Click the Microsoft Office folder.
Click Microsoft Excel.
1
Identifying Excel Window Elements and Describing a Worksheet
2
Group – a group of related command buttons on a Ribbon tab
Minimize the Ribbon button -- minimizes the Ribbon to just Ribbon tabs;
when the Ribbon is minimized, the Expand the Ribbon button appears
Microsoft Excel Help button – used to access Excel Help
Minimize Window button – minimizes the current workbook to a title bar
icon inside the Excel window
Restore Window button – restores the active workbook to a smaller
window inside the Excel window
Close Window button – closes the active workbook
Status bar – a customizable bar below the worksheet area that is used to
display various messages, the View Shortcuts buttons, and the zooming
tools
Scroll bars – vertical and horizontal scroll bars used to change the vertical
or horizontal view of worksheet areas
Status bar – a customizable bar below the worksheet area that is used to
display various messages, the View Shortcuts buttons, and the zooming
tools
Elements that are specific to the Excel software window are worksheets, sheet tabs,
Tab scroll buttons, the Name Box, and the Formula Bar.
Workbook
Spreadsheets comprises of a grid of numbered rows and lettered columns
In spreadsheets you work in a document called worksheets. You can collect
related worksheets in a workbook. Worksheets can be renamed and workbook
containing many worksheets. The file you save in spreadsheet program is the
workbook.
Worksheets
A worksheet is a work area or grid consisting of vertical columns and horizontal
rows—much like a sheet of accounting paper.
A single Excel worksheet has 1,048,576 horizontal rows (numbered 1 through
1048576) and 16,384 vertical columns from column A to column XFD.
Cell
The intersection of each column and row is called a cell. You enter text, numbers,
and formulas (calculations) in cells.
3
If a workbook contains many worksheets, all the sheet tabs may not be visible.
You can click the worksheet Tab scrolling buttons to activate the first sheet tab,
the previous sheet tab, the next sheet tab, and the last sheet tab, as necessary.
Cell pointer
The active cell is emphasized with a thick, dark border.
Cell pointer is the thick rectangular frame that surrounds the active cell.
Cell references.
Cells are referenced using their column heading and row heading number. For
example the cell at the intersection of column A and row 1 is referenced as A1; the
cell at the intersection of column F and row 15 is referenced as F15. You will use
cell references to navigate in a worksheet, select cells in a worksheet, and to create
formulas.
Range
Often, you will need to select multiple adjacent cells. A group of adjacent cells is
called a range. When working with a range of cells, you reference the range by
4
noting the individual cell references for the cells in the upper-left and lower-right
corners separated by a colon.
Building a Worksheet
Saving a Workbook
The default Book1 workbook that automatically opens when you start Excel the
save the worksheet.
5
Using a Shortcut Menu
A shortcut menu is a brief list of frequently used commands available when you
right-click a screen element.
Renaming a Worksheet
You can rename the active worksheet by clicking Rename on the sheet tab shortcut
menu or by double-clicking a sheet tab. Then simply key a new name in 31
characters or less and press the ENTER key or click the sheet tab to accept the new
sheet tab name.
6
Activate the cell
Key the text or numbers in the cell or in the Formula Bar
Accept the cell contents by activating another cell or by clicking the Enter
button on the Formula Bar leaving the current cell the active cell
Adjusting Row Height and Column Width/ Resizing row and column sizes
When you start working on a worksheet, all columns are 8.43 characters wide (in
default font) and row heights are set to fit the content of the cell with a maximum
of 15 points.
Excel may widen the column or increase the row height to fit the cell content.
Adjusting the width or height is easy to do and can be done using the Ribbon
option or the Mouse option.
To adjust a single row, select any cell from the row to be adjusted
To adjust multiple non-contiguous rows, press [Ctrl] + select cells from
each row to be adjusted
From the Ribbon, select the Home command tab
In the Cells group, click FORMAT
In the Cell Size section, select Height...
The Row Height dialog box appears.
In the Row height text box, type the desired height
Click OK. The row height is adjusted.
7
When the row reaches the desired height, release the mouse button. The row
height is adjusted.
Adjusting Column Width: Ribbon Option
1. To adjust a single column, select any cell from the column to be adjusted
To adjust multiple non-contiguous columns, press [Ctrl] + select cells from
each column to be adjusted
2. From the Ribbon, select the Home command tab
3. In the Cells group, click FORMAT
4. In the Cell Size section, select Width...
The Column Width dialog box appears.
5. In the Column width text box, type the desired width
6. Click OK. The column width is adjusted.
If you choose to adjust multiple columns at once, all selected columns will be
adjusted the same amount no matter which column border you move.
To adjust the column width or the row height, Excel can determine the best width
and height based on the information in the column or row.
8
Using AutoFit to Adjust Row Height: Mouse Option
1. Along the row ID (e.g., 1, 2, 3, ...), point to the border below the row to be
adjusted
2. When the pointer turns into a double-arrow, double click
The row height adjusts so the tallest item in the row is displayed in full.
1. Along the column ID (e.g., A, B, C, ...), point to the border right of the
column to be adjusted
2. When the pointer turns into to a double-arrow, double click the column
width adjusts so the widest item in the column is displayed in full.
You can also select nonadjacent rows or columns and then insert additional rows
above each selected row(s) or additional columns to the left of each selected
column(s).
9
After you select the number of rows or columns to insert, you can click the Insert
command on a shortcut menu.
You can insert and delete rows and columns by clicking the Insert and Delete
command buttons in the Cells group and then clicking the appropriate command
on the menu.
Learn how to use the following dialogue box to format your cell contents
To edit cell contents directly in the Formula Bar, first activate the cell. Then move
the mouse pointer to the Formula
Navigating in a Worksheet
10
Worksheet cell A1 is often called the home cell because it is the first cell in the
upper-left area of the worksheet. You can use the mouse pointer to navigate from
one cell to another. When you move the mouse pointer over a cell, the mouse
pointer becomes a large white plus pointer.
You can also navigate from cell to cell by pressing the ARROW keys or by
pressing a combination of keys, called keyboard shortcuts,
However, because you know where the variables are located, you can quickly
navigate to the area by using the Name box to the left of the formula bar.
The Name box generally contains the cell reference (row number and column
letter) of the active cell.
Move the mouse pointer into the Name box; the mouse pointer becomes the
I-beam pointer
Click the Name box to select its contents
Key L1:P4
Press the ENTER key
11
Observe that the worksheet has scrolled to the right and you can now see the
selected range, L1:P4.
Then you can simply key the defined name in the Name box and press the
ENTER key to select the range.
In the New Name dialog box you key the name, select the scope of the name
(entire workbook or specific worksheet), and specify the range to which the name
applies.
You can also select a range of cells and then key the defined name in the Name
box.
To select the range L18:P21 and define a name for the range:
Key L18:P21 in the Name box
Press the ENTER key to select the range
Key var in the Name box
Press the ENTER key
12
Select range (Adjacent)
Press and hold down the SHIFT key and click the cell in the lower-right corner of
the range. This is sometimes called the SHIFT + click selection method.
To use the CTRL + click method to select the nonadjacent ranges A5:A15,
C5:C15, and F5:F15:
Drag to select the range A5:A15
Press and hold the CTRL key
Drag to select the range C5:C15
Drag to select the range F5:F15
Release the CTRL key
Selecting entire row and columns
You can also use the mouse pointer to select an entire row or column by clicking
the column heading or row heading.
When you place the mouse pointer on a column heading it becomes a small, black
downward-pointing selection arrow. When you place the mouse pointer on a row
heading it becomes a small, black right-pointing selection arrow.
To select multiple columns or multiple rows, you can drag across the column or
row headings. You can also use the SHIFT + click or the CTRL + click methods to
select multiple adjacent or nonadjacent columns or rows.
13
Functions
Arguments- can be numbers, text, logical values, error values.
The power of an Excel worksheet lies in its ability to recalculate its formulas when
the values for the variables used by the formulas are changed. To exploit this
automatic recalculation feature, you should use cell references instead of actual
values in a formula whenever possible.
Formula Syntax
Excel formulas begin with an equal sign (=); this tells Excel that what follows the
equal sign is a calculation.
After the equal sign are the operands (numbers, text, or cell references) and
mathematical operators (+, -, *, /) necessary for the calculation. Although most
formulas contain both operands and mathematical operators, a very simple
formula, such as that found in cell B7, can contain just an operand.
The result of the formula’s calculation is visible in the cell and the formula itself is
visible in the formula bar above the worksheet area
Function Syntax
Excel’s functions and how to use some of the most commonly used functions, such
as SUM, to create basic formulas. Excel has hundreds of functions you can use to
perform a wide variety of calculations.
15
Copying formulas
A faster way to copy and paste formulas to adjacent cells, however, is to use the
fill handle.
The dark border around the active cell or selected range has a fill handle, a small
square in the border’s lower-right corner. When the mouse pointer is positioned on
the fill handle, it becomes a black cross-hair fill pointer.
You can use the fill handle to copy or fill a range of adjacent cells with text or
numbers or formulas by dragging the fill handle with the fill pointer.
When you fill a cell or range using the fill handle the results depend on the content
of the active cell or cells.
If the active cell contains text or a number, the text or number is copied into the
adjacent cells. If the active cell contains a combination of text and numbers the
text is copied but the number increments by 1.
When you copy a formula from one cell to another, spreadsheets program
automatically adjusts each cell reference in the formula.
e.g c1+c1=E1
c2+c2=E2
16
By default, Excel pastes copied formulas with relative references. This means that
Excel automatically adjusts the column or row references based on the location of
the pasted formula’s destination cell.
You can instruct ms excel not to change the cell address by cell reference an
absolute cell address.
Inserting a dollar sign ($) in front of the row or column reference in a formula tells
Excel that the cell reference should not change when the formula is pasted into
another cell.
You can create mixed references by making a part of a cell address absolute and
part relate by ‘locking in’ either column or the row.
By default, Excel pastes copied formulas with relative references. This means that
Excel automatically adjusts the column or row references based on the location of
the pasted formula’s destination cell.
Copying and Pasting Formulas
You can use the fill handle to copy formulas by dragging the fill handle with
the fill pointer
17
The Sum (AutoSum) command button, located in the Editing group on the
Home tab, is used to quickly enter a formula containing the commonly used SUM,
AVERAGE, MAX, and MIN functions
ROUND function
You use the ROUND function to first specify a value or formula and then to
specify how many decimal places to round the value or the formula’s result.
18
The ROUND
Function has two arguments: number and num_digits. The number argument is the
specific value or formula to be rounded. The num_digits argument is the number of
digits you want to the right of the decimal point. For example, setting the
num_digits argument to zero will round the value or formula’s calculation to whole
numbers.
e.g =ROUND(B12*(1+C21),0)
The IF function
You must create a formula that performs logical tests. The IF function is used to
perform logical tests and has three arguments separated by commas: a logical test,
the action to take if the test is true, and the action to take if the test is false
When it is necessary to perform multiple logical tests, you can use an IF function
as part of the original IF function’s argument. This process is called nesting IF
functions.
19
When developing a complex formula using one or more IF functions, it can be
helpful to write down the calculations before you begin to create the formula in the
cell.
Example
IF the value in cell B6 is less than or equal to 200,000, then return the value
located in cell I26, otherwise test again.
IF the value in cell B6 is greater than 200,000 and less than or equal to 500,000,
then return the value located in cell I27, otherwise (500,001 or more) return the
value located in cell I28.
The error value #DIV/0! appears in each cell in the range as a small, dark green
triangular-shaped error indicator symbol.
20
The Trace Error icon () should appear to the left of the active cell indicating an
error. You can point to the Trace Error icon to view a ScreenTip describing the
error or click the button to view a menu of error correction options.
You can add single or double underlines with options in the Font tab in the
Format Cells dialog box.
21
Creating Complex Formulas
You will probably need to have more than one workbook open at a time.
When you have multiple workbooks open simultaneously, you can switch between
them by clicking the user interface’s View tab and then, in the Window group,
clicking the Switch Windows button and clicking the name of the workbook
you want to view.
You can quickly arrange both open workbooks’ windows on your screen by
clicking the View tab on the Ribbon and clicking the Arrange All command
button in the Window group to launch the Arrange Windows dialog box. Then
click the arrangement style option button you want and click OK.
22
Entering Formulas on Grouped Worksheets
You can use the SHIFT + click selection method to group adjacent worksheets.
Just press and hold down the SHIFT key and click a sheet tab to group the
currently active worksheet, the worksheet you click, and all the worksheets in
between.
To group nonadjacent worksheets, use the CTRL + click selection method. Press
and hold down the CTRL key as you click the sheet tabs. To group all the
worksheets in a workbook, right-click a sheet tab and click Select all Sheets on the
shortcut menu
23
When worksheets are grouped, the notation [Group] appears in the title bar
and all the grouped sheet tabs are white—indicating that the worksheets are
active
You will create formulas with 3-D references, formulas with range references that
span two or more worksheets or workbooks.
3-D formulas that span worksheets in the same workbook contain worksheet
references in addition to cell references. 3-D formulas that span workbooks
contain workbook, worksheet, and cell references.
You begin by creating 3-D formulas that link worksheets in the same workbook.
Observe the marquee around cell B13 and the formula e.g ='Call Center 1'!B13
in the formula bar
The formula ='Call Center 1'!B13 ensures that cell B7 in the Summary worksheet
will always contain the result of the formula’s calculation in cell B13 on the Call
Center 1 worksheet.(cell references and sheet references are samples)
24
Linking Workbooks with 3-D Formulas
You can also create formulas that span workbooks. For example, suppose you want
to use the total call volume data in the Summary worksheet in the
lesson_2_call_volume_forecast workbook to estimate the number of employees
each call center will need each of the five forecast years.
The employee estimates are maintained in a different workbook; you can create
formulas in that workbook that reference cells on the Summary worksheet in the
lesson_2_call_volume_forecast workbook.
You begin by opening a second workbook and saving it with a new name. Then
you tile both workbooks on your screen in order to work more easily in both of the
workbooks.
Cell B6 and the formula in the formula bar in your Employee Estimates worksheet
should look similar to.
25
The formula ='[lesson_2_call_volume_forecast.xls]Summary'!$B$7 indicates that
cell B6 in the Employee Estimates worksheet will always contain the contents of
cell B7 in the Summary worksheet in the lesson_2_call_volume_forecast
workbook. Note that the $B$7 cell reference is an absolute reference
The hidden data is still available for use in formulas and the hidden formulas
continue to work correctly. When you want to view the data or formulas again, you
can unhide the hidden cell values, rows, columns, or worksheets.
Hiding Worksheets
26
Hide
Step 1 Right-click a selected sheet tab
Step 2 Click Hide
Unhide
Step 3 Click Unhide to launch the Unhide dialog box
Step4 Click the worksheeet in the Unhide sheet list box
Working in Normal View, Page Layout View and Page Break Preview
Worksheet views include the default Normal view, the view you are currently
using to enter and format text, numbers, and formulas, plus Page Layout view and
Page Break Preview.
Page Break Preview allows you to see existing automatic page breaks and insert
or reposition manual page breaks. You can also enter and format text and numbers
and insert formulas in Page Break Preview. You can switch to Page Break Preview
by clicking the Page Break Preview view button in the View Shortcuts on the
status bar.
To do this, you can switch to Page Break Preview and then insert a manual page
break at row 16 using a shortcut menu.
To switch to Page Break Preview and insert a manual page break at row 16:
27
Click the Page Break Preview button in the View Shortcuts on the status
bar
Click OK to close the Welcome to Page Break Preview dialog box, if
necessary
Observe that only the active area of the worksheet appears in Page Break
Preview; a dark blue border appears around the area to be printed
Observe that there are no automatic page breaks (dashed lines) as the active
area of the worksheet can print on Page 1
Zoom the view to 100%, if necessary, using the Zoom Slider
Previewing a worksheet allows you to better see how the worksheet data will
appear on the printed page(s).
28
Observe the worksheet preview; the worksheet is presented in landscape
orientation and the worksheet appears centered vertically and horizontally on
the page
Click the Next Page icon to view page 2; the Assumptions data on page 2
appears centered vertically and horizontally on the page
Click the Previous Page icon to view page 1
Now you are ready to launch the Print dialog box, review print options, and print
the worksheet.
Printing a Worksheet
The Quick Print command button allows you to print the worksheet using the
existing print options.
Creating Charts
29
Creating an Embedded Pie Chart
A pie chart, a chart that compares data points in a single data series
Sometimes you may need to add a small chart to a worksheet in order to present a
visual representation of the worksheet’s data. You can do this by embedding the
chart as an object on the worksheet.
You begin by selecting the cells that contain the data to plot in your char.
30
Move the mouse pointer to the sizing handle in the upper-right corner of the
selected chart
Observe that the mouse pointer becomes a sizing pointer
Drag the sizing handle downward and to the left until the chart object is
approximately 1/2 inch smaller on each boundary
Drag the chart to reposition it attractively below the data
Click in the worksheet to deselect the chart object
Creating a Column Chart on Its Own Chart Sheet Using a Keyboard Shortcut
To create a column chart you must first select the cells containing the data to be
charted plus the cells containing the data that identifies the category names for the
horizontal (category) axis and the individual data series.
Excel looks at column or row labels on the longest edge of the selection rectangle
to determine the category names for the horizontal (category) axis and the column
or row labels on the shortest edge of the selection rectangle to determine the data
series
You can quickly create a default 2-D Clustered Column chart on its own chart
sheet by pressing the F11 shortcut key.
To create the default 2-D Clustered Column chart on its own chart sheet:
You may decide that the ‘story’ you want the chart to tell or the ‘picture’ of
the data that you want the chart to present can be improved by changing the
chart type and/or subtype. You can quickly change a chart’s type or subtype
using buttons on the Ribbon or a shortcut menu.
A chart’s type and subtype can be changed by selecting a different type and
subtype in the Change Chart Type dialog box.
31
You can launch the Change Chart Type dialog box by clicking the Change
Chart Type button in the Type group on the Chart Tools Design tab.
You can also launch the dialog box using a shortcut menu
Clicking a chart type in the dialog box’s left pane displays the available
subtypes in the right pane. Moving the mouse pointer to a subtype icon
displays a tip with the name of the subtype.
32