Msexcel Workbook2
Msexcel Workbook2
29
Excel is a spreadsheet program that allows you to store, organize, and analyze
information. In this lesson, you will learn your way around the Excel 2010 environment, including
the new backstage view, which replaces the Microsoft Office button menu from Excel 2007.
We will show you how to use and modify the Ribbon and the Quick Access toolbar, as
well as how to create new workbooks and open existing ones. After this lesson, you will be
ready to get started on your first workbook.
The Ribbon and Quick Access toolbar are where you'll find the commands you need to
perform common tasks in Excel. If you are familiar with Excel 2007, you will find that the main
difference in the Excel 2010 Ribbon is that commands such as Open and Print are now housed
in Backstage view.
The Ribbon
The Ribbon contains multiple tabs, each with several groups of commands. You can
add your own tabs that contain your favourite commands.
1
The Quick Access toolbar, above the Ribbon, lets you access common commands no
matter which tab you are on. By default, it shows the Save, Undo, and Repeat commands.
You can add other commands to make it more convenient for you.
29
Backstage view
Backstage view gives you various options for saving, opening a file, printing, and
sharing your document. It is similar to the Microsoft Office button menu from Excel 2007 and
the File menu from earlier versions of Excel. However, instead of just a menu it's a full-page
view, which makes it easier to work with.
Excel files are called workbooks. Each workbook holds one or more worksheets (also
known as spreadsheets).
Worksheets
2
You will need to know the basic ways you can work with cells and cell content in
Excel to be able to use it to calculate, analyze, and organize data. In this lesson, you
will learn how to select cells, insert content, and delete cells and cell content. You will
29
also learn how to cut, copy, and paste cells; drag and drop cells; and fill cells using the
fill handle.
Cells are the basic building blocks of a worksheet. They can contain a variety of
content such as text, formatting attributes, formulas, and functions. To work with cells,
you'll need to know how to select them, insert content, and delete cells and cell
content.
The cell
NOTE: You can also select multiple cells at the same time. A
group of cells is known as a cell range. Rather than a single cell address, you will refer to a cell range using the cell
addresses of the first and last cells in the cell range, separated by a colon. For example, a cell range that included
cells A1, A2, A3, A4, and A5 would be written as A1:A5.
3
To select a cell:
1. Click a cell to select it. When a cell is selected, you will notice that the borders of
29
the cell appear bold and the column heading and row heading of the cell
are highlighted.
2. Release your mouse. The cell will stay selected until you click another cell in the
worksheet
NOTE: You can also navigate your worksheet and select a cell by using the arrow keys on your keyboard.
Cell content
Each cell can contain its own text, formatting, comments, formulas, and functions.
Text
Cells can contain letters, numbers, and dates.
Formatting attributes
Cells can contain formatting attributes that change the way letters, numbers, and dates are
displayed. For example, dates can be formatted as MM/DD/YYYY or M/D/YYYY.
Comments
Cells can contain comments from multiple
reviewers.
4
calculate cell values. For example, SUM(cell 1, cell 2...) is a formula that can add the values
in multiple cells.
29
To insert content:
NOTE: You can also use your keyboard's Backspace key to delete content from a single cell or
the Delete key to delete content from multiple cells.
To delete cells:
5
1. Select the cells you want to copy.
2. Click the Copy command. The border of the selected cells will change appearance.
29
3. Select the cell or cells where you want to paste the content.
4. Click the Paste command. The copied content will be entered into the highlighted
cells.
with 4 arrows .
6
Working with columns, rows, and cells
When you open a new blank workbook, the cells are set to a default size. You have
29
the ability to modify cells, as well as to insert and delete columns, rows, and cells as needed.
In this lesson, you will learn how to change row height and column width, insert and delete
rows and columns, wrap text in a cell, and merge cells.
7
2. Click and drag the row downward to increase row height or upward to decrease height.
29
3. Release the mouse. The height of each selected row will be changed in your worksheet.
To insert rows:
NOTE: When inserting new rows, columns, or cells, you will see the Insert Options button by the
inserted cells. This button allows you to choose how Excel formats them. By default, Excel formats inserted
rows with the same formatting as the cells in the row above them. To access more options, hover your
mouse over the Insert Options button and click the drop-down arrow that appears.
To insert columns:
1. Select the column to the right of where you want the new column to appear. For example,
if you want to insert a column between A and B, select column B.
2. Click the Insert command on the Home tab
3. The new column appears in your worksheet.
NOTE: By default, Excel formats inserted columns with the same formatting as the column to the left of them. To
access more options, hover your mouse over the Insert Options button and click the drop-down arrow that appears.
REMINDERS: When inserting rows and columns, make sure to select the row or column by clicking its heading so
all of the cells in that row or column are selected. If you select just a cell in the row or column, only a new cell will
be inserted.
If a cell contains more text than can be displayed, you can choose to wrap the text
within the cell or merge the cell with empty adjoining cells. Wrap text to make it display on
multiple lines of the cell. Merge cells to combine adjoining cells into one larger cell.
To wrap text:
8
1. Select the cells with text that you want to wrap.
3. The selected cells will be merged, and the text will be centered.
NOTE: If you change your mind, re click the Merge & Center command to unmerge the cells.
Click the drop-down arrow next to the Merge & Center command on the Home tab.
The merge drop-down menu appears.
Merge & Center: Merges selected cells into one cell and
centers the text
Merge Across: Merges each row of selected cells into
larger cells; useful when merging content across
multiple rows of cells rather than creating one large cell
Merge Cells: Merges selected cells into one cell
Unmerge Cells: Unmerges selected cells
Formatting text
Spreadsheets that have not been formatted can be difficult to read. Formatted text
and cells can draw attention to specific parts of the spreadsheet and make the spreadsheet
more visually appealing and easier to understand.
9
In Excel, there are many tools you can use to format text and cells. In this lesson, you
will learn how to change the color and style of text and cells, align text, and apply special
formatting to numbers and dates.
29
Many of the commands you will use to format text can be found in the Font,
Alignment, and Number groups on the Ribbon. Font commands let you change the style,
size, and color of text. You can also use them to add borders and fill colors to
cells. Alignment commands let you format how text is displayed across cells both
horizontally and vertically. Number commands let you change how selected cells display
numbers and dates.
10
To use the bold, italic, and underline commands:
29
1. Select the cells you want to modify.
To add a border:
1. Select the cells you want to modify.
11
To change vertical text alignment:
One of Excel's most useful features is its ability to format numbers and dates in a
variety of ways. For example, you might need to format numbers with decimal places,
currency symbols ($), or percent symbols (%).
Saving workbooks
12
Are you saving a workbook for the first time? Saving it as another name? Sharing it
with someone who doesn't have Excel 2010? There are many ways you share and receive
workbooks, which will affect how you need to save the file.
29
In this lesson, you will learn how to use the Save and Save As commands, how to
save as an Excel 97-2003 compatible workbook, and how to save as a PDF.
When you create a new workbook in Excel, you'll need to know how to save it to
access and edit it later. Excel allows you to save your documents in several ways.
Save As allows you to choose a name and location for your workbook. Use it if you
are saving a workbook for the first time or if you want to save a different version of a
workbook while keeping the original.
3. The Save As dialog box will appear. Select the location where you want to save the
workbook.
Note: If you are saving for the first time and select Save, the Save As dialog box will appear.
13
To save as an Excel 97-2003 workbook:
You can share your workbooks with anyone using Excel 2010 or 2007 because they use
29
the same file format. However, earlier versions of Excel use a different file format, so if you want
to share your workbook with someone using an earlier version of Excel you will need to save it
as an Excel 97-2003 workbook.
To save as a PDF:
NOTE: Excel defaults to saving the active worksheet only. If you have multiple worksheets and want to
save all of them in the same PDF file, click Options. The Options dialog box will appear. Select Entire
workbook from the Options dialog box, then click OK.
Simple formulas
14
Excel can be used to calculate numerical information. In this lesson, you will learn
how to create simple formulas in Excel to add, subtract, multiply, and divide values in a
workbook. You'll also learn the various ways you can use cell references to make working
29
with formulas easier and more efficient.
One of Excel's most useful features is its ability to calculate using a cell address to
represent the value in a cell. This is called using a cell reference.
The key thing to remember when writing formulas for Excel is that all formulas must
begin with an equals sign (=). This is because the cell contains—or is equal to—the formula
and its value.
15
4. Press Enter. The formula will be
calculated, and the value will be
displayed in the cell.
29
NOTE: If the result of a formula is too large to be displayed in a cell, it may appear as pound
signs (#######) instead of a value. This means the column is not wide enough to display the cell content.
Simply increase the column width to show the cell content.
example).
16
6. Press Enter. The formula will be calculated, and the value will be displayed in the
cell.
29
Introduction to worksheets
Every Excel workbook contains at least one or more worksheets. If you are working
with a large amount of related data, you can use worksheets to help organize your data
and make it easier to work with.
In this lesson, you will learn how to name and add color to worksheet tabs, as well as
how to add, delete, copy, and move worksheets. Additionally, you will learn how
to group and ungroup worksheets and freeze columns and rows in worksheets so they
remain visible even when you're scrolling.
When you open an Excel workbook, there are three worksheets by default. The
default names on the worksheet tabs are Sheet1, Sheet2, and Sheet3. To organize your
workbook and make it easier to navigate, you can rename and even color code the
worksheet tabs. Additionally, you can insert, delete, move, and copy worksheets .
To rename worksheets:
2. Select Rename.
3. The text is now highlighted by a black box. Type the name of your worksheet.
17
To insert new worksheets:
To delete worksheets:
To move a worksheet:
icon .
2. Drag the worksheet icon until a small black
arrow appears where you want the
worksheet to be moved.
3. Release your mouse, and the worksheet will be moved.
Printing
There are many choices you can make when printing an Excel workbook. You can
choose what parts of a workbook to print and how the data fits on the page.
In this lesson, you will learn how to print worksheets, workbooks, and selections of
cells..
2. Select Print. The Print pane appears, with the print settings on the left and Print
29
Preview on the right.
If you have multiple worksheets in your workbook, you'll need to decide if you want to
print the entire workbook or specific worksheets. Excel gives you the option to Print Active
Sheets. A worksheet is considered active if it is selected.
Printing a selection—sometimes called setting the print area—lets you choose which
cells to print, as opposed to the entire worksheet.
19
Note: You don't have to wait until you're ready to print to set the print area. You can also set it from
the Page Layout tab in advance. This will place a dotted line around your selection so you can see which
cells are going to print while you work. To do this, select the cells you want to print, go to the Page
29
Layout tab, and choose Print Area.
Complex formulas
Excel is a spreadsheet application that can help you calculate and analyze numerical
information for household budgets, company finances, inventory, and more. To do this, you
need to understand complex formulas.
In this lesson, you'll learn how to write complex formulas in Excel following the order
of operations. You will also learn about relative and absolute cell references, as well as how
to copy and fill formulas containing cell references.
Example 1
The following example demonstrates how to use the order of operations to calculate a
formula:
Relative references
Relative references can save you time when you're repeating the same type of
calculation across multiple rows or columns.
In the following example, we're creating a formula with cell references in row 4 to
calculate the total cost of the electric bill and water bill for each month (B4=B2+B3). For the
upcoming months, we want to use the same formula with relative references (C2+C3,
D2+D3, E2+E3, etc.). For convenience, we can copy the formula in B4 into the rest of row 4,
and Excel will calculate the value of the bills for these months using relative references.
1. Select the first cell where you want to enter the formula (B4, for example).
21
2. Enter the formula to calculate the value you
want (B2+B3, for example).
29
3. Press Enter. The formula will be calculated.
4. Select the cell you want to copy (B4, for example), then click the Copy command
from the Home tab.
5. Select the cells where you want to paste the formula, then click the Paste command
from the Home tab. You can also drag the fill handle to fill cells.
Basic functions
To use these functions correctly, you need to understand the different parts of a
function and how to create arguments in functions to calculate values and cell references.
22
The basic syntax to create a formula with a function is to insert an equals sign
(=), function name (SUM, for example, is the function name for addition), and argument.
Arguments contain the information you want the formula to calculate, such as a range of cell
29
references.
Basic sorting
Sorting is a common task that allows you to change or customize the order of your
spreadsheet data. For example, you could organize an office birthday list by employee,
birth date, or department, making it easier to find what you're looking for. Custom sorting
takes it a step further, giving you the ability to sort multiple levels—such as department
first, then birth date—to group birthdates by department.
Filtering data
Charts
A chart is a tool you can use in Excel to communicate data graphically. Charts
allow your audience to see the meaning behind the numbers, and they make
23
showing comparisons and trends much easier. In this lesson, you'll learn how
to insert charts and modify them so they communicate information effectively.
29
Excel workbooks can contain a lot of data, and this data can often be difficult to
interpret. For example, where are the highest and lowest values? Are the numbers
increasing or decreasing?
The answers to questions like these can become much clearer when data is
represented as a chart. Excel has various types of charts, so you can choose one that most
effectively represents your data.
Chart tools
What-if analysis
24
To make matters worse, your spreadsheet will not always tell you if a formula is
wrong. It will usually just go ahead and run the calculations and give you the wrong answer.
It's up to you to double-check your formulas whenever you create them.
29
We've put together a list of tips you can use to help check formulas for accuracy.
These tips won't help you solve every problem you encounter, but they should provide you
with the tools to identify many common errors.
A common mistake is to use the correct cell references, but in the wrong order. For
example, if you want to subtract C2 from C3, the formula should be =C3-C2, not =C2-C3.
Break it up
Ballpark it
You can use your own experience, critical-thinking skills, and common sense to
estimate what the answer should be. If Excel gives you a much larger or smaller value than
expected, there may be a problem with your formula (or with the values in the cells).
25
29
Note that this tip does not always work. In some cases, the wrong answer may be fairly close to the correct answer.
However, in many situations it can help you quickly catch a problem in your formula.
If you're using a function, make sure each required argument is included. A small dialog box
should appear as you're typing the function to let you know what arguments are needed.
Remember the order of operations from math class? If not (or if you want a refresher),
you can check out our Complex Formulas lesson. Your spreadsheet will always use this
ordering, which means it doesn't just calculate a formula from left to right. In the example
below, the multiplication is calculated first, which isn't what we wanted. We could fix this
formula by enclosing D2+D3 in parentheses.
Remember, it takes a lot of practice to master writing formulas. Even the most experienced
spreadsheet users encounter formula errors. If your formula doesn't work or produces an incorrect
value, don't panic! More often than not, there's probably a simple reason your formula resulted in an
error—once you find it, you'll be able to get your formula working correctly.
26
What are number formats?
Number formats don't just make your spreadsheet easier to read—they also make it
easier to use. When you apply a number format, you're telling your spreadsheet exactly what
kinds of values are stored in a cell. For example, the date format tells the spreadsheet that
you're entering specific calendar dates. This allows the spreadsheet to better understand
your data, which can help ensure that your data remains consistent and that your formulas
are calculated correctly.
NOTE: If you don't need to use a specific number format, the spreadsheet will usually apply
the general number format by default. However, the general format may apply some small formatting changes
to your data.
Percentage formats
27
One of the most helpful number formats is the percentage (%) format. It displays
values as percentages, such as 20% or 55%. This is especially helpful when calculating
things like the cost of sales tax or a tip. When you type a percent sign (%) after a number,
29
the percentage number format will be applied to that cell automatically.
There are many times when percentage formatting will be useful. For example, in the
images below, notice how the sales tax rate is formatted differently for each spreadsheet (5,
5%, and 0.05):
As you can see, the calculation in the spreadsheet didn't work correctly. Without the
percentage number format, our spreadsheet thinks we want to multiply $22.50 by 5, not 5%.
And while the spreadsheet on the right still works without percentage formatting, the
spreadsheet in the middle is easier to read.
CONCATENATE function
The word concatenate is just another way of saying "to combine" or "to join together".
The CONCATENATE function allows you to combine text from different cells into one cell. In
our example, we can use it to combine the text in column A and column B to create a
combined name in a new column.
CONCATENATE lets you combine two or more things in one cell—and despite the long
name, it's actually easy to use. It works the same way in all versions of Excel, as well as in other
spreadsheet applications like Google Sheets.
NOTE: Before we start typing the formula, there's one important thing you need to know:
28
CONCATENATE will combine exactly what you tell it to combine, and nothing more. If
you want punctuation, spaces, or any other details to appear in the cell, you'll need to tell
CONCATENATE to include it. In this case, we want the names to have a space in between
29
them (so it doesn't say Josephine Carter), so we'll need to add an argument that contains a
space. This means we'll need three arguments:
B2 (first name)
" " (a space in quotation marks)
A2 (last name)
Now that we have our arguments, we can type the
following formula into cell E2:
=CONCATENATE(B2, “ ”, A2)
Just like any function, the syntax is important. Make sure to start with an equals sign, and
separate each argument with a comma.
Note: Depending on where you live, you may need to separate the arguments with a semicolon (;) instead of a
comma
Combining names
Let's say we have a spreadsheet of contact information with last names and first names
in separate columns, and we'd like to combine them to get each person's full name. In the
image, you can see that the first names are in column B and the last names are in column A.
Our formula will go in cell E2.
29
You can even use CONCATENATE to combine numbers and text. For example, let's say
we're using Excel to keep track of a store's inventory. We currently have 25 apples in stock,
but 25 and apples are in separate cells. We want to combine them into one cell so that it looks
29
like this:
=CONCATENATE(F17, “ ”, F16)
Let's say we want it to say We have 25 apples. We'll just need to add an argument at the
beginning that says We have:
NOTE: If you wanted to, you could add even more arguments to create more complex statements. Just keep in
mind that the syntax always needs to be exactly right, or the formula may not work—and it's easier to make a
mistake with a longer formula.
Basically, VLOOKUP lets you search for specific information in your spreadsheet. For
example, if you have a list of products with prices, you could search for the price of a specific
item.
30
learn how to use VLOOKUP, you'll be able to use it with larger, more complex spreadsheets,
and that's when it will become truly useful.
29
We'll add our formula to cell E2, but you can add it to any blank cell. As with any formula,
you'll start with an equals sign (=). Then type the formula name. Our arguments will need to be
in parentheses, so type an open parenthesis. So far, it should look like this:
=VLOOKUP(
Now, we'll add our arguments. The arguments will tell VLOOKUP what to search for and
where to search.
The first argument is the name of the item you're searching for, which in this case is Photo
frame. Because the argument is text, we'll need to put it in double quotes:
=VLOOKUP("Photo frame"
The second argument is the cell range that contains the data. In this example, our data is in
A2:B16. As with any function, you'll need to use a comma to separate each argument:
Note: It's important to know that VLOOKUP will always search the first column in this range. In this example, it will
search column A for "Photo frame". In some cases, you may need to move the columns around so the first column
contains the correct data.
The third argument is the column index number. It's simpler than it sounds: The first column in
the range is 1; the second column is 2, etc. In this case, we are trying to find the price of the
item, and the prices are contained in the second column. This means our third argument will
be 2:
The fourth argument tells VLOOKUP whether to look for approximate matches, and it can be
either TRUE or FALSE. If it is TRUE, it will look for approximate matches. Generally, this is only
useful if the first column has numerical values
31
that have been sorted. Because we're only looking for exact matches, the fourth argument
should be FALSE. This is our last argument, so go ahead and close the parentheses:
29
=VLOOKUP ("Photo frame", A2:B16, 2, FALSE)
That's it! When you press Enter, it should give you the answer, which is 9. 99.
Data validation
Data validation allows you to control
exactly what a user can enter into a cell. In
our example, we can use data validation to
ensure that the user chooses one of the
three possible shipping options. To make
things even easier, we can insert a drop-
down list of the possible options.
32
4. In the Source: field, type the equals sign (=) and
29
the name of your range, and then click OK. In our
example, we'll type: =Ship Range.
33