Excel XP
Excel XP
Excel XP
Microsoft Excel XP is a spreadsheet application in the Microsoft Office suite. A spreadsheet is an accounting program for the computer.
Spreadsheets are primarily used to work with numbers and text. Spreadsheets can help organize information, such as alphabetizing a list of
names or ordering records, and calculate and analyze information using mathematical formulas.
The title bar displays both the name of the application and the name of the spreadsheet.
Menu bar
The menu bar displays all of the menus available for use in Excel XP. The contents of any menu can be displayed by left-clicking the menu
name.
Toolbar
Some commands in the menus have pictures or icons associated with them. These pictures may also appear as shortcuts in the toolbar.
Column headings
Each Excel spreadsheet contains 256 columns. Each column is named by a letter or combination of letters.
Row headings
Name box
Formula bar
The formula bar isplays information entered—or being entered as you type—in the current or active cell. The contents of a cell can also be
edited in the formula bar.
Cell
A cell is an intersection of a column and row. Each cell has a unique cell address. In the picture above, the cell address of the selected cell is
B3. The heavy border around the selected cell is called the cell pointer.
Sheet tabs separate a workbook into specific worksheets. A workbook defaults to three worksheets. A workbook must contain at least one
worksheet.
Column headings are referenced by alphabetic characters in the gray boxes that run across the Excel screen, beginning with column A and
ending with column IV.
Rows are referenced by numbers that appear on the left and then run down the Excel screen. The first row is named row 1, while the last
row is named 65536.
Important terms
A workbook is made up of three worksheets.
The worksheets are labeled Sheet1, Sheet2, and Sheet3.
Each Excel worksheet is made up of columns and rows.
In order to access a worksheet, click the tab that says Sheet#.
The cell
An Excel worksheet is made up of columns and rows. Where these columns and rows intersect, they form little boxes called cells. The active
cell—or the cell that can be acted upon—reveals a dark border. All other cells reveal a light gray border. Each cell has a name. Its name is
comprised of two parts: the column letter and the row number.
In the following picture, the cell C3—formed by the intersection of column C and row 3—contains the dark border. It is the active cell.
Important terms
Each cell has a unique cell address composed of a cell's column and row.
The active cell is the cell that receives the data or command you give it.
A darkened border, called the cell pointer, identifies it.
Challenge!
Display the contents of every menu in the menu bar, and note the icons associated with specific menu choices. Try to find the
pictures or shortcuts on the Standard toolbar.
Click each of the three worksheet tabs—Sheet1, Sheet2 and Sheet3—to become familiar moving from sheet to sheet in the
workbook.
Use the Page Up (PgUp) and Page Down (PgDn) keys to get used to scrolling in a worksheet.
Use the horizontal and vertical scrollbars to practice scrolling up, down, left, and right in the worksheet.
Open
This is used to open an existing file from a floppy disk or hard drive of your computer.
Close
This is used to close a spreadsheet.
Save As
This is used when you're saving a new file for the first time or saving an existing file with a different name.
Save
This is used to save a file that has had changes made to it. If you close the workbook without saving, any changes made will be lost.
Creating a workbook
A blank workbook is displayed when Microsoft Excel XP is first opened. You can type information or design a layout directly in this blank
workbook.
Saving a workbook
Every workbook created in Excel must be saved and assigned a name to distinguish it from other workbooks. The first time you save a
workbook, Excel will prompt you to assign a name through the Save As operation. Once the file is assigned a name, any additional changes
made to the text, numbers, or formulas must be saved using the Save operation.
If you're saving the file for the first time and do not choose a file name, Microsoft Excel will assign a file name for you.
It is a good idea to save frequently when working in a spreadsheet. Losing information is never fun! You can quickly save your
spreadsheet by using the quick-key combination Ctrl+S.
Opening a workbook
You can open any workbook that has previously been saved and given a name.
In the Look in list, click the drive, folder, or Internet location that has the file you want to open.
In the folder list, open the folder that contains the file. Once the file is displayed, click the file you want to open.
Click the Open button.
Closing a workbook
To close an existing Excel XP workbook:
Choose File Close from the menu bar. The workbook in the Excel window is closed.
Excel XP will prompt you to save information if anything has been typed between the last save and the time you close the file.
Challenge!
Create a new blank file and save as to c:\my documents as "test.xls".
Close the file.
Open the file.
Save the file after making at least one change to it.
Introduction
By the end of this lesson, you should be able to:
Enter text in a cell
Edit information in a cell
Delete information in a cell
Select multiple cells
Data being typed appears in the both active cell and the formula bar.
Notice the Cancel and Enter buttons in the formula bar.
Click the Enter button to end the entry and turn off the formula bar buttons.
Excel's AutoComplete feature keeps track of previously entered text. If the first few characters you type in a cell match an existing entry
in that column, Microsoft Excel fills in the remaining characters for you.
If the original entry is long and requires only a minor adjustment (in spelling, for example), you can directly edit the information in the cell.
To delete data being typed but not yet added to the cell:
Cancel an entry by pressing the Escape key.
Using the Undo and Redo features
Sometimes you might do something to a spreadsheet that you didn't mean to, like type the wrong number in a cell. Excel XP allows you to
undo an operation. Use the Undo button on the Standard toolbar to recover an error. The last single action is recoverable.
Microsoft Excel reverses the selected action and all actions that appear in the list above it.
An Undo operation can be canceled by applying a Redo. This is useful when an Undo operation was mistakenly applied. Remember, a redo
is possible only if you have not changed an Excel spreadsheet since the last Undo operation was completed:
Challenge!
Type the following data into your spreadsheet:
Edit the label entered in cell B1 using the direct cell editing method. Change Name to First Name.
Delete the phone number that appears in cell D3.
Undo the last operation.
Edit the phone number entered in cell D3 using the formula bar editing method. Change the phone number to 555-1214.
Select all the contents of any column or row.
Introduction
By the end of this lesson, you should be able to:
Copy and paste cell contents
Cut and paste cell contents
Move cell contents using drag and drop
The Cut, Copy, and Paste operations also appear as choices in the Edit menu.
The Cut, Copy, and Paste operations can also be performed using shortcut keys.
Cut Ctrl+X
Copy Ctrl+C
Paste Ctrl+V
Copying and pasting cell contents
The Copy feature allows you to copy selected information from the spreadsheet and temporarily place it on the Clipboard, which is a
temporary storage file in your computer's memory. The Paste feature allows you to select any of the collected items on the Clipboard and
paste it in a cell of the same or different spreadsheet.
Press the Enter key. Your information is copied to the new location.
Be careful if you paste copied cell information into cells that already contain data. If you do, the existing data is overwritten.
You can copy information from many different sources—including websites, emails, or other Office applications like Word and
PowerPoint—and paste it into an Excel spreadsheet.
You do not have to paste information that has been cut. You can use Cut to delete information from a cell.
Keep the mouse pointer on the outer edge of the selected cell, click and hold the left mouse button, and drag the cell(s) to a
new location.
Release the mouse button to move the information to its new location.
Challenge!
Type the words cut in cell A1, copy in cell B1, and paste in cell C1.
Highlight a cell range to include cell A1 and cell B1.
Move the cell range to cell D1 and cell E1.
Cut the information in cell E1 (it should be the word copy).
Paste the cut information in cell A1.
Copy the contents of cell A1 (it should be the word copy).
Paste the copied information in cell F1.
Introduction
By the end of this lesson, you should be able to:
Understand the parts of an Excel formula
Create a simple addition formula
Create a simple subtraction formula using the point-and-click method
Create simple multiplication formulas
Create simple division formulas
About formulas
In school, you learned formulas used to calculate math problems. Microsoft Excel uses these same formulas to perform calculations in a
spreadsheet.
A formula can be a combination of values (numbers or cell references) and math operators (+, -, /, *, =) into an algebraic expression. Excel
requires every formula to begin with an equals sign (=).
The following table illustrates the mathematical operators learned in school and those represented in Excel XP.
School Excel XP
Addition + +
Subtraction - -
Multiplication X *
Division / /
Equals = =
The result of a formula—the answer to 2+3, for example—displays in the cell on the Excel worksheet. The formula is visible only in the
formula bar. A formula's result will change as different numbers are entered into the cells included in the formula's definition.
Let's add two numbers to create a third: 128+345=473. In Excel XP, this would be expressed by the formula =128+345, as shown below.
A formula can add the value of two cells—B2 and B3, for example. Type any two values in these two cells, and the formula will adjust the
answer accordingly.
Using this method to calculate two numbers—128 and 345, for example—requires that you type 128 into cell B2 and 345 into cell B3. The
Excel formula =B2+B3 would then be defined in cell B4.
To create a simple formula that adds the contents of two cells:
Type the numbers you want to calculate in separate cells (for example, type 128 in cell B2 and 345 in cell B3).
Click the cell where the answer will appear (B4, for example).
Type the equals sign (=) to let Excel know a formula is being defined.
Type the cell number that contains the first number to be added (B2, for example).
Type the addition sign (+) to let Excel know that an add operation is to be performed.
Type the cell number that contains the first number to be added (B3, for example).
Press Enter or click the Enter button on the formula bar to complete the formula.
Creating a simple subtraction formula using the point-
and-click method
Formulas can be created by using either numbers or cell references in the definition. You can also use the mouse to select the cells to be
used in the formula instead of typing the cell number or cell reference. Using this method, we'll write a simple formula that subtracts one
cell from another: =B3-B2.
Type the numbers you want to calculate in separate cells (for example, type 128 in cell B2 and 345 in cell B3).
Click the cell where the answer will appear (B4, for example).
Type the equals sign (=) to let Excel know a formula is being defined.
Click the first cell to be included in the formula (B2, for example).
Type a mathematical operator (in this case, the division symbol /). The operator displays in the cell and in the formula bar.
Click the next cell in the formula (B3, for example).
If you include multiple cells in the formula, repeat steps 4 and 5 until the entire formula is entered.
Press Enter or click the Enter button on the formula bar to complete the formula.
Challenge!
In cell A1, type 1234.
In cell A2, type 15865.
Click the cell where you want the result to appear.
Type a formula in cell A3 that adds cell A1 and cell A2.
Type a formula in cell A4 that subtracts cell A1 from cell A2.
Type a formula in cell A5 that multiplies cell A1 by cell A2.
Type a formula in cell A6 that divides cell A2 by cell A1.
Introduction
By the end of this lesson, you should be able to:
Create complex formulas
Fill a formula to another cell
Copy and paste a formula to another cell
Revise a formula
Create an absolute reference
The order of mathematical operations is important. If you enter a formula that contains several operations—like adding, subtracting, and
dividing—Excel XP knows to work these operations in a specific order. The order of operations is:
Using this order, let us see how the formula 120/(8-5)*4-2 is calculated in the following picture:
Let's take a look at another example:
2*(6-4) =?
Is the answer 8 or 4? If you ignored the parentheses and calculated in the order in which the numbers appear, 2*6-4, you'd get the wrong
answer, 8. You must follow the order of operations to get the correct answer.
When using formulas with cell references, the results change each time the numbers are edited.
In Excel, never do math in your head and type the answer in a cell where you would expect to have a formula calculate the answer.
If we wanted to add the contents of cell B2 and cell B3, for example, then take that answer and multiply it by the data in cell A4, we would
need to define the following formula: =(B2+B3)*A4.
Enter the numbers you want to calculate.
Click the cell where you want the formula result to appear.
Type the equals sign (=) to let Excel know that a formula is being defined.
Type an open parenthesis, or (.
Click the first cell to be included in the formula (cell B2, for example).
Type the addition sign (+) to let Excel know that an add operation is to be performed.
Click the second cell in the formula. The reference B3 displays where you want your result.
End the B2+B3 operation by adding a closed parenthesis, or ).
Type the next mathematical operator, or the multiplication symbol (*), to let Excel know that a multiply operation is to be
performed.
Click the third cell to be included in the formula, cell A4.
Press Enter or click the Enter button on the formula bar to complete the formula.
Try changing one of the values in the formula and watch the answer to the formula change.
Excel will not always tell you if your formula contains an error, so it's up to you to check all of your formulas. To learn how to do this, read
the Double-Check Your Formulas lesson from our Excel Formulas tutorial.
The mouse pointer changes to a black crosshair when passed over the fill handle, or the square box in the lower-right corner of the cell.
The cell references in a formula are automatically updated when the formula is copied to other cells in the spreadsheet.
You can also copy and paste formulas to other cells. This is discussed on the next page.
Revising formulas
You can revise any formula that was previously written in a worksheet.
Sometimes when you copy and paste a formula, you don't want one or more cell references to change. Absolute references solve this
problem. Absolute cell references in a formula always refer to the same cell or cell range in a formula. If a formula is copied to a different
location, the absolute reference remains the same.
An absolute reference is designated in the formula by the addition of a dollar sign ($). It can precede the column reference, the row
reference, or both. Examples of absolute referencing include:
To create an absolute reference in the formula, insert a $ value before the B (column reference) and 2 (row reference) in the
reference to B2 so the new formula reads =$B$2+B3.
Copy and paste the formula to an adjacent cell. The formula now includes an absolute reference to B2: =$B$2+D3.
Challenge
Type the following information:
In cell A5, write a formula that divides cell A1 by the sum of cells A3, B3, and C3.
In the formula defined in cell A5, create an absolute reference to all cells and rows referenced in the following part of the
formula: sum of cells A3, B3, and C3.
Copy the formula and absolute reference in cell A5 and paste it into cell B5 and cell C5.
Note how the formulas that appear in cell A5, cell B5, and cell C5 differ from one another.
Using functions
A function is a predefined formula that helps perform common mathematical functions. Functions save you the time of writing lengthy
formulas. You could use an Excel function called Average, for example, to quickly find the average of range of numbers. Or you could use
the Sum function to find the sum of a cell range. Excel XP contains many different functions.
Each function has a specific order, called syntax, which must be strictly followed for the function to work correctly.
Here's an example of a function with one argument that adds a range of cells (B3 through B10):
Here's an example of a function with more than one argument that calculates the average of numbers in a range of cells (B3 through B10
and C3 through C10):
Excel has hundreds of functions to help with your calculations. Building formulas can be difficult and time consuming. Excel's functions can
save you a lot of time and headaches.
Statistical functions:
SUM: This adds a range of cells.
AVERAGE: This calculates the average of a range of cells.
COUNT: This counts the number of chosen data in a range of cells.
MAX: This identifies the largest number in a range of cells.
MIN: This identifies the smallest number in a range of cells.
Financial functions:
Interest rates
Loan payments
Depreciation amounts
You don't have to memorize the functions but should have an idea of what each can do for you.
Excel will not always tell you if your function contains an error, so it's up to you to check all of your functions. To learn how to do this,
read the Double-Check Your Formulas lesson from our Excel Formulas tutorial.
You can type a question in the Search for a function box and click GO, scroll through the alphabetical list of functions in the Select a
function field, or select a function category in the Select a category drop-down list and review the corresponding function names in
the Select a function field.
Select the function you want to use, then click OK.
If you're comfortable with basic functions, you may want to try a more advanced one like VLOOKUP. You can check out our article on How
to Use Excel's VLOOKUP Function for more information. If you want to learn even more about functions, check out our Excel
Formulas tutorial.
Challenge!
Type the following information:
Introduction
By the end of this lesson, you should be able to:
Name worksheets
Insert and delete worksheets
Group and ungroup worksheets
Copy and move worksheets
Naming worksheets
At the beginning of this course, we learned that the tabs displayed at the bottom of the screen are named Sheet1, Sheet2, and Sheet3. These
are not very informative names. Excel XP allows you to define a meaningful name for each worksheet in a workbook—Checkbook, Reports,
Accounts, etc.—so you can quickly locate information.
To name a worksheet:
Double-click the sheet tab to select it. The text is highlighted by a black box.
A new worksheet tab is added to the bottom of the screen. It will be named Sheet4, Sheet5, or whatever the next sequential
sheet number is in the workbook.
Deleting worksheets
Any worksheet can be deleted from a workbook, including those that have data in it. Remember, a workbook must contain at least one
worksheet.
Click the Delete button to remove the worksheet and all data in it.
Another way to delete or insert a worksheet is to right-click the sheet to be deleted, then select Delete or Insert from the shortcut menu.
Worksheets can also be combined into a group. Grouping worksheets allows you to apply identical formulas and/or formatting across all
worksheets in a group. When you group worksheets, any changes made to one worksheet will be changed in any other worksheets in the
group. If several worksheets will have the same data—regions, departments, quarters, months, weeks, and days, for example—then you
type it once and it will appear on every worksheet included in the grouping.
To group worksheets:
To select one worksheet, click the sheet tab.
To select more than one worksheet, hold the Control key down and click one or more worksheet tabs in the workbook.
To select all worksheets in a workbook, right-click any worksheet tab and choose Select All Sheets from the shortcut menu.
When you're finished entering, moving, copying, or formatting data, you'll need to ungroup worksheets. If you do not ungroup the sheets,
any work you do in one sheet will be duplicated in all of the others.
To ungroup worksheets:
Right-click any of the selected worksheet tabs.
Choose Ungroup Sheets from the shortcut menu.
Moving worksheets
When you move a sheet, you are moving it to a new location in this or another workbook.
To move a workbook:
Select the worksheet you want to move or copy.
Choose Edit Move or Copy from the menu bar.
In the Move or Copy dialog box, use the drop-down boxes to select the name of the workbook you will move the sheet to (the
current workbook is the default). Also define where you want the sheet positioned in the workbook.
Check Create a copy to copy it.
Click OK to move the worksheet to its new location.
Copying worksheets
When you copy a sheet, you make an exact copy of it.
To copy a worksheet:
Select the worksheet you want to move or copy.
Choose Edit Move or Copy from the menu bar.
In the Move or Copy dialog box, use the drop-down boxes to select the name of the workbook you will copy the sheet to (the
current workbook is the default). Also define where you want the sheet positioned in the workbook.
Click the Create a copy check box.
Click OK to create an exact copy of the worksheet and move it to the location specified.
Challenge!
Rename Sheet1 to Mary, Sheet2 to Bob, and Sheet3 to Sally.
Insert a worksheet between the Mary worksheet and the Bob worksheet. Name the new worksheet Donna.
Move the new worksheet named Donna to the left of the worksheet named Mary.
Copy the worksheet named Mary and move it to the end so it appears after the worksheet named Sally. Rename the copied
worksheet from Mary(2) to Bill.
Introduction
By the end of this lesson, you should be able to:
Insert rows and columns
Delete rows and columns
Inserting a row
You can insert a row in a spreadsheet anywhere you need it. Excel moves the existing rows down to make room for the new one.
To insert a row:
Click anywhere in the row below where you want to insert the new row.
Choose Insert Rows from the menu bar.
OR
Click anywhere in the row below where you want to insert the new row.
Right-click and choose Insert from the shortcut menu.
The Insert dialog box opens.
Select multiple rows before choosing Insert to add rows quickly. Excel inserts the same number of new rows you originally selected.
Inserting a column
In Excel, you can insert a column anywhere you need it. Excel moves the existing columns to make room for the new one.
To insert a column:
Click anywhere in the column where you want to insert a new column.
Choose Insert Columns from the menu bar.
A new column is inserted to the left of the existing column.
OR
Click anywhere in the column where you want to insert a new column.
Right-click and choose Insert from the shortcut menu.
The Insert dialog box opens.
You can also select multiple columns before choosing Insert to add columns quickly. Excel inserts the same number of new columns you
originally selected.
Click OK.
Click OK.
Challenge!
In column A, type the following names in cells A1, A2, A3, and A4, respectively:
Mary in cell A1
Bob in cell A2
Susan in cell A3
John in cell A4
In column B, type the following numbers next to each name entered in column A:
If the data being entered into a cell is wider or narrower than the default column width, you can adjust the column width so it is wide
enough to contain the data.
You can adjust column width manually or use AutoFit.
To access AutoFit from the menu bar, choose Format Column AutoFit Selection.
Challenge!
Type the sentence "Mary had a little lamb" in cell B2.
Define the row height of row 2 as 25.
AutoFit the column width of column B.
Introduction
By the end of this lesson, you should be able to:
Insert cells
Delete cells
Merge cells
Inserting cells
When working in an Excel XP worksheet, you may need to insert or delete cells without inserting or deleting entire rows or columns.
To insert cells:
Select the location where the new cell(s) will be inserted. It can be a single cell or a range of cells.
Right-click and choose Insert.
Note: You could also choose Insert Cell on the menu bar.
Remember, you can also use the Insert dialog box to insert or delete columns and rows.
Deleting cells
To delete a cell from the spreadsheet:
Right-click and choose Delete.
Merging cells
In Excel XP, you have another alignment option available to you: Merge and Center. This is performed when you want to select one or
more cells and merge them into a larger cell. The contents will be centered across the new merged cell.
The picture below shows why we might want to merge two cells. The spreadsheet presents last month and this month sales and expenses
for Sally. Notice that Sally's name appears above the Last Month column. To evenly center Sally's name across the two cells, we'll use the
Merge and Center command.
Challenge!
Type the name Oscar in cell B2.
Type the name Ben in cell C2.
Type the name Ruth in cell D2.
Insert a cell between cell C2 and cell D2, then shift the cells right.
Type the name Mary in new cell D2.
Type the label Sales People in cell B1.
Merge and Center cells B1, C1, D1, and E1.
Introduction
By the end of this lesson, you should be able to:
Change horizontal cell alignment
Change vertical cell alignment
Change text control
Change text orientation
Using the Standard toolbar to align text and numbers in
cells
You've probably noticed by now that Excel XP left-aligns text (labels) and right-aligns numbers (values). This makes data easier to read.
You do not have to leave the defaults. Text and numbers can be defined as left-aligned, right-aligned, or centered in Excel XP. The picture
below shows the difference between these alignment types when they're applied to labels.
Text and numbers may be aligned using the left-align, center, and right-align buttons on the Formatting toolbar:
Fill
This fills the cell with the current contents by repeating the contents for the width of the cell.
Justify
If the text is larger than the cell width, Justify wraps the text in the cell and adjusts the spacing within each line so all lines are as wide as
the cell.
(You could also right-click and choose Format Cells from the shortcut menu.)
The Format Cells dialog box opens.
Click the Alignment tab.
Click the Horizontal drop-down menu and select a horizontal alignment treatment.
Click OK to apply the horizontal alignment to the selected cell(s).
(You could also right-click and choose Format Cells from the shortcut menu.)
The Format Cells dialog box opens.
Click the Alignment tab.
Click the Vertical drop-down menu and select a vertical alignment treatment.
Click OK to apply the vertical alignment to the selected cell(s).
Changing text control
Text control allows you to control the way Excel XP presents information in a cell. There are three types of text control: wrapped text,
shrink to fit, and merge cells.
The wrapped text feature wraps the contents of a cell across several lines if it's too large than the column width. It also increases the
height of the cell.
The shrink-to-fit feature shrinks the text so it fits into the cell; the more text in the cell, the smaller it will appear in the cell.
The merge cells feature can also be applied by using the Merge and Center button on the Standard toolbar.
Introduction
By the end of this lesson, you should be able to:
Format the display of numbers
Format the date
Format the time
Format the display of percentages
Formatting numbers in the Format Cells dialog box
Numbers in Excel can assume many different formats: date, time, percentage, and decimals.
(You could also right-click and choose Format Cells from the shortcut menu.)
The Format Cells dialog box opens.
Click the Number tab.
October 6, 2003
10/06/03
10-Oct-03
Select the desired date format from the Type drop-down list.
Click OK.
Select the desired time format from the Type drop-down list.
Click OK.
Define the Decimal Places that will appear to the right of each number.
Click OK.
Challenge!
Type a number in cell B2 and format it to have four decimal places.
Type a date in cell B3 and format it to look like October 6, 2003.
Type a time in cell B4 and format it to look like 1:30:00 AM.
Type a large number in cell B5 and a smaller number in cell C5. In cell D5, define a formula to divide cell B5 by cell C5.
Format the answer in cell D5 to be a percentage with one decimal place.
Bold (Ctrl+B)
Italics (Ctrl+I)
Underline (Ctrl+U)
The attribute(s) selected are applied to the font.
The bold, italics, and underline buttons on the Formatting toolbar are like toggle switches: Click once to turn one on, and click again to
turn it off.
To apply a style:
Select the cell or range of cells.
Choose Format Style from the menu bar.
Select a style from the Style name drop-down list.
You can change the style attributes for any style name.
You can create new styles by clicking the Add button in the Style dialog box.
Introduction
By the end of this lesson, you should be able to:
Identify the parts of a chart
Identify different types of charts
Create an embedded chart
Create a chart sheet
Area chart
An area chart emphasizes the trend of each value over time. It also shows the relationship of parts to a whole.
Column chart
A column chart uses vertical bars or columns to display values over different categories. It is ideal for showing variations in value over
time.
Bar chart
A bar chart is similar to a column chart except it uses horizontal rather than vertical bars. Similar to the column chart, the bar chart shows
variations in value over time.
Line chart
A line chart shows trends and variations in data over time, displaying a series of points that are connected over time.
Pie chart
A pie chart displays the contribution of each value to the total. Pie charts are an effective way to display information when you want to
represent different parts of the whole, or the percentages of a total.
Other charts
Other charts that can be created in Excel XP include doughnut, stock XY (scatter), bubble, radar, and surface, as well as cone,
cylinder, and pyramid charts.
Identifying the parts of a chart
Have you ever read something you didn't fully understand, but when you saw a chart or graph the concept became clear and
understandable? Charts are a visual representation of data in a worksheet. Charts make it easy to see comparisons, patterns, and trends in
data.
Source data
This is the range of cells that make up a chart. The chart is updated automatically whenever the information in these cells changes.
Title
This is the title of the chart.
Legend
This is the chart key, which details what each color on the chart represents.
Axis
This is the vertical and horizontal parts of a chart. The vertical axis is often referred to as the Y axis, while the horizontal axis is referred to
as the X axis.
Data series
This is the actual charted values, which usually are rows or columns of the source data.
Value axis
This is the axis that represents the values or units of the source data.
Category axis
This is the axis identifying each data series.
Chart type
This is a drop-down menu that lets you select different types of charts. The chart type can be changed at any time.
Legend
This is used to show or hide the chart legend.
Data table
This is used to show or hide the actual source data that was used to create the chart.
By row
This plots the data series using the row labels (Y axis).
By column
This plots the data series using the column labels (X axis).
Angle text
This is used to rotate the angle of the X axis and Y axis labels.
Click the chart type drop-down menu on the Chart toolbar and select the chart you want to use.
Open the chart options dialog box by clicking Chart Options to add a title to your chart.
Select the Titles tab, and type the title of the chart in the Chart Title text box.
Different charts work best with different data. A pie chart, for example, can only display one data series at a time.
Excel XP includes a four-step Chart Wizard you can use to guide you through the steps for creating a chart. Highlight the cell range you
want to chart, choose Insert Chart on the menu bar, and follow the instructions in the wizard.
(The As object in radio button adds the chart as an embedded object on the worksheet.)
Click OK. The chart is displayed on a separate chart sheet in the workbook.
You can also use the Chart Location dialog box to rename the chart sheet.
Challenge!
Type the following information on the worksheet:
Create an embedded line chart showing the numbers on the Y axis and the months on the X axis.
Change the embedded line chart to an area chart.
Convert the embedded area chart to a chart sheet.
Moving a chart
An embedded chart can be moved anywhere on a worksheet. The easiest way to move a chart is to drag it around the worksheet.
To move a chart:
Click anywhere on the white space in the chart and use the cursor to drag the chart anywhere on the worksheet.
Release the mouse button to place the graph in its new location.
Resizing a chart
Charts can be resized—made larger or smaller—to fit on a worksheet. Chart titles are sized in proportion to how large or small you make
the chart. And within the chart area, the legend and/or plot area can be made larger or smaller. Chart titles can be moved but not resized.
To resize a chart:
Click anywhere on the white space of the chart area, plot area, or legendyou want to move or resize.
Point the mouse to one of the grab handles or resize cursor—the pointer changes to a double-headed arrow—to resize the
chart.
Use the mouse to drag the sizing handle until the chart is resized to the desired size.
Deleting a chart
Any embedded chart or chart sheet can be deleted from a worksheet. A chart sheet is deleted the same way a worksheet is deleted. This
section discusses how to delete an embedded chart.
To delete a chart:
Click anywhere on the white space of the chart area to select the chart.
Press the Delete key on your keyboard.
If you have difficulty deleting a chart, click anywhere outside the chart and select the chart again.
Challenge!
Type the following information on the worksheet:
Introduction
By the end of this lesson, you should be able to:
Change chart data
Change the chart title
Change the data series names or legend names
Change the chart type
Input any new source data into the worksheet (e.g., a new column called South America).
Click anywhere in the title name and make any changes to the text.
Create an embedded bar chart that plots Bill, Bob, and Mary on the Y axis. The legend will include phones, cables, and
Internet.
Change any of the numbers in the data source (cells B2, B3, B4, C2, C3, C4, D2, D3, and D4), and notice how the chart changes.
Change any data series name (Bill, Bob, or Mary) or legend value (phones, cable, or Internet), and notice how the chart
changes.
Change the chart type from a bar chart to a line chart.
Introduction
By the end of this lesson, you should be able to:
Format the chart title
Format the chart legend
Format the axis
Formatting the chart title
The chart title can be formatted to change color, pattern, typeface, size, and alignment using the Format Chart Title dialog box.
The Format Chart Title dialog box contains three tabs—Patterns, Font, and Alignment—that can be used to format the chart
title.
The Patterns tab lets you define borders and fill colors.
The Font tab lets you define font, font style, size, and color.
The Alignment tab lets you define horizontal and vertical cell placement, as well as text orientation.
The Format Legend dialog box contains three tabs—Patterns, Font, and Alignment—that can be used to format the chart title.
The Patterns tab lets you define borders and fill colors.
The Font tab lets you define font, font style, size, and color.
The Placement tab lets you define the location where the legend will appear on the chart.
The only way to change the actual text that appears in the chart legend is to change the source data in the worksheet.
Formatting the axis labels
In Excel, a graph represents data in two dimensions. The number of items sold in January, for example, is data on two dimensions: number
of items and month. The number of items might be plotted on the Y axis, while the month may be plotted on the X axis. The Y axis runs up
and down on the graph, while the X axis runs left to right.
When formatting the axis labels in your chart, you can adjust the numbers on the scaleof the chart, as well as change font, color, and style.
To format an axis:
Click anywhere in the axis label you want to edit:
Click Format on the Chart toolbar, or double-click the chart axis.
The Format Axis dialog box contains three tabs—Patterns, Font, and Alignment—that can be used to format the chart title.
The Patterns tab lets you define borders and tick marks.
The Scale tab lets you define numeric intervals on the value (Y) axis scale.
The Font tab lets you define font, font style, size, and color.
The Number tab lets you define the format of numbers displayed in the axis.
The Alignment tabs let you define text orientation.
You can also use the angle axis buttons on the Chart toolbar to change the angle of the value and category axes.
Challenge!
Type the following information in the worksheet:
In cell A2, type October
In cell A3, type November
In cell A4, type December
In cell B1, type Clothes
In cell B2, type 124
In cell B3, type 78
In cell B4, type 97
In cell C1, type Movies
In cell C2, type 12
In cell C3, type 18
In cell C4, type 20
In cell D1, type Books
In cell D2, type 45
In cell D3, type 78
In cell D4, type 15
Create an embedded bar chart that plots October, November, and December on the Y axis. The legend will include Clothes,
Movies, and Books.
Assign a chart name in the Titles tab of the Chart Options dialog box.
Format the chart name by assigning it a Verdana font, bold font style, a size of 20, and the color red.
Format the chart legend so its placement is at the top of the screen.
Format the X axis so the text orientation is 45 degrees for each label in the data series.
Select a data series color and change it to another color.
Lesson 19: Defining Page Setup Options
Introduction
By the end of this lesson, you should be able to:
Set page margins
Change page orientation and paper size
Create headers and footers
Create sheet settings
Use the spin box controls to define the settings for each page margin—top,bottom, left, right, header, and footer.
Click OK to change the margin settings.
The Page tab of the Page Setup dialog box lets you shrink the spreadsheet data so it fits on a specified number of pages when you print.
Click the Fit to: option button, then enter the desired number of pages wide and pages tall.
The Page tab of the Page Setup dialog box lets you define the resolution of the print job. Print quality is measured in dpi, or dots per
inch. A higher dpi provides a better print quality.
To create a header:
Choose File Page Setup from the menu bar.
Select the Header/Footer tab in the Page Setup dialog box.
Click the Header drop-down list and select and of the predefined headers.
OR
Click the Custom Header button to create your own header. Follow the instructions in the Header dialog box to make your
entry.
To create a footer:
Choose File Page Setup from the menu bar.
Select the Header/Footer tab in the Page Setup dialog box.
Click the Footer drop-down list and select one of the predefined footers.
OR
Click the Custom Footer button to create your own footer. Follow the instructions in the Footer dialog box to make your entry.
You can insert placeholder buttons into both the header and footer to format text and insert page numbers, dates, times, file names, and
tab names. Excel replaces these placeholders with the information each represents when the worksheet is printed. Follow the instructions
in the header and footer dialog boxes.
Print titles
This option prints column and row labels on each page of the printout. Specify these rows or columns in the Rows to Repeat at
Top and Columns to Repeat at Left text boxes.
Print: Gridlines
This determines whether gridlines are printed. However, turning off gridlines does not affect their appearance in Normal view.
Page order
This determines the order in which worksheets are printed.
Challenge!
Create a spreadsheet with whatever information you want to include in it.
Set the page margins to print 0.5-inch from the top, bottom, left, and right.
Change the page orientation to portrait.
Change the paper size to legal.
Create a header that shows a page number.
Create a custom footer that shows the date in the center section.
Set print gridlines for the sheet to "yes".
Introduction
By the end of this lesson, you should be able to:
Specify a print area
Preview a page
Insert and remove page breaks
Print a worksheet or workbook
Choose File Print Area Set Print Area on the menu bar.
Only the area you defined in the print range will print when the worksheet is submitted to the printer for printing.
Previewing a page before printing
Excel XP provides a Print Preview capability that shows a smaller picture of the printed page directly on your screen. Print Preview is a
good way for you to review the formatting and make sure the columns, rows, and margins appear exactly as you want them.
OR
Click the Print Preview button on the standard toolbar.
In the Print Preview window, the document is sized so the entire page is visible on the screen. Check the spreadsheet for
overall formatting and layout.
The Zoom button in Print Preview will enlarge the data so it can be read.
The page break, represented by a dashed line, is removed from the page.
Specify the printer name where the spreadsheet will print. If you only have one printer in your home or office, Excel will default
to that printer.
In Print range, choose whether to print All or a certain range of pages (Pages From n to y, where n and y are the beginning
and ending page numbers).
In Print what, choose whether to print a Selection, the Active sheet(s), or the Entire workbook (all worksheets in the
workbook). Excel defaults to the active sheet.
Choose the Number of copies to print by clicking the up or down arrows.
Click OK to print the worksheet.
Don't print your Excel spreadsheet without checking spelling first! Excel includes two tools to help correct spelling
errors: AutoCorrect and Spelling.
Challenge!
Type the following information in the worksheet:
Excel XP offers nice additions and enhancements over its older siblings, including:
Let’s say, for example, that you want to create a checkbook register. The first step is to identify the different types of information that must be
added to the checkbook spreadsheet. A good start is to look at the transaction register that comes with the box of checks from the bank. Notice
the fields that are used in the register: Number or Code, Date, Transaction Description, Payment/Fee/Withdrawal, Deposit/Credit, and Balance.
The fields that appear as column headings in your transaction register should also appear as column headings in the spreadsheet.
Each row in the checkbook spreadsheet will be represented by a specific check made payable to someone on a particular date for a specific
amount and with a unique check number.
Each column in the spreadsheet will be formatted differently. The Date column, for example, will be formatted as a Number. The Number
column will be formatted as a General Number. The Transaction column will be formatted as text. The Debit and Credit columns will be
formatted as Currency. Each formula in the Balance column will subtract the credit and add the debit to the previous balance to display the new
balance.
That’s really all there is to planning how to create a spreadsheet. You are simply going to re-create a process that you already do manually. Errors
will be minimal because the balance is calculated automatically for you. Typing will be minimal because Microsoft Excel’s AutoComplete feature
will save you time from having to retype information, like Telephone in the picture above, as long as it has already been typed into the
spreadsheet.
Now that you know what it is you want to create and how to create it, it’s time to open Microsoft Excel and get to work.
In its simplest form, Excel can be used to create basic formulas—for example, to add two numbers together. The formula =2+3 adds the numbers
2 and 3. The cell in which the formula is defined shows the answer: 5.
But what if you work with a lot of numbers, or with numbers that change frequently? You would instead write a formula that includes cell
references. Type a number in one cell (cell A1), type a second number in a different cell (cell A2), then write a formula that adds cells A1 and A2. It
doesn’t matter what numbers appear in these cells or how frequently they change. The formula will adjust the answer depending on whichever
numbers are fed into it.
Excel comes equipped with a number of predefined formulas, called functions, that simply the formula-writing process. Functions are common
formulas, such as adding a range of numbers. Why write a formula if Excel has a function that does the same thing?
Say, for example, that you want to find the average of 12 numbers written in 12 different cells. You could write the following formula:
=(B1+B2+B3+B4+B5+B6+B7+B8+B9+B10+B11+B12)/12
=AVERAGE(B1:B12)
Excel has many different functions. The best way to become familiar with them is to display the Insert Function dialog box. You can type a
description of what you want the function to do, or you could browse through a list of functions in any of 12 categories. Find the function you
want, and select it.
If you work with numbers a lot and are pretty good at writing mathematical equations, then you will want to write more sophisticated formulas
that meet your special needs. This is not a problem in Excel. If you can say what you want to do in a sentence, then you can write a formula to do
it in Excel.