Spreadsheet Concepts Using Microsoft Excel: Objectives
Spreadsheet Concepts Using Microsoft Excel: Objectives
lab
Spreadsheet Concepts
Using Microsoft Excel 5
Objectives:
Upon successful completion of Lab 5, you will be able to
Create and edit a simple spreadsheet document
Describe the advantage of using formulas rather than entering values only
Use copy, cut, and paste to copy and move data including formulas
Use the built-in function sum
View formulas
Format data in cells including font, bold, underline, italic, and shading
Print a spreadsheet and adjust the fit
Resources required:
A computer running Excel 2007
Starter files:
None
Prerequisite skills:
General keyboarding skills; familiarity with editing keys such as Delete,
Backspace, Shift, Caps Lock, and Arrow keys
Ability to find files using Windows Explorer or Windows search feature
Ability to open and save a file in a Windows application
100 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Lab Lesson
If youve ever had to manage a household budget, track your investments, or even manage a
volunteer fundraiser, then you will see the advantages offered by an electronic spreadsheet
program. A spreadsheet program can also be used for tasks that are not financial. It can be used to
organize any kind of list, such as listing names and phone numbers, tracking a sports teams
statistics, or managing the volunteer schedule at a nursery school. Information that would be
organized into rows and columns can be managed easily using a spreadsheet program. We will
use the spreadsheet program Excel to create a household budget spreadsheet.
Open Excel.
The Ribbon can be minimized to provide more room in the Excel window. Lets minimize the
Ribbon and display it again. It may be minimized in your window by default.
Click the menu item Minimize the Ribbon. If the Ribbon was visible before,
it is now hidden. If the Ribbon was hidden, it is now visible.
Ensure the Ribbon is visible, as shown in Figure 5.2. If it is hidden, use the
above method to reveal it.
The Excel window contains a grid, toolbars, and sheet tabs as shown in Figure 5.2.
lab05_p99-124 8/22/07 9:29 AM Page 101
The available worksheet area is quite large. The rectangular areas are called cells. There are
1,048,576 rows and 16,384 columns of cells available in each sheet. We will use only part of one
sheet. Lets scroll to get a sense of the size of the work area.
Click the left, right, up, and down scroll arrows on the right edge of the
window as shown in Figure 5.2.
As you click the down scroll arrow you will notice the row numbers increasing. As you click the
right scroll arrow, you will notice the column letters scrolling. After the alphabet has expired, the
counting begins again AA, AB, AC, . . . until the last column, XFD.
Press and hold the Ctrl key while you tap the Home key to return to cell A1.
102 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Notice that the cell is now outlined in bold. Only one cell will be outlined in bold. This indicates
the active cell. You have activated cell D5 by clicking it.
The sheet tabs at the bottom of the window indicate different worksheets of the Excel workbook.
Each of these sheets also contains 1,048,576 rows and 16,384 columns of cells. To activate a
different sheet, click the appropriate tab.
Data Entry
While you type this label, several things are happening on the screen. You may notice that the
label seems to appear in two places simultaneously. It appears in cell A1 and it also appears on
the formula bar. Some symbols have also appeared on the formula bar as shown in Figure 5.3.
Click the Cancel button on the Formula Bar as shown in Figure 5.3.
Notice that the input Hello! has disappeared. You can cancel any input before it has been
entered by clicking the Cancel button.
Type: Hello!
Click the Enter button on the Formula Bar as shown in Figure 5.3.
This button enters the data in the cell. Notice that the buttons on the Formula bar have
disappeared. Similarly, you could have simply pressed the Enter key. The Insert Function button
is used to select a formula; we will examine this later.
Lets assume the cell entry is incorrect and we wish to erase it from the cell.
Make sure that A1 is the active cell. If not, click cell A1 to activate it.
lab05_p99-124 8/22/07 9:29 AM Page 103
Press the Delete key on the keyboard. Notice that the cell entry has been
erased. There are other methods of deleting cell contents, but pressing the Delete
key is quick and intuitive.
We can also make changes to the contents of a cell after it has been entered.
You should notice a few things. First, since this label is longer than the width of the column, it
scrolls onto adjacent blank cells. Column widths can be enlarged to accommodate data so cells
B1, C1, and D1 could still contain data later and column A could be enlarged. Second, after
pressing the Enter key, the active cell is now A2. After data is entered, the new active cell will
usually be the cell below the entry.
Lets edit the contents of cell A1.
Double-click cell A1. Notice that the flashing insertion point appears in cell
A1. You can edit the contents of a cell directly in the cell or in the Formula Bar.
Lets replace the words spreadsheet computing with Microsoft Excel.
Use your editing skills to delete the words spreadsheet computing and
replace it with Microsoft Excel.
Press the Enter key or click the Enter button on the Formula Bar to complete
the cell entry.
Notice that the comma separator has been accepted and the value is right-aligned in the cell.
Notice that the value has been entered in the cell. Notice also that the decimal places are different
and not aligned. We will see later how formatting the cells can improve this situation.
lab05_p99-124 8/22/07 9:29 AM Page 104
104 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Entering a Formula
The power of the spreadsheet application is the ability to perform calculations using formulas.
Lets create a formula that adds the contents of cells A2 and A3.
Notice that the formula appears in the cell and in the Formula Bar as shown in Figure 5.5. Also,
the cells are color coded corresponding to the formula in cell A4.
Press the Enter key or click the Enter button on the Formula Bar.
Activate cell A4.
Notice that the formula appears in the Formula Bar, but the result of the formula appears in cell
A5, as shown in Figure 5.6.
The power of a formula is in the cell references. Because the cell references are used in the
formula, Excel updates the results when contents of these cells change.
Notice that the results in cell A4 have now changed to reflect the new data. Excel formulas always
begin with an equals = sign. In our example, =A2+A3, the plus sign is called an operator. Excel
formulas can contain the following operators:
lab05_p99-124 8/22/07 9:29 AM Page 105
Operator Description
^ (Caret symbol) Exponentiation
* (Asterisk symbol) Multiplication
/ (Slash symbol) Division
+ (Plus sign) Addition
(Dash or minus sign) Subtraction
When we create a more complicated formula, we can use these operators and we can also use the
parentheses ( ). Excel will follow the order of operations for mathematics when calculating
formulas.
Lets start by entering some of the data into specific cells, as shown in Figure 5.7.
Delete the contents of cells A1, A2, A3, and A4. You can select each cell and
press the Delete key to delete the contents.
Enter the data shown in Figure 5.7.
Dont be concerned if some of the data appears to be cut off when you enter information in
adjacent cells. Well deal with column widths later. When you have completed entering all of the
data, your spreadsheet should look something like that shown in Figure 5.8.
106 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Figure 5.8 Excel sample data displays normal; some of the cell data appears cut off.
Some of the titles in column A have been cut off because of information in cells in column B.
This is not a problem since we can adjust the width of any column. Lets adjust the width of
column A. The longest label in this column is Net Surplus/Deficit. Well adjust the width until
the entire label is visible.
Move the mouse pointer to the right border of the column A heading (the
line between column A and B above cell A1) as shown in Figure 5.9. Notice that
the pointer changes to a vertical line between a left and right arrow.
Drag the border to the right until the longest label is visible.
Similarly, a column width can be decreased by dragging the line to the left. Using this method,
any column width can be changed.
lab05_p99-124 8/22/07 9:29 AM Page 107
Cell contents can be easily copied or moved to other cells. Lets do some practicing!
Activate cell B4. Lets move the income figure to cell C4.
Move the pointer to the bottom edge of the active cell (any edge except the
bottom right corner will do the trick).
You should see the pointer change from a cross icon to a large arrow with a move tool icon as
shown in Figure 5.10. Earlier versions of Excel will show a large arrow without the smaller move
tool icon.
Drag the pointer to cell C4 until you see a shadow appear on cell C4.
Release the left mouse button. Its that easy! The income figure has been moved
to cell C4. In earlier versions of Excel, you may see an outline for the cell instead
of a shadow.
Using this method, you can move the contents of any cell to any other cell in the worksheet. An
alternate method is to activate the cell to be moved and use a cut and paste method. Lets use a
different method to move the income figure back to cell B4.
We can copy information from one cell to another as easily as we can move information from one
cell to another. Lets copy the income figure in cell B4 to cells C4, D4, and E4.
Move the mouse pointer to the fill handle. The pointer should change to a
thin cross as shown in Figure 5.11.
lab05_p99-124 8/22/07 9:29 AM Page 108
108 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Figure 5.11 Excel mouse pointer on the fill handle of an active cell.
Drag the pointer to cell E4 and release the left mouse button.
Notice the dotted outline on the cells as you drag the mouse pointer, as shown in Figure 5.12.
You should notice that cells C4, D4, and E4 have been filled with the income figure! We can also
use the copy and paste method to copy cell contents.
Position the mouse pointer in the middle of cell C7 and drag it to cell E7 to
select these cells. Release the left mouse button, as shown in Figure 5.13.
Click the Paste button on the Ribbon to paste a copy of the value from
cell B7 into the selected cells.
Copy the Car (gas) figure in cell B8 to cells C8, D8, and E8 using any method
you prefer.
Copy the Car (loan) figure in cell B10 to cells C10, D10, and E10 using any
method you prefer.
Copy the Food/household figure in cell B12 to cells C12, D12, and E12 using
any method you prefer.
lab05_p99-124 8/22/07 9:29 AM Page 109
Your document should look something like that shown in Figure 5.14.
Now is a great time to introduce the Undo feature. This command will undo the effect of the most
recent command.
Click the Undo button on the upper left corner of the Excel window.
Excel cannot undo all commands but its ideal for commands such as editing, cut, copy, insert,
delete, formatting and others. You can click the drop-down arrow on the Undo button to see the
most recent tasks that can be undone. Excel will allow you to click the Undo button repeatedly
to progressively undo the most recent tasks, or you can choose from the list of tasks to undo a
group of tasks. You will not be able to choose a single task in the middle of the list. When you
select a task in the middle of the list, Excel will undo all of the tasks above the task selected.
Notice that the copied cells have been deleted.
Once the Undo feature has been used, the Redo feature can be used to redo the most recently
undone task.
Click the Redo button at the upper left corner of the Excel window.
Notice that the copied cells have reappeared.
Entering Formulas
Most of the figures have been entered and its time to enter the formulas. Lets start with the Total
Expenses formula. We could enter a formula such as =B7+B8+B9+B10+B11+B12+B13, but this
is long and cumbersome. When there is a group of cells to be included in a calculation that adds
lab05_p99-124 8/22/07 9:29 AM Page 110
110 Computer Skills Workbook for Fluency with Information Technology, Third Edition
all of the data, we can use the SUM function. This will allow us to specify a group of cells by
dragging to select the cells or typing a specific range.
Copy the formula in cell B15 to the range C15:E15. You can use the dragging
method or the copy and paste method.
Activate each cell (C15, D15, E15) and look at the formula in the formula
bar. The formula in cell C15 is =SUM(C7:C13).
Excel has changed the range in each cell accordingly. This is exactly the effect that we need at
this point, so dont hesitate to copy formulas.
Now lets enter the formula for the Net Surplus/Deficit using a pointing method. We will subtract
the Total Expenses figure from the Income figure.
lab05_p99-124 8/22/07 9:29 AM Page 111
Type: -
Click cell B15.
Notice the marquee around cell B15, as shown in Figure 5.16.
Copy the formula in cell B17 to the range C17:E17 using any method you
prefer.
Lets create the Year-To-Date formulas.
112 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Viewing Formulas
Press and hold the Ctrl key while you tap the ~ key.
The ~ key is at the upper-left position on your keyboard. Notice that the display reveals all of the
formulas, as shown in Figure 5.19. To return to the display view we will use the same key
combination.
Press and hold the Ctrl key while you tap the ~ key. Notice that the view has
returned to the display view.
Excel allows us to insert rows and columns of cells into the worksheet and adjusts the formulas
accordingly. Lets insert a row between the month headings and the income figures.
Activate cell B4. This is the position of the new blank row and activating any
cell in the row will work.
Click the drop-down arrow beside or below the Insert button on the Ribbon
as shown in Figure 5.20. This reveals the Insert menu.
Click the menu choice Insert Sheet Rows to add a row at the active cell
position.
lab05_p99-124 8/22/07 9:29 AM Page 114
114 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Printing a Worksheet
You can print an Excel worksheet using the Office button and Print menu command as you
would with any other application program. Worksheets can quickly become wide and long and
will print on multiple pages, or can be fit to a single page. When the document is fit to a single
page, the font size is reduced until the data fits on one page.
Click the Office button and click the Print menu item.
Click the Print option as shown in Figure 5.21.
The Print dialog box should appear as shown in Figure 5.21.
lab05_p99-124 8/22/07 9:29 AM Page 115
Notice that the Active sheet(s) option is selected. As the workbook can have several sheets, there
is an option to select only the active sheet, or the entire workbook.
If you have a printer available, click the OK button to print the worksheet. If
you do not have a printer available, click the Cancel button to cancel the print.
To this point, we have been entering data, formulas, and adjusting the worksheet cells. Lets look
at some formatting options to enhance the document.
By default, all of the labels are left-aligned within the cell and all of the values are right-aligned.
Lets adjust the month labels so that they are centered in the cell.
Select the cells containing the months by positioning the mouse pointer in
the middle of cell B3 and dragging through to cell E3.
Click the Center button on the Ribbon as shown in Figure 5.22.
lab05_p99-124 8/22/07 9:29 AM Page 116
116 Computer Skills Workbook for Fluency with Information Technology, Third Edition
If the content of a cell is too long, we may prefer to wrap the text within the cell, rather than
increase the column width. First, make sure that the title Year-to-Date is extending beyond
column F and into column G. If column F is wide enough for the title, decrease the column width
a bit.
Activate cell A1. This cell contains the label Budget for Jane Doe. Its
important that the label to be centered is entered in the leftmost cell of the
range.
Select the range A1:F1 by dragging through the range.
Click the Merge & Center button on the Ribbon as shown in Figure 5.22.
Notice that the title has been centered across columns A through F. The cells A1:F1 have been
merged. When you activate any of these cells the entire selection is activated, as shown in
Figure 5.23.
lab05_p99-124 8/22/07 9:29 AM Page 117
Formatting Values
The values in the worksheet do not contain decimals or dollar signs. We can use formatting
options to include these.
118 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Notice that the titles in column A are now bold. The bold formatting increases the width of the
characters slightly and you may have to increase the width of column A to view the Net
Surplus/Deficit title.
Using whichever method you prefer, display all of the other titles in bold as
well. Note that to bold the Budget for Jane Doe title, you will select the merged
cell A1:F4.
Lets underline the title of the worksheet.
120 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Scroll through the list to get an idea of the fonts that are available. As you
scroll through the list you may see the text change font in the worksheet.
Select the Times New Roman font by clicking the name in the Font box.
Change the font size to 18 by clicking the Font Size drop-down arrow and
selecting 18 from the listing. Notice that the font size has increased and the row
height has increased to accommodate the characters.
If the numbers are replaced with # symbols, increase the column width. The
# symbol indicates the column width is too narrow to display all of the digits.
Lets change the color of the text in the title.
Click one of the color swatches to change the color of the title.
When you are setting font color in a financial worksheet you should be aware that when values
(numbers) are colored red, this is interpreted as negative or loss.
We can also add shading to any cell. Lets shade the Net Surplus/Deficit figures.
122 Computer Skills Workbook for Fluency with Information Technology, Third Edition
Review
This has been a busy lab! We have covered the following topics:
Electronic spreadsheet concepts
Parts of the window
Cell references
Entering data in a cell
Editing and deleting data in a cell
Using cut/copy/paste and drag and drop techniques to copy and move cell contents
Relative cell formulas
Copying cell formulas and references adjust accordingly
Sum built-in function
Formatting enhancements
Alignment within the cell
Merge and center across cells
Bold, italic, and underline
Fonts and font sizes
Printing worksheets
lab05_p99-124 8/22/07 9:29 AM Page 123
Exercises
1. Enter the data shown in Figure 5.29.
The budget sheet will have figures for January, February, and March. Copy
the cell containing January to the two cells to the right by dragging on the
bottom right corner of the cell. This enters February and March in the
following two cells. This technique also works for the days of the week. (This
technique only works when using the drag and drop method for copying cell
contents; it does not work when using copy and paste.)
The values for Income, Mortgage, and Car Loan remain unchanged for the
three month period. Copy these values into the appropriate cells for February
and March.
Enter the values for the remaining expenses as follows:
Car Insurance: 325.00 paid in February only
Car gas/maintenance: 120.00 for January and February, 80.00 for March
Food: 300.00 for January, 250 for February and March
Clothes: 300.00 for February only
Entertainment: 250.00 for January, 100.00 for February and March
Increase cell widths where appropriate in order to display the contents.
Use the SUM function to create a formula for the total expenses.
Create a formula for Net Surplus (Deficit), which will result in the Total
Income Total Expenses
Create a column to the right of March for Year-to-Date calculations.
Use the SUM function to calculate the total of each of the rows. You can use
the AutoSum button on the Ribbon to automatically enter the Sum function.
lab05_p99-124 8/22/07 9:29 AM Page 124
124 Computer Skills Workbook for Fluency with Information Technology, Third Edition
After you click the AutoSum button, you can drag to adjust the range of cells to
be included in the sum.
Save this spreadsheet as Exercise1.xlsx.
Underline the title Budget for Alfred Doe and center it across all columns
of the budget sheet.
Use the font Tahoma, size 16 for the title Budget for Alfred Doe.
Bold all of the titles in column A.
Use bold and italic formatting for all of the month names.
Center the month names in each cell.
Wrap the Year-to-Date title in the cell.
Select all cells that contain values and use the Increase Decimal button
on the Ribbon to increase all cells with values to two decimal places.
Use the Currency formatting for the Income figures.
Apply a light shading to the Net Surplus/Deficit row.