Microsoft Excel Intro
Microsoft Excel Intro
In this free online class, you'll explore the Microsoft Excel interface and learn to enter, edit and format
data and use Excel formulas and functions to calculate and analyze numeric data. You'll also get tips
on using Microsoft Excel for simplifying many tasks as well as making data more readable and
interesting.
Lessons
1. Getting started with Microsoft Excel 2007
Have you always wanted to learn Microsoft Excel but just haven't had the time?
If you don't have any experience in Excel yet, that's not a problem. This lesson
eases you into the software by covering Microsoft Excel spreadsheet basics.
2. Microsoft Excel tutorial: creating your first worksheet
In this lesson, you'll learn more about entering data in Excel, including how to
edit existing data and simplify the entry of repeating data. You'll also find out
how to select and manipulate ranges (groups) of cells, and move and copy data
among them.
3. Microsoft Excel tutorial: Microsoft Excel formula and function basics
Excel's real power comes from its ability to "crunch numbers." In this lesson,
you'll get an introduction to Excel's numeric calculation capabilities, including
simple math formulas and time-saving, built-in functions.
4. Microsoft Excel tutorial: formatting basics in Excel
Once you know how to create a simple spreadsheet and add formulas and
functions, it's time to spice it up with formatting. In this lesson, you'll learn how
to add life to your spreadsheets with text, cell and page formatting.
Lesson 1 overview
This first lesson eases you into Excel 2007 by explaining what Excel is and
what it's good for. You'll find out what's changed since Excel 2003 and learn
how to handle files and do some basic editing. Even if you've never opened
Excel before, you'll get up to speed quickly and be ready to tackle creating your
own worksheets in the next lesson. Let's get started.
Figure 1-1: You can use spreadsheets for a variety of financial calculations.
Figure 1-2 shows a business form in Excel. Because Excel enables you to
place borders (lines) around one or more sides of a cell, you can use it to
create vertical and horizontal lines on a page. Such forms are more than just
neat-looking in print; they can also contain formulas that calculate invoice or
purchase order totals. Notice in Figure 1-2 that most of the gridlines between
cells are hidden and that the column widths have been changed to adjust the
spacing to make the form look more attractive.
Figure 1-2 was created with a template from the Forms > Business
category in the New Workbook dialog box in Excel. This template was
downloaded from Microsoft's template library online. You'll learn how to do
that in Lesson 2.
You'll learn how to enter text and numbers in Lessons 1 and 2 of this course,
and then you'll learn about formulas and functions in Lesson 3.
Next, find out how to start Excel 2007 and take a tour of the interface.
Excel opens with a blank workbook. You can use that workbook, or you can
open an existing one from disk. If you add data to the blank workbook, it
remains open; if you open another workbook without doing anything to it, it
disappears.
HP Color multifunction
and all-in-one printers
You can point at any button on any toolbar, tab, or ribbon to see its name and a
brief explanation of what it does. One good way to explore the interface is to
move your mouse pointer around the screen and read the ScreenTips
(explanations) that appear.
The next section covers new features and functionality in Excel 2007.
Excel 2007 is part of the Microsoft Office 2007 suite of applications, which
includes Word, Excel, PowerPoint, Access, and Outlook. These programs
all have similar interfaces.
HP Deskjet printers
The Ribbon
The Ribbon replaces the menu system from earlier versions of Excel. Instead
of drop-down menus, you now have tabbed pages (a.k.a. tabs) of toolbars.
Many of the buttons on the Ribbon are similar to the buttons on the toolbars in
earlier versions of Excel.
Each Ribbon tab has named sections, called groups. For example, in Figure 14, you see the Home tab, which contains groups including Clipboard, Font,
Alignment, Number, Styles, Cells, and Editing.
Some of the groups have icons in their lower-right corners. These are dialog
box launchers. They open dialog boxes containing more options for the
settings in that group than the Ribbon provides.
Figure 1-4: The Ribbon takes the place of menus and toolbars.
Enlarge image
Groups expand or collapse based on the width of the Excel window. When the
Excel window is restored down (smaller than full size), some groups become
single buttons that drop down into a palette of buttons when you click them.
Figure 1-5 shows the same tab as Figure 1-4, but at a narrower window size
and with the Alignment group's button active (selected) so that the hidden
buttons open as a drop-down palette.
Figure 1-5: When the Ribbon is less than full size, groups are collapsed.
Enlarge image
The Office menu has two columns. Commands appear in the left column. When
you point at an arrow in the left column, additional commands appear in the
right column. For example, as shown in Figure 1-6, if you point to the arrow
next to Save As in the left column, various saving options appear for selection
in the right column.
Figure 1-6: The Office menu replaces the File menu from earlier versions of
Excel.
Take a tour of the Excel 2007 interface and learn basic skills. (1.8 MB file)
Many other differences can be found in Excel 2007. You'll discover some of
them as you proceed through the course. The next section addresses how to
work with data files in this course.
Here's the basic procedure for downloading a data file for this course:
If a page appears with a bunch of gibberish, close that window and then
use the alternate method that follows.
1. In the Save As dialog box, navigate to the folder in which you want to
save it and then click Save.
Understanding Excel
2007 and XML
In older versions of Excel,
files were saved with the .xls
extension. In Excel 2007,
however, the default
extension is .xlsx. The "x"
refers to XML (Extensible
Markup Language), which is
a file technology that enables
data to be restructured,
repurposed, reorganized,
and validated with every new
use. If a user doesn't have
Excel 2007, he or she can
still open and read an .xlsx
file using an XML reader,
which is easily downloaded
from the Internet. XMLrelated files are highly
compressed, enabling you to
store more files on your hard
disk and more easily send
and receive Excel 2007
documents over a network,
the Internet, or by e-mail.
This course uses data files in the Excel 97-2003 format, so that students
who don't have Excel 2007 can use them, too. Excel 2007 opens such files
with no problems. The data files you create from scratch yourself as you
proceed through the course will probably be in Excel 2007 format. Some
minor advantages are provided when working in Excel 2007 format, such
as the ability to use some of the new formatting features. You'll learn about
them later when they become relevant to the lesson.
If a dialog box opens after the download that contains an Open button, you can
click that button to open the file in Excel without further ado. That might or
might not happen, depending on your version of Windows and how it is set up.
If that doesn't occur, or if you want to open the data file later, you can use the
Open command, as follows:
The Open dialog box looks very different depending on the Windows version
you have. (Yes, that's the Windows version, not just the Excel version.) If you
use Microsoft Windows XP, for example, dialog boxes in Excel 2007 look pretty
much like they did in earlier versions of Excel, and like they do in other
programs. See Figure 1-7 as an example.
Figure 1-7: In Windows XP, the Open dialog box looks similar to that in earlier
Excel versions.
Enlarge image
HP Color LaserJet
printers
If you use Windows Vista, however, the Open dialog box looks more like the
Windows Vista file management interface, as shown in Figure 1-8.
Figure 1-8: In Windows Vista, the Open dialog box looks like the Vista file
management interface.
Enlarge image
In either case, you navigate to the folder containing the file to open, select the
file you want, and click the Open button.
Selecting a cell
HP Officejet printers
Before you can enter or edit data in a cell, you need to select it. Here are some
ways:
Click the cell.
Use the arrow keys on the keyboard to move the cell selector (the thick
outline that indicates the active cell) onto the desired cell.
If the desired cell is to the right of the cell selector's current position, press
the Tab key on your keyboard to move it to the right. Or, if the desired cell is
to the left, press Shift+Tab to move it to the left.
If you change your mind about entering or editing data in the cell, press Esc
before you move the cell selector away from that cell. This returns it to its
previous value. If you don't realize the mistake until after moving away from the
cell, press Ctrl+Z to undo the last action. Alternatively, click the Undo button
on the Quick Access Toolbar.
1.
2.
3.
4.
5.
HP Color multifunction
and all-in-one printers
To print using the Print dialog box, follow these steps (try it with Practice.xls if
you like):
1. (Optional) If you want to print only a certain range of cells, select them.
(You'll learn how to do this in Lesson 2; for now, you can drag across a
range to select it, if desired.)
2. Click the Microsoft Office Button, and then click Print. The Print dialog
box opens, as shown in Figure 1-9.
1. Click the Microsoft Office Button, and then select Save As. The Save As
dialog box opens.
2. Type the desired file name in the File name text box.
3. (Optional) Navigate to a different folder location, if desired.
4. (Optional) Change the file type in the Save as type drop-down list, if
desired.
5. Click Save.
1. With Practice.xls open in Excel, click the Microsoft Office Button and
then select Save As.
2. In the Save as type list, select Excel Workbook (*.xlsx).
3. In the File name text box, change the name to Practice07.
4. Click Save.
By selecting the Excel Workbook (*.xlsx) option before saving the workbook,
you changed the file to the Excel 2007 format, which is XML-based. This file
now has an .xlsx extension.
If you don't see the .xlsx extension, you need to change an option in the Folder
Options dialog box in your operating system to make the extensions viewable.
In Windows Vista, click Start, and then click Computer. In the Computer
window, select Tools > Folder Options from the menu bar. Click the View tab.
Uncheck the Hide extensions for known file types checkbox, and then click
OK. Close the Computer window and return to Excel 2007. Click the Microsoft
Office Button, and then click Save As. Notice in the Save As dialog box that
you can now see the file extensions. Click Cancel to close the Save As dialog
box. The steps are similar for Windows XP -- just open My Computer rather
than Computer.
Moving on
In this first lesson, you learned about Excel 2007's interface, and you saw how
to open and save data files and enter and edit text in cells. In Lesson 2, you'll
continue exploring the Excel 2007 interface and building Excel files. You'll learn
how to move around in a worksheet, change the view, move and copy data,
and more. Before you move on to Lesson 2, complete the assignment and take
the quiz, which are designed to help you get the most out of this course.
Assignment #1
For this assignment:
1. Download Receipts.xls and save it on your hard disk, in any location that's convenient for
you.
Excel 2007 defaults to the Documents or My Documents folder, so if you save your files there,
you won't have to worry about changing the save or open location.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
Solution
Figure 1-11: If you completed the assignment as instructed, it should resemble this figure.
Enlarge image
Quiz #1
Question 1:
You're using Microsoft Internet Explorer and having trouble downloading a data file for this course by
clicking the hyperlink. An alternate method is to right-click the hyperlink, and then select ___________.
A)
Download
B)
Save Target As
C)
Target Location
D)
Save Image
Question 2:
Which of the following are examples of a formula? (Check all that apply.)
A)
=B1+B2
B)
=B1+15-A6
C)
Grand Total
D)
437.222
Question 3:
What's the Ribbon in Excel 2007?
A)
Where the contents of the cell appear, and where you can type or edit the contents
B)
The buttons and slider that control the magnification at which you view the active worksheet
C)
The small, customizable toolbar located just to the right of the Office button
D)
The tabbed toolbar system that contains buttons and other controls for issuing commands
Question 4:
To open a saved file, click the _________ button and then click Open.
A)
Microsoft Office
B)
File
C)
Library
D)
Data
Question 5:
Which key can you press to accept text you just entered into a cell and then move to the adjacent cell to
the right? (Check all that apply.)
A)
Tab
B)
Esc
C)
Right-arrow key
D)
F1
As you learned in Lesson 1, Excel 2007 starts a new workbook each time you
open the program. You can use that workbook as-is, saving it with whatever file
name you like. This default workbook is based on a generic workbook template
that contains three worksheet tabs (Sheet1, Sheet2, and Sheet3) and no
special formatting or content.
To start another new workbook, click the Microsoft Office Button, and then
select New. The New Workbook dialog box opens. Highlight the Blank
Workbook template, and then click Create to create another workbook just like
the default one.
HP Paper
Figure 2-1: The New Workbook dialog box can be used to start a new blank
workbook.
Enlarge image
Alternatively, you can select one of the categories on the Templates list, and
then select a template. Templates are samples that contain extra formatting,
sample content, more or fewer worksheets, or any combination of those things;
templates are designed to jump-start specific types of projects, such as
business forms, calendars, reports, or schedules. For example, in Figure 2-2,
the Budgets category is selected, and you can select from several list
templates. Pick the one you want, and then click Download (or Create). The
button is labeled "Download" if the template is located on the Internet and
"Create" if it's located on your own hard disk.
Figure 2-2: The New Workbook dialog box can be used to browse templates at
Microsoft Office Online.
Enlarge image
1.
2.
3.
4.
If you find yourself frequently needing to create a new blank workbook, place a
shortcut button that does that on the Quick Access Toolbar. To do so: Click the
Microsoft Office Button, and then click Excel Options. Select Customize in the
left pane. In the left list of options, select New, click Add >> to move it to the
list on the right, and then click OK.
1. Close all open workbooks. To do so, click the Microsoft Office Button,
and then select Close. Repeat this until all workbooks close. If you're
prompted to save the changes you made to the Personal budget file,
click No.
2. Press Ctrl+N to create a new blank workbook.
Now that you understand various methods for creating a new worksheet, you're
ready to learn how to use Excel's navigational tools to move around a
worksheet.
Row numbering increases as you scroll downward; the column letters run
from A to Z from left to right and then start over with AA through AZ, then
BA through BZ, and so on.
As you learned in Lesson 1, the worksheet window has vertical and horizontal
scroll bars, and they provide the simplest method of moving around the sheet.
They work just like the scroll bars in other applications. Figure 2-3 shows the
parts of an Excel scroll bar.
Figure 2-3: Use the scroll bars to move around in the worksheet.
Here's how to use a scroll bar:
To scroll a little bit at a time, click a scroll arrow at one end or the other of a
HP Color LaserJet
printers
scroll bar.
To scroll one screen at a time, click above or below the scroll box.
To scroll quickly, drag the scroll box.
The scroll box changes size depending on how much of the sheet is currently
not displayed; the smaller the scroll box, the more undisplayed content. In
Figure 2-3, for example, approximately one-half of the vertical size of the
worksheet wouldn't be displayed, because the scroll box takes up
approximately one-half of the scroll bar overall.
Using the scroll bar doesn't change which cell is active; it changes only your
view of the sheet. (Remember, the active cell is the one with the cell selector
around it -- that thick outline that moves when you use the arrow keys or click in
a cell.) It's possible for the active cell to not be visible onscreen at the moment
because you've scrolled away from it.
You can press Ctrl+Backspace to bring the active cell into view if you lose
track of it.
In Lesson 1, you learned that you can change the active cell by clicking a cell
or by using the arrow keys. Here's a more complete list of the keystrokes and
resulting movement of the cell selector:
Arrows: One cell in the direction of the arrow
Enter: Beginning of next row (or beginning of data range in next row)
Tab: One cell to the right
Shift+Tab: One cell to the left
Home: Beginning of current row
Ctrl+Home: Beginning of the worksheet
Ctrl+End: Bottommost, rightmost nonblank cell in sheet
Page Down: Down one screen
Page Up: Up one screen
Alt+Page Down: Right one screen
Alt+Page Up: Left one screen
Now that you've picked up some techniques for navigating worksheets, it's time
to find out how to select ranges. That's covered in the next section.
Selecting ranges
A range is a group of one or more cells. If you select more than one cell at a
time, you can then perform actions on the group of them at once, such as
applying formatting or clearing the contents. A range can even be an entire
worksheet.
A range is referenced by the upper left and lower right cells. For example, the
range of cells B1, B2, C1, and C2 would be referred to as B1:C2.
HP Officejet printers
To select a range
With the mouse: Drag across the desired cells with the left mouse button
held down. Be careful when you're positioning the mouse over the first cell
(before pressing the mouse button). Position the pointer over the center of
the cell, and not over an edge.
If you drag while the pointer is over the edge of the cell, Excel interprets the
selection as a move operation and whatever is in the cell(s) is dragged to a
different spot.
With the keyboard: Select the first cell, and then hold down the Shift key
while you press the arrow keys to expand the selection area.
To select an entire column, click the column header (where the letter is). To
select an entire row, click the row header (where the number is). You can click
one row or column and then drag to select additional columns, or hold down
Ctrl as you click on the headers for noncontiguous rows and/or columns.
If you use a laptop computer with a touchpad, you might need to spend
additional time practicing range selection due to the sensitive nature of the
touchpad. After you've mastered the technique, move on to the next section,
which covers moving between cells and copying data.
To move content by dragging with the mouse, select the cell or range, and then
drag the selection by its border to the new location. Hold down Ctrl to copy
rather than move.
Try it out:
1. In a new workbook, type some text in cells A1, A2, B1, and B2.
2. Select the range A1:B2.
3. Position the mouse pointer over the border of the range, anywhere
except in the lower-right corner. The mouse pointer appears as a fourheaded arrow with a white pointer arrow overlaid on it.
4. Press and hold the left mouse button, drag until the selection appears
HP Color multifunction
and all-in-one printers
Moving content also moves any formatting associated with that content. For
example, if you have a heading formatted in a large font, and you move it to
another cell, it remains formatted with that same font.
You can also move or copy using cut-and-paste with the Windows Clipboard.
Use the Cut, Copy, and Paste buttons in the Clipboard group on the Home tab,
or use the equivalent shortcut keys -- Ctrl+X for Cut, Ctrl+C for Copy, and
Ctrl+V for Paste.
Try it out:
1.
2.
3.
4.
5.
In the same worksheet you used in the previous steps, select D1:E2.
Press Ctrl+X or select Cut on the Home tab to cut.
Click cell D4 to select it.
Press Ctrl+V or select Paste on the Home tab to paste.
With D4:E5 still selected, press Ctrl+C or click Copy on the Home tab to
copy.
6. Select cell A4.
7. Press Ctrl+V or select Paste to paste the data.
You can change the zoom in several ways. The easiest is to drag the Zoom
slider, which is in the bottom right corner of the Excel window, as shown in
Figure 2-4. Drag to the left to decrease the zoom or to the right to increase it.
1.
2.
3.
4.
5.
6.
Next, learn how to use the Auto Fill feature and the fill handle.
Figure 2-5: The fill handle is the black square in the lower-right corner of the
selected range.
The best way to understand this feature is to see it in action. Try it now:
1. If there's anything on the current sheet, delete it. The easiest way is to
press Ctrl+A to select all data and then press Delete to clear all cell
content.
2. Type your name in cell A1.
3. Drag the fill handle down to cell A6. Your name is repeated in the range
A2:A6.
Notice that with text, the same value is repeated in every cell. It also does this
with some numbers, as in the following:
However, in other cases, Auto Fill increments a number rather than repeating
it:
1.
2.
3.
4.
1.
2.
3.
4.
Custom lists are fill series that Excel always attempts to Auto Fill in their
prescribed increments. Try the following to see the custom list for the days of
the week, for example:
You can edit and create your own custom lists, although this procedure is
beyond the scope of this course. To access the controls for doing so, click the
Microsoft Office Button and then click Excel Options. Select Popular, and then
select Edit Custom Lists.
See how to use Auto Fill and the fill handle. (1 MB file)
The next section shows you how to resize rows and columns. Read on.
Figure 2-6: Example of what happens when content overruns a cell width.
You can manually drag the divider between two column headings to the left or
right to adjust the width of the left column.
You can also AutoFit a column width, adjusting it so that its widest entry exactly
fits. Following are a couple of ways to do that:
Double-click between two column headings.
On the Home tab, in the Cells group, click Format, and then select AutoFit
Column Width.
To adjust the column width of all columns based on the text, select the
entire worksheet (Ctrl+A) and then use the AutoFit feature.
You can also specify an exact width in number of characters. Column width is
measured in characters of the default font. The default width is 8.43 characters.
To specify exact width:
You can also adjust the row heights, although this isn't quite as important
because row height adjusts automatically to accommodate the largest font
used in that row. To adjust the row height, drag between the row numbers, the
same as with columns. You also can use the AutoFit Row Height command on
the Format button's menu (Home tab, Cells group).
If you set a cell (or multiple cells) to Word Wrap, and the cell isn't wide
HP Color LaserJet
printers
enough to accommodate all the text, the row height adjusts automatically to
allow for multiple rows of text within the cell. To set Word Wrap, select the
cell, and then on the Home tab, in the Cells group, select Format > Format
Cells. On the Alignment tab, check the Wrap text checkbox, and then click
OK.
Now that you know how to resize rows and columns, learn how to insert and
delete rows and columns, which is covered in the next section.
HP Paper
1. If you want to insert multiple rows or multiple columns at once, select the
same number of rows or columns that you want to insert. Once you
issue the Insert command, new blank rows will appear above the
selected rows, and new blank columns will appear to the left of the
selected columns.
If you want to insert only one row or column, you can click in any cell in the
row or column adjacent to where the new one should go. You don't have to
select the entire row or the entire column.
1. On the Home tab, in the Cells group, select Insert, and then select what
you want to insert (for example, Insert Sheet Rows or Insert Sheet
Columns), as shown in Figure 2-7.
Figure 2-7: The Insert menu enables you to insert rows or columns, in addition
to cells and an entire sheet.
To delete a column or row (or multiple columns or rows):
You can also delete individual cells, but that's a slightly trickier matter, to be
discussed in the next section.
Clearing content
You can clear a cell's content in several ways:
Press Delete on the keyboard.
Right-click the cell, and then select Clear Contents.
On the Home tab, in the Editing group, select Clear > Clear Contents, as
shown in Figure 2-8.
Clearing a cell's content doesn't clear its formatting. You can clear
formatting from the Clear button's menu; select Clear Formats; or to clear
both contents and formats at once, select Clear All.
Figure 2-8: To clear content or formatting from a cell, use the Clear menu.
Deleting cells
In contrast, deleting the cell removes the cell itself from the stack and makes
the surrounding cells shift. Think about what happens when you pull a box out
of a stack of boxes -- the boxes above it fall down one position, right? It's the
same thing with Excel cells, except it's reverse-gravity (cells fall up rather than
down), and you have the choice of making the remaining cells shift up or to the
left.
Figure 2-9: Enter this data into a blank sheet to practice deleting cells.
1. Select cell A1, and then press Ctrl+B to bold the entry. (You'll learn
more about formatting in Lesson 4.)
2. Press the Delete key to clear the A1 cell content.
3. Type your first name in cell A1, and then press Enter. Notice that it's
bold. The formatting wasn't removed when you cleared the content.
4. Click in cell A1.
5. On the Home tab, select Clear > Clear Formats. The name is still there,
but it's no longer bold.
6. On the Home tab, select Clear > Clear All.
7. On the Home tab, select Delete > Delete Cells. The Delete dialog box
opens.
8. Select Shift cells up, and then click OK. The names in column A have
all moved up one row.
9. Select B1 and then repeat steps 8 and 9 to delete B1 so that the last
names shift up to once again align with the proper first names.
10. Close the workbook without saving your changes to it.
If you get confused when working with Excel 2007, remember that the key to
understanding the difference between clearing a cell and deleting a cell is to
visualize the cell as a box or container. Then you can decide whether you want
to empty that box or remove it entirely.
Moving on
In this lesson, you learned how to create a new worksheet and how to enter
and edit data into it, including how to automate the entry of repeated data. You
also learned how to resize, insert, and delete rows and columns. Before you
leave, take the quiz and complete the assignment. In Lesson 3, you'll get
started with formulas and functions, the real "meat and potatoes" of the Excel
application. With formulas and functions, you can set up cells that automatically
calculate numeric values based on input from other cells and that automatically
change their values when the numbers change.
Assignment #2
To practice using a template and inserting and deleting rows, do the following:
1. Start a new workbook based on the Personal budget template available from Microsoft
Office Online (in the Budgets category). Save the file as MyBudget.xlsx (in Microsoft Excel
2007 format).
2. Go through the list of budget categories in column A and delete any rows that don't match
your needs for a budget. Use the skills you learned in the lesson for moving around in a
worksheet.
3. Go through the list of budget categories again, adding new rows as needed for other budget
items that you want to track that were not already on the sheet.
4. Save the workbook and close it. You might want to come back to this workbook later and
use it for your own personal budgeting; you won't need it again in this course.
5. Start a new blank workbook, and then save it as MyPractice.xlsx.
6. Type the data shown in Figure 2-10. Here are some suggestions:
Use Auto Fill to fill in the other month names after typing January in cell B3.
Enlarge image
1. Insert a new row between Thomas Byrd and Nelson Brown, with the following data:
January: 20
February: 25
March: 30
April: 32
May: 26
June: 21
1. Save your work, close the file, and then close Excel 2007.
Solution
Figure 2-11: If you completed the assignment as instructed, it should resemble this figure.
Enlarge image
Quiz #2
Question 1:
Which shortcut key combination starts a new blank workbook without opening the New Workbook
dialog box?
A)
Ctrl+C
B)
Ctrl+N
C)
Ctrl+P
D)
Ctrl+X
Question 2:
If you want to move the selected range with the mouse, where do you position the mouse pointer over
the range before starting to drag?
A)
B)
C)
D)
Question 3:
On which tab does the Zoom to Selection feature appear?
A)
Page Layout
B)
Formulas
C)
Review
D)
View
Question 4:
Suppose that you type Monday in cell A1, select the cell, and then drag the fill handle to cell A2. What
will appear in cell A2?
A)
Tuesday
B)
Monday
C)
Sunday
D)
#ERROR#
Question 5:
Which of these are ways of changing the width of column C? (Check all that apply.)
A)
B)
C)
D)
E)
Select column C, and then on the Home tab in the Cells group, select Format > Column Width.
Understanding formulas
In the previous two lessons, you learned the basics of the Microsoft Excel
interface, along with data entry and editing and file handling. You learned how
to create worksheets that contain text and numbers in individual cells and how
to move, resize, insert, and delete rows and columns.
But if that's all Microsoft Excel were good for, a spreadsheet would be little
more than a glorified table. Data entry and editing are just the tip of Excel's
iceberg; its real power comes from its ability to "crunch numbers" with formulas
and functions. In this lesson, you'll learn how to create formulas and functions
and how to use them to summarize and calculate numeric data.
HP Color multifunction
and all-in-one printers
What's a formula?
A formula is an equation that performs some type of operation and issues a
result. In Excel, formulas always begin with an equal sign. Here are some
formula examples:
=2+6: This formula is strictly math. If you place this formula in a cell, the cell
displays 8.
=A1+6: Same as the preceding, but this time you're adding 6 to whichever
value is in cell A1 and displaying the result in the cell into which you enter
this formula. This formula does not change A1's contents.
=A1+A2: Same thing again, but you're adding the contents of cell A1 to the
contents of cell A2.
=A1+A2-A3: In this example, multiple cells are referenced.
-: Subtraction
*: Multiplication
/: Division
^: Exponentiation
Exponentiation means to multiply the number by itself. For example, 2 to
the 4th power is 2 x 2 x 2 x 2 and would be written 2^4 in Excel.
Figure 3-1: Cell A3 shows the result of the formula; the formula bar shows the
formula itself.
1. Click in the formula bar to move the insertion point there and edit the
formula to read as follows: =A1+A2+5. Then press Enter. The value
now appears as 18.
2. Change the value in cell A1 to 4. The value in A3 changes to 16.
In the next section, you'll learn about order of operations and grouping, which
is useful when you have more than two cell references or fixed numbers in a
formula.
1.
2.
3.
4.
HP Deskjet printers
=5+16/4^2
If you wanted the addition to occur first, you could put parentheses around the
addition portion of the equation, like this:
=(5+16)/4^2
If you wanted to perform the exponentiation last, you could add another set of
parentheses, like this:
=((5+16)/4)^2
If you left off the inner set of parentheses and wrote it like this:
=(5+16/4)^2
Then create the following formulas, to produce the results shown in Figure 3-2:
Figure 3-2: A sample worksheet after entering the formulas specified in the
preceding steps.
If your formulas didn't produce the results shown in Figure 3-2, check them by
showing the formulas, which is covered in the next section.
Showing formulas
By default, you see the formula results in the cells, but sometimes it can be
helpful to see the formulas there instead. For example, you might want to
check your work after entering the formulas in the preceding section.
To toggle between the two views, press Ctrl+` (grave accent). This isn't an
apostrophe; it's the accent symbol that's immediately above the Tab key on
most keyboards. Figure 3-3 shows the same formulas as Figure 3-2, but with
the formulas displayed in this manner. Press Ctrl+` again to switch back.
Figure 3-3: The worksheet from Figure 3-2, but with formulas displayed.
See how to use formulas. (.6 MB file)
HP Color LaserJet
printers
In the next section, you'll learn about functions and how they improve upon the
basics provided by formulas.
Understanding functions
Sometimes the number of entries in a formula can make it awkward to type and
edit. For example, suppose that you wanted to sum the values in a range of 10
cells, like this:
=A1+A2+A3+A4+A5+A6+A7+A8+A9+A10
HP Paper
Now, that's bad enough, but suppose it's a 100-cell range, or 1,000, or 10,000.
That's too much typing!
It gets even more complicated when you start dealing with other operations
besides the standard five that you learned about earlier in this lesson (addition,
subtraction, multiplication, division, and exponentiation). For example, suppose
that you want to find the average of the ten cells' values. You would need to
sum them and then divide by 10, like this:
=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10)/10
You have to put parentheses around the part that should be done first if it's
outside of the normal order of operations, as it is in the preceding formula.
For situations like these, functions are invaluable. A function stands for a type
of mathematical or logical calculation. Each function has one or more
arguments, which are like instructions that tell the function how to execute.
The arguments go in parentheses after the function's name. The most common
argument is the range of cells to which the function should apply. So, for
example, to average the range A1 through A10:
=AVERAGE(A1:A10)
HP Officejet printers
=TODAY()
If your answers are different, press Ctrl+` and check your work against the
worksheet shown in Figure 3-5.
=NPER(0.005,200,-10000)
The reason you use a negative -10000 is that the money is being borrowed, so
you're starting with a negative present value -- that is, you're "in the hole" by
that much.
Try that one now in any empty cell of any open worksheet. If you enter it
correctly, the answer should be 57.680136.
The next section covers the Insert Function feature, which is a handy way to
use functions without having to memorize the syntax for each one.
To try it out, display the Example2 tab in the Practice3.xls file you
downloaded earlier in the lesson. Then do the following:
If ABS (absolute value) and several other functions don't appear under
HP Color multifunction
and all-in-one printers
Select a function, make sure the Or select a category drop-down list is set
to All.
Figure 3-6: Using the Insert Function feature enables you to select the desired
function based on name or type.
Enlarge image
If you're not sure of the range, you can click the Browse button to the right of
the text box to minimize the Function Arguments dialog box, and then drag to
select the desired cell or range.
1. After all arguments have been entered (at least the required ones), click
OK. The dialog box closes, and the function is entered into the cell. Cell
B6 should now show a value of 13, and if you select B6 and look in the
Formula Bar, it should show =ABS(B5) there.
Next, learn to use the buttons and menus on the Formulas tab to insert
functions.
it, the Function Library group provides drop-down lists for the most popular
categories of functions, as shown in Figure 3-8. You can use these lists as an
alternative to using the Insert Function dialog box covered in the previous
section. When you select a function from one of these lists, the Function
Arguments dialog box opens, just as it would have if you'd chosen the function
from the Insert Function dialog box.
If you click the AutoSum button, it inserts the SUM function. This button
also has a drop-down list, from which you can choose from among several
common functions (AVERAGE, COUNT, MIN, and MAX).
When you move or copy a formula or function that contains cell references in it,
the references shift. You'll learn about that in the next section.
For example, take a look at Figure 3-9, the Quarterly Results sheet from the
earlier example. The function in D5 is =SUM(B5:C5). You might like to copy
this formula to D6, D7, D8, D9, and D10; however, you would want each copy
to refer to the appropriate row number, not row 5.
HP Deskjet printers
Enlarge image
Circular references: If you refer to the cell's own address in a function, you
create a circular error, which is like an endless loop. Suppose that you enter
=A1+1 into cell A1. You'll get an error message like the one shown in Figure
3-11. If you click OK at this message, a Help window appears to help you
find the problem.
Moving on
In this lesson, you learned how to create and edit formulas and functions.
There's a lot more to know about these powerful tools; however, this lesson
provided all the basics you'll need for simple worksheets. In Lesson 4, you'll
learn how to format a worksheet. So far, we have been focusing on the nuts
and bolts -- the hard stuff -- so formatting will be a fun and refreshing change.
Before logging off, do the assignment and quiz for this lesson.
Assignment #3
For this assignment:
Figure 3-12: These results should appear if you entered the functions correctly.
Enlarge image
Quiz #3
Question 1:
Which of the following is an example of a function?
A)
=B1+B2
B)
=SUM(B1:B2)
C)
=AVG[B1:B2]
D)
#NAME?
Question 2:
Given the order of operations, which is the answer Microsoft Excel 2007 provides to the formula
=56+16/4^2*2?
A)
58
B)
C)
0.28125
D)
648
Question 3:
Which function displays today's date and the current time?
A)
=TIME()
B)
=DATE()
C)
=TODAY()
D)
=NOW()
Question 4:
With a function that takes multiple arguments, how do you separate one argument from another within
the parentheses?
A)
Semicolon
B)
Comma
C)
Colon
D)
Period
Question 5:
On which tab is the Function Library group?
A)
Functions
B)
Reference
C)
Data
D)
Formulas
You might already be familiar with basic text formatting techniques from using
programs such as Microsoft Word or PowerPoint. You can use the buttons on
the Home tab, in the Font group, to apply a certain font, size, color, and other
text attributes, as shown in Figure 4-1. The buttons are described as follows:
Figure 4-1: The Font group contains buttons and lists for applying text
formatting.
Font: Open the drop-down list and select a font.
The top two entries on the Font list, for the Heading and Body, work with
the formatting themes you'll learn about in the next section.
Font Size: Open the drop-down list and select a font size or click the
Increase Font Size or Decrease Font Size button.
Attributes: Use any of these buttons to apply bold, italic, or underline.
Font Color: Click here to apply text color or open the button's menu to
change the color. This process is described in more detail in the next
section.
The other two buttons in the Font group, the Borders button and the Fill
button, are discussed later in this lesson.
You can also click the dialog box launcher, in the lower-right corner of the Font
group, to open the Format Cells dialog box with the Font tab displayed, as
shown in Figure 4-2. From here, you can select the same formatting as on the
Ribbon, but with a few extra options available, such as Strikethrough,
Superscript, and Subscript.
HP Color LaserJet
printers
Figure 4-2: The dialog box launcher in the Font group opens the Format Cells
dialog box.
Enlarge image
1. Download the Practice4.xls file, and then open it in Excel. Save the file
as MyPractice4.xlsx (Excel 2007 format).
2. Select cell A1, and then change the font size to 24 point.
3. Apply the Bold and Italic attributes to cell A1.
4. Click the Decrease Font Size button once to decrease the size. It
decreases by 2 points, to 22 pt.
The Increase Font Size and Decrease Font Size buttons don't always
change one point at a time; they change to the next size on the Font Size
list. If you open the Font Size list, you'll notice that it jumps from 22 to 24;
that's why clicking the button once in step 4 resulted in a 2-point change. If
you wanted 23-point text, you could manually type the number 23 in the
Font Size text box above the list.
1. Change the font size in the cell range B4:D4 and in cell A11 to 12 point
bold.
2. Select cells A2 and F2, and then apply the Times New Roman font.
3. Save your work. Keep the file open for later use in the lesson.
HP Paper
Figure 4-3: The palette for selecting a color from the Font Color button.
The top row contains a single color: Automatic. This is the default. It shows
text in black when on a light-colored background and in white when on a darkcolored background.
The next row is the Theme Colors. These are not fixed colors, but rather color
placeholders. Each of the 10 slots is filled by a certain color; you can change
which colors fill those slots by selecting a different color theme, which you'll
learn about in the next section of the lesson. So, for example, suppose you
apply the rightmost theme color (orange, in Figure 4-3) to some text, and then
you change to a different color theme that defines color #10 as red. Any text
that you've formatted with that color changes from orange to red.
The five rows immediately beneath the theme colors are tints and shades of
those theme colors. These are varying degrees of intensity -- various
modification filters -- applied to the theme colors. When the theme colors
change, these color swatches change too. For example, in Figure 4-3, the
lightest tint of color #10 (orange) is shown as pale orange. If you were to apply
a theme that defined color #10 as red, that lightest tint of the color would
change to a pale pink.
The Standard Colors are fixed colors. These colors don't change, regardless
of the color theme applied. You would use these whenever you wanted to
make sure that text remained the exact color you chose for it.
The More Colors button opens a dialog box from which you can select
additional standard (fixed) colors. You can select from a palette of additional
color swatches (General tab) or specify a color by its RGB or CMYK numbers
(Custom tab, shown in Figure 4-4).
Figure 4-4: You can define additional fixed colors from the Colors dialog box.
Try it out now on the MyPractice4.xlsx file you saved earlier in the lesson:
1. Select cell A1, open the Font Color button's menu in the Font group,
and then apply the fourth theme color from the left (Dark Blue, Text 2).
2. Select A2:G2, and then apply the third tint down from the fourth color
theme color (Dark Blue, Text 2, Lighter 40%).
3. Select the cell range F4:F10, and then apply the Red standard color,
which is second from the left in the Standard Colors section of the list.
4. Select the cell range G4:G10. Open the Font Color button's menu,
select More Colors, and then click the Custom tab in the Colors dialog
box. Make sure the Color model is set to RGB, and then enter the
following values: Red: 208, Green: 40, and Blue: 0. Click OK.
5. Save your work. Leave the file open for use later in the lesson. Check
your work against Figure 4-5 to make sure you've done everything
correctly so far.
Next, you'll learn how to use formatting themes, a new feature in Excel 2007.
Effects are for graphical objects, which are not covered in this course, so
for this lesson, ignore effect options.
You can apply an overall theme that changes all three of those things at once,
or you can apply individual color themes, font themes, and effect themes to
change only one.
HP Officejet printers
As you learned at the beginning of this lesson, when you apply a font choice to
a cell, you can do any of the following:
Apply any of the fonts on the Font list, in which case, the font stays fixed no
matter which theme is applied. You did this, for example, in the practice file
to the text in cell A2.
Apply the Headings font placeholder, so it gets whichever font is currently
assigned as the Heading font.
Apply the Body font placeholder, so it gets whichever font is currently
assigned to the Body font.
You can tell which font has been assigned to the Headings and Body
placeholders by opening the Font drop-down list and seeing the fonts listed at
the top of the list, as shown in Figure 4-6.
1. Select cell A1. Open the Font drop-down list, and then select the
Headings font (Cambria) in the Themes Fonts section.
2. On the Page Layout tab, select Themes, and then point to several of
the themes without clicking on them. Behind the open menu you can
see how the worksheet changes to preview the various themes.
3. Select Median as the theme choice. Notice that not only have the fonts
changed, but also the colors of the text in A1, A2, and F2 have changed.
The text in cell range F4:G10 has not changed because it's formatted
with standard/fixed colors. Notice that the font in A2 didn't change
because it was assigned as a fixed font earlier.
4. In the Themes group, open the Colors list, and then select Opulent.
Notice that the colors in A1, A2, and F2 change again, but there's no
font change.
5. Open the Fonts list, and then select Office Classic. Notice that the
fonts change, but no color change occurs.
6. Open the Effects list, and then select Apex. Nothing changes because
no graphic objects are in the worksheet.
7. Save your work and leave the file open for future use in the lesson.
In the next section, you'll learn how to set the alignment for cell content.
When a cell is at its default height, it's exactly the height needed to hold its
contents. Vertical alignment becomes an issue only if you resize the row
height so it's taller than it needs to be, or when a cell contains fewer lines
than other cells in that same row.
The easiest way to change cell alignment is with the buttons on the Home tab,
in the Alignment group, as shown in Figure 4-8. Select the cell(s), and then
click the desired alignment button. Separate sets of buttons are provided for
vertical and horizontal alignment.
HP Color multifunction
and all-in-one printers
the cell by inserting spaces between words as needed. Most often only one
line is in a cell, so Justify looks just like Left alignment. However, when you
enter more text than fits the cell, and then use Wrap Text, you'll see Justify
in action.
Now let's try it. Use the practice file you have been working with throughout this
lesson:
1. Select the cell range A2:A11, and then apply horizontal right alignment.
2. Select the cell range A1:G1, and then click the Merge & Center button.
3. Select the cell range B4:D4, and then apply horizontal center
alignment.
4. Increase the row height for row 1 to 40 point. (Hint: Use the Format
button in the Cells group on the Home tab.)
5. Set the vertical alignment for row 1 to Center.
6. Save your work. Leave the file open for later work in this lesson.
Figure 4-10: The Border button's menu enables you to apply borders to certain
sides of the selected area.
To try your hand at applying borders, follow these steps using the practice file
you've been working with throughout this lesson:
You can also apply borders via the Format Cells dialog box, as shown in Figure
4-11. This method gives you more precise control over the border style and
over the sides to which it's applied. To access it, click the dialog box launcher
for the Font group (Home tab) and then click the Border tab.
Figure 4-11: Use the Border tab to more precisely control the borders.
Enlarge image
The best way to see how these border controls work is to try them out. Use the
same practice file as before and follow these steps:
1. Select the cell range F4:G10, and then click the dialog box launcher in
the Font group. The Format Cells dialog box opens.
2. Click the Border tab.
3. In the Style area, select the third choice on the left side (the dotted line
).
4. Open the Color list, and then select the Red color swatch under
Standard Color.
5. In the Border area, select each of the three vertical line buttons at the
bottom of the sample. Dotted red lines appear vertically on the sample
area.
6. In the Style area, select the thick solid line (sixth down on the right
side).
7. In the Border area, select the top and bottom horizontal lines.
8. Click OK.
Some of the lines might look bright blue at this point; that's just because they're
selected, and when things are selected, they appear in their opposite color.
Click away from the selection to see how it really looks.
Applying shading
Shading is the colored background (if any) behind a cell. By default, a cell has
no shading, but you can add any of a variety of solid or patterned
backgrounds.
For simple, no-frills shading, the easiest way is to use the Fill Color button on
the Home tab (Font group) toolbar. It looks like a paint can. Click the arrow to
its right to open its palette of colors and pick a color, just like you did earlier
with the font color. The same rules apply for standard colors, theme colors,
tints/shades, and so on.
If you plan to save the file in Excel 97-2003 format, some of the
tints/shades might not work properly. Try to stick with standard colors if you
think you'll be distributing your work in a format other than Excel 2007's
native format.
The Number group on the Home tab, shown in Figure 4-13, contains some
buttons for the most popular number formatting options:
Figure 4-13: The Number group on the Home tab enables you to format
numbers.
Number Format: Select a number format from this drop-down list (which
currently displays "Currency"). You can also select More Number Formats
at the bottom of the drop-down list to view a dialog box with more options.
Accounting Number Format: Click this button to quickly set up a number
as currency or open the button's menu to select a nationality (currency
symbol other than $).
Percent Style: Click this button to change the number into a percentage.
Comma Style: Click this button to insert commas into long numbers (more
than 3 digits to the left of the decimal point).
Increase Decimal and Decrease Decimal: These buttons change the
number of decimal places shown for the number.
When you apply a format to a number that decreases its precision, the
original value isn't lost. Excel still uses the original value for any
calculations in which the cell is involved. For example, if you set the
number of decimal places to 0 for two cells both containing 2.49, they each
display as 2. However, if you create a formula that adds them, the result is
4.98. If you then format the result with 0 decimal places, the result appears
as 5. So in this case, it would appear that 2+2=5. Be careful that you don't
HP Color LaserJet
printers
inadvertently create confusion for your readers with this sort of formatting.
If you select More Number Formats from the Number Format list or click the
dialog box launcher for the Number group, the Format Cells dialog box opens
with the Number tab displayed. From here, you can fine-tune the settings for
the chosen number format. The following table lists the number formats and
the types of options you can set for each.
Category
Purpose/Usage
Options
You Can
Set
General
None
Number
Decimal
places
Use of
comma
Negative
number
indicator
Currency
Decimal
places
Currency
symbol
Negative
number
indicator
Decimal
places
Currency
symbol
Date
Type
(format)
Locale
Time
Type
(format)
Locale
Decimal
places
Fraction
Type
Scientific
Text
None
Special
Type
Custom
Type
In the next section, you'll learn how to format entire pages and set up a
worksheet for printing.
Enough useful page-wide settings exist to create an entire lesson, but this
section summarizes them for you. You'll want to spend more time with them on
your own. All of these settings are located on the Page Layout tab.
HP Paper
Page setup
The Page Setup group on the Page Layout tab, shown in Figure 4-14, provides
menus for changing various document-wide settings:
Scale to fit
In this group, you can set Excel to automatically shrink a printout's font to print
a document on a specified number of pages, or to print at a certain percentage
of the original font size, as shown in Figure 4-15.
Moving on
In Lesson 4 you learned how to use font and number formats, text color, and
cell alignment to customize the look of your Excel worksheets. You also
learned to apply formatting themes, borders, and shading to your spreadsheets
and how to use many of the options available to create effective, useful
documents
Assignment #4
For this assignment:
Figure 4-16: These results should appear if you applied the formatting correctly.
Enlarge image
Quiz #4
Question 1:
What happens when you apply a different color theme to a worksheet that uses standard colors?
A)
B)
C)
Only the Windows colors change; the others remain the same.
D)
Only the primary colors change; the others remain the same.
Question 2:
Which feature makes text tilt up or down at an angle?
A)
Vertical alignment
B)
Horizontal alignment
C)
Orientation
D)
Diagonal
Question 3:
In which dialog box do you set up custom borders for cells and ranges?
A)
B)
C)
D)
Question 4:
Which of the following is not one of Microsoft Excel 2007's number format categories?
A)
Scientific
B)
Number
C)
General
D)
Standard
Question 5:
On which tab is the Page Setup group, where you can define margins, orientation, paper size, and print
area?
A)
Page Layout
B)
Review
C)
View
D)
Home