Chapter 1. Creating and Navigating Worksheets

Every Excel grandmaster needs to start somewhere. In this chapter, you’ll create your first spreadsheet. You’ll learn to move around in it, enter basic information, and save it for posterity. Along the way, you’ll take a quick tour of the Excel window, and stop to meet the different tabs in the ribbon, the status bar, and the formula bar.

Creating a Basic Worksheet

When you first launch Excel, it starts you off with a new, blank worksheet, as shown in Figure 1-1. A worksheet is the grid of cells where you type your information and formulas; it takes up most of the window. This grid is the most important part of the Excel window. It’s where you’ll perform all your work, such as entering data, writing formulas, and reviewing the results.

Here are a few basics about Excel’s grid:

  • The grid divides your worksheet into rows and columns. Columns are identified with letters (A, B, C…), while rows are identified with numbers (1, 2, 3…).

  • The smallest unit in your worksheet is the cell . Cells are identified by column and row. For example, C6 is the address of a cell in column C (the third column), and row 6 (the sixth row). Figure 1-2 shows this cell, which looks like a rectangular box. Incidentally, an Excel cell can hold up to 32,000 characters.

  • A worksheet can span an eye-popping 16,000 columns and 1 million rows. In the unlikely case that you want to go beyond those limits—say you’re tracking blades of grass on the White House lawn—you’ll need to create a new work sheet. Every spreadsheet file can hold a virtually unlimited number of worksheets, as you’ll learn in Chapter 4.

  • When you enter information, you enter it one cell at a time. However, you don’t have to follow any set order. For example, you can start by typing information into cell A40 without worrying about filling any data in the cells that appear in the earlier rows.

The largest part of the Excel window is the worksheet grid where you type in your information.

Figure 1-1. The largest part of the Excel window is the worksheet grid where you type in your information.

Here, the current cell is C6. You can recognize the current (or active) cell based on its heavy black border. You’ll also notice that the corresponding column letter (C) and row number (6) are highlighted at the edges of the worksheet. Just above the worksheet, on the left side of the window, the formula bar tells you the active cell address.

Figure 1-2. Here, the current cell is C6. You can recognize the current (or active) cell based on its heavy black border. You’ll also notice that the corresponding column letter (C) and row number (6) are highlighted at the edges of the worksheet. Just above the worksheet, on the left side of the window, the formula bar tells you the active cell address.

Note

Obviously, once you go beyond 26 columns, you run out of letters. Excel handles this by doubling up (and then tripling up) letters. For example, column Z is followed by column AA, then AB, then AC, all the way to AZ and then BA, BB, BC—you get the picture. And if you create a ridiculously large worksheet, you’ll find that column ZZ is followed by AAA, AAB, AAC, and so on.

The best way to get a feel for Excel is to dive right in and start putting together a worksheet. The following sections cover each step that goes into assembling a simple worksheet. This one tracks household expenses, but you can use the same approach to create any basic worksheet.

Starting a New Workbook

When you fire up Excel, it opens a fresh workbook file. If you’ve already got Excel open and you want to create another workbook, just select Office button → New. This step pops up the New Workbook window that’s shown in Figure 1-3.

The New Workbook window lets you create a new, blank workbook or a ready-made workbook from a template. For now, choose Blank Workbook (in the window’s middle section), and then click an empty canvas. You’ll learn about using (and making) templates in Chapter 16.

Figure 1-3. The New Workbook window lets you create a new, blank workbook or a ready-made workbook from a template. For now, choose Blank Workbook (in the window’s middle section), and then click an empty canvas. You’ll learn about using (and making) templates in Chapter 16.

Note

A workbook is a collection of one or more worksheets. That distinction isn’t terribly important now because you’re using only a single worksheet in each workbook you create. But in Chapter 4, you’ll learn how to use several worksheets in the same workbook to track related collections of data.

For now, all you need to know is that the worksheet is the grid of cells where you place your data, and the workbook is the spreadsheet file that you save on your computer.

You don’t need to pick the file name for your workbook when you first create it. Instead, that decision happens later, when you save your workbook (Section 1.4). For now, you start with a blank canvas that’s ready to receive your numerical insights.

Note

Creating new workbooks doesn’t disturb what you’ve already done. Whatever workbook you were using remains open in another window. You can use the taskbar to move from one workbook to the other. Section 1.5.2 shows the taskbar close up.

Adding the Column Titles

The most straightforward way to create a worksheet is to design it as a table with headings for each column. It’s important to remember that even for the simplest worksheet, the decisions you make about what’s going to go in each column can have a big effect on how easy it is to manipulate your information.

For example, in a worksheet that stores a mailing list, you could have two columns: one for names and another for addresses. But if you create more than two columns, your life will probably be easier since you can separate first names from street addresses from Zip codes, and so on. Figure 1-4 shows the difference.

Top: If you enter the first and last names together in one column, Excel can sort only by the first names. And if you clump the addresses and Zip codes together, you give Excel no way to count how many people live in a certain town or neighborhood because Excel can’t extract the Zip codes.Bottom: The benefit of a six-column table is significant: it lets you sort (reorganize) your list according to people’s last names or where they live. It also allows you to filter out individual bits of information when you start using functions later in this book.

Figure 1-4. Top: If you enter the first and last names together in one column, Excel can sort only by the first names. And if you clump the addresses and Zip codes together, you give Excel no way to count how many people live in a certain town or neighborhood because Excel can’t extract the Zip codes. Bottom: The benefit of a six-column table is significant: it lets you sort (reorganize) your list according to people’s last names or where they live. It also allows you to filter out individual bits of information when you start using functions later in this book.

You can, of course, always add or remove columns later. But you can avoid getting gray hairs by starting a worksheet with all the columns you think you’ll need.

The first step in creating your worksheet is to add your headings in the row of cells at the top of the worksheet (row 1). Technically, you don’t need to start right in the first row, but unless you want to add more information before your table—like a title for the chart or today’s date—there’s no point in wasting the space. Adding information is easy—just click the cell you want and start typing. When you’re finished, hit Tab to complete your entry and move to the next cell to the right (or Enter to head to the cell just underneath).

Note

The information you put in an Excel worksheet doesn’t need to be in neat, ordered columns. Nothing stops you from scattering numbers and text in random cells. However, most Excel worksheets resemble some sort of table, because that’s the easiest and most effective way to deal with large amounts of structured information.

For a simple expense worksheet designed to keep a record of your most prudent and extravagant purchases, try the following three headings:

  • Date Purchased stores the date when you spent the money.

  • Item stores the name of the product that you bought.

  • Price records how much it cost.

Right away, you face your first glitch: awkwardly crowded text. Figure 1-5 shows how you can adjust column width for proper breathing room.

Note

A column’s character width doesn’t really reflect how many characters (or letters) fit in a cell. Modern versions of Excel (including Excel 2007) use proportional fonts, in which different letters take up different amounts of room. For example, the letter W is typically much wider than the letter 1. All this means is that the character width Excel shows you isn’t a real indication of how many letters can fit in the column, but it’s still a useful measurement that you can use to compare different columns.

Adding Data

You can now begin adding your data: simply fill in the rows under the column titles. Each row in the expense worksheet represents a separate purchase that you’ve made. (If you’re familiar with databases, you can think of each row as a separate record.)

As Figure 1-6 shows, the first column is for dates, the second column is for text, and the third column holds numbers. Keep in mind that Excel doesn’t impose any rules on what you type, so you’re free to put text in the Price column. But if you don’t keep a consistent kind of data in each column, you won’t be able to easily analyze (or understand) your information later.

That’s it. You’ve created a living, breathing worksheet. The next two sections explain how to edit data and move around the grid.

Top: The standard width of an Excel column is 8.43 characters, which hardly allows you to get a word in edgewise. To solve this problem, position your mouse on the right border of the column header you want to expand so that the mouse pointer changes to the resize icon (it looks like a double-headed arrow). Now drag the column border to the right as far as you want. As you drag, a tooltip appears, telling you the character size and pixel width of the column. Both of these pieces of information play the same role—they tell you how wide the column is—only the unit of measurement changes.Bottom: When you release the mouse, the entire column of cells is resized to the new size.

Figure 1-5. Top: The standard width of an Excel column is 8.43 characters, which hardly allows you to get a word in edgewise. To solve this problem, position your mouse on the right border of the column header you want to expand so that the mouse pointer changes to the resize icon (it looks like a double-headed arrow). Now drag the column border to the right as far as you want. As you drag, a tooltip appears, telling you the character size and pixel width of the column. Both of these pieces of information play the same role—they tell you how wide the column is—only the unit of measurement changes. Bottom: When you release the mouse, the entire column of cells is resized to the new size.

Editing Data

Every time you start typing in a cell, Excel erases any existing content in that cell. (You can also quickly remove the contents of a cell by just moving to it and pressing Delete.)

If you want to edit cell data instead of replacing it, you need to put the cell in edit mode, like this:

  1. Move to the cell you want to edit.

    Use the mouse or the arrow keys to get to the correct cell.

    This rudimentary expense list has three items (in rows 2, 3, and 4). The alignment of each column reflects the data type (by default, numbers and dates are right-aligned, while text is left-aligned), indicating that Excel understands your date and price information.

    Figure 1-6. This rudimentary expense list has three items (in rows 2, 3, and 4). The alignment of each column reflects the data type (by default, numbers and dates are right-aligned, while text is left-aligned), indicating that Excel understands your date and price information.

  2. Put the cell in edit mode by pressing F2.

    Edit mode looks almost the same as ordinary text entry mode. The only difference is that you can use the arrow keys to move through the text you’re typing and make changes. (When you aren’t in edit mode, pressing these keys just moves you to another cell.)

    If you don’t want to use F2, you can also get a cell into edit mode by double-clicking it.

  3. Complete your edit.

    Once you’ve modified the cell content, press Enter to commit your change or Esc to cancel your edit and leave the old value in the cell. Alternatively, you can turn off edit mode (press F2 again), and then move to a new cell. As long as you stay in edit mode, Excel won’t let you move to another cell.

    Tip

    If you start typing new information into a cell and you decide you want to move to an earlier position in your entry (to make an alteration, for instance), just press F2. The cell box still looks the same, but you’re now in edit mode, which means that you can use the arrow keys to move within the cell (instead of moving from cell to cell). You can press F2 again to return to the normal data entry mode.

    As you enter data, you may discover the Bigtime Excel Display Problem (known to aficionados as BEDP): cells in adjacent columns can overlap one another. Figure 1-7 shows the problem. One way to fix BEDP is to manually resize the column, as shown in Figure 1-5. Another option is to use wrapping to fit multiple lines of text in a single cell, as described in Section 5.2.1.

Overlapping cells can create big headaches. For example, if you type a large amount of text into A1, and then you type some text into B1, you see only part of the data in A1 on your worksheet (as shown here). The rest is hidden from view. But if, say, A3 contains a large amount of text and B3 is empty, the content in A3 is displayed over both columns, and you don’t have a problem.

Figure 1-7. Overlapping cells can create big headaches. For example, if you type a large amount of text into A1, and then you type some text into B1, you see only part of the data in A1 on your worksheet (as shown here). The rest is hidden from view. But if, say, A3 contains a large amount of text and B3 is empty, the content in A3 is displayed over both columns, and you don’t have a problem.

Navigating in Excel

Learning how to move around the Excel grid quickly and confidently is an indispensable skill. To move from cell to cell, you have two basic choices:

  • Use the arrow keys on the keyboard. Keystrokes move you one cell at a time in any direction.

  • Click the cell with the mouse. A mouse click jumps you directly to the cell you’ve clicked.

As you move from cell to cell, you see the black focus box move to highlight the currently active cell. In some cases, you might want to cover ground a little quicker. You can use any of the shortcut keys listed in Table 1-1. The most useful shortcut keys include the Home key combinations, which bring you back to the beginning of a row or the top of your worksheet.

Note

Shortcut key combinations that use the + sign must be entered together. For example, “Ctrl+Home” means you hold down Ctrl and press Home at the same time. Key combinations with a comma work in sequence. For example, the key combination “End, Home” means press End first, release it, and then press Home.

Table 1-1. Shortcut Keys for Moving Around a Worksheet

Key Combination

Result

→ (or Tab)

Moves one cell to the right.

← (or Shift+Tab)

Moves one cell to the left.

Moves one cell up.

↓ (or Enter)

Moves one cell down.

Page Up

Moves up one screen. Thus, if the grid shows 10 cells at a time, this key moves to a cell in the same column, 10 rows up (unless you are already at the top of the worksheet).

Page Down

Moves down one screen. Thus, if the grid shows 10 cells at a time, this key moves to a cell in the same column, 10 rows down.

Home

Moves to the first cell (column A) of the current row.

Ctrl+Home

Moves to the first cell in the top row, which is A1.

Ctrl+End (or End, Home)

Moves to the last column of the last occupied row. This cell is at the bottom-right edge of your data.

Excel also lets you cross great distances in a single bound using a Ctrl+arrow key combination. These key combinations jump to the edges of your data. Edge cells include cells that are next to other blank cells. For example, if you press Ctrl+ → while you’re inside a group of cells with information in them, you’ll skip to the right, over all filled cells, and stop just before the next blank cell. If you press Ctrl+ → again, you’ll skip over all the nearby blank cells and land in the next cell to the right that has information in it. If there aren’t any more cells with data on the right, you’ll wind up on the very edge of your worksheet.

The Ctrl+arrow key combinations are useful if you have more than one table of data in the same worksheet. For example, imagine you have two tables of data, one at the top of a worksheet and one at the bottom. If you are at the top of the first table, you can use Ctrl+↓ to jump to the bottom of the first table, skipping all the rows in between. Press Ctrl+↓ again, and you leap over all the blank rows, winding up at the beginning of the second table.

Tip

You can also scroll off into the uncharted regions of the spreadsheet with the help of the scrollbars at the bottom and on the right side of the worksheet.

Finding your way around a worksheet is a fundamental part of mastering Excel. Knowing your way around the larger program window is no less important. The next few sections help you get oriented, pointing out the important stuff and letting you know what you can ignore altogether.

You’ll notice that in the Go To list, cell addresses are written a little differently than the format you use when you type them in. Namely, dollar signs are added before the row number and column letter. Thus, C32 becomes $C$32, which is simply the convention that Excel uses for fixed cell references. (You’ll learn much more about the different types of cell references in Chapter 8.)

Figure 1-8. You’ll notice that in the Go To list, cell addresses are written a little differently than the format you use when you type them in. Namely, dollar signs are added before the row number and column letter. Thus, C32 becomes $C$32, which is simply the convention that Excel uses for fixed cell references. (You’ll learn much more about the different types of cell references in Chapter 8.)

The Tabs of the Ribbon

In the Introduction you learned about the ribbon, the super-toolbar that offers one-stop shopping for all of Excel’s features. All the most important Office applications—including Word, Access, PowerPoint, and Excel—use the new ribbon. However, each program has a different set of tabs and buttons.

Throughout this book, you’ll dig through the different tabs of the ribbon to find important features. But before you start your journey, it’s nice to get a quick overview of what each tab provides. Here’s the lowdown:

  • Home includes some of the most commonly used buttons, like those for cutting and pasting information, formatting your data, and hunting down important bits of information with search tools. You’ve already used the Go To button on this tab (see the box “Getting Somewhere in a Hurry,” above).

  • Insert lets you add special ingredients like tables, graphics, charts, and hyperlinks.

  • Page Layout is all about getting your worksheet ready for the printer. You can tweak margins, paper orientation, and other page settings.

  • Formulas are mathematical instructions that you use to perform calculations. This tab helps you build super-smart formulas and resolve mind-bending errors.

  • Data lets you get information from an outside data source (like a heavy-duty database) so you can analyze it in Excel. It also includes tools for dealing with large amounts of information, like sorting, filtering, and subgrouping.

  • Review includes the familiar Office proofing tools (like the spell checker). It also has buttons that let you add comments to a worksheet and manage revisions.

  • View lets you switch on and off a variety of viewing options. It also lets you pull off a few fancy tricks if you want to view several separate Excel spreadsheet files at the same time.

Note

In some circumstances, you may see a couple of tabs that aren’t listed here. Macro programmers and other highly technical types use the Developer tab. (You’ll learn how to reveal this tab in Section 28.1.1.) The Add-Ins tab appears when you’re viewing workbooks that were created in previous versions of Excel, and which used custom toolbars. (Section A.1.2 has the full story.)

Do you want to use every square inch of screen space for your cells? You can collapse the ribbon (as shown here) by double-clicking any tab. Click a tab to pop it open temporarily, or double-click a tab to bring the ribbon back for good. And if you want to perform the same trick without raising your fingers from the keyboard, you can use the shortcut key Ctrl+F1.

Figure 1-9. Do you want to use every square inch of screen space for your cells? You can collapse the ribbon (as shown here) by double-clicking any tab. Click a tab to pop it open temporarily, or double-click a tab to bring the ribbon back for good. And if you want to perform the same trick without raising your fingers from the keyboard, you can use the shortcut key Ctrl+F1.

The Formula Bar

The formula bar appears above the worksheet grid but below the ribbon (Figure 1-10). It displays the address of the active cell (like A1) on the left edge, and it also shows you the current cell’s contents.

The formula bar (just above the grid) shows information about the active cell. In this example, the formula bar shows that the current cell is B4 and that it contains the number 592. Instead of editing this value in the worksheet, you can click anywhere in the formula bar and make your changes there.

Figure 1-10. The formula bar (just above the grid) shows information about the active cell. In this example, the formula bar shows that the current cell is B4 and that it contains the number 592. Instead of editing this value in the worksheet, you can click anywhere in the formula bar and make your changes there.

You can use the formula bar to enter and edit data, instead of editing directly in your worksheet. This approach is particularly useful when a cell contains a formula or a large amount of information. That’s because the formula bar gives you more work room than a typical cell. Just as with in-cell edits, you press Enter to confirm your changes or Esc to cancel them. Or you can use the mouse: When you start typing in the formula bar, a checkmark and an “X” icon appear just to the left of the box where you’re typing. Click the checkmark to confirm your entry, or “X” to roll it back.

Note

You can hide (or show) the formula bar by choosing View → Show/Hide → Formula Bar. But the formula bar’s such a basic part of Excel that you’d be unwise to get rid of it. Instead, keep it around until Chapter 8, when you’ll learn how to build formulas.

Ordinarily, the formula bar’s a single line. If you have a really long entry in a cell (like a paragraph’s worth of text), you need to scroll from one side to the other. However, there’s another option—you can resize the formula bar so it fits more information, as shown in Figure 1-11.

To enlarge the formula bar, click the bottom edge and pull down. You can make it two, three, four, or many more lines large. Best of all, once you get the size you want, you can use the expand/collapse button on the right side of the formula bar to quickly expand it to your preferred size and collapse it back to the single-line view.

Figure 1-11. To enlarge the formula bar, click the bottom edge and pull down. You can make it two, three, four, or many more lines large. Best of all, once you get the size you want, you can use the expand/collapse button on the right side of the formula bar to quickly expand it to your preferred size and collapse it back to the single-line view.

The Status Bar

Though people often overlook it, the status bar (Figure 1-12) is a good way to keep on top of Excel’s current state. For example, if you save or print a document, the status bar shows the progress of the printing process. If you’re performing a quick action, the progress indicator may disappear before you have a chance to even notice it. But if you’re performing a time-consuming operation—say, printing out an 87-page table of the airline silverware you happen to own—you can look to the status bar to see how things are coming along.

Tip

To hide or show the status bar, choose View → Show/Hide → Status Bar.

In the status bar, you can see the basic status text (which just says “Ready” in this example), the view buttons (which are useful when you’re preparing a spreadsheet for printing), and the zoom slider bar (which lets you enlarge or shrink the current worksheet view).

Figure 1-12. In the status bar, you can see the basic status text (which just says “Ready” in this example), the view buttons (which are useful when you’re preparing a spreadsheet for printing), and the zoom slider bar (which lets you enlarge or shrink the current worksheet view).

The status bar combines several different types of information. The leftmost part of the status bar shows the Cell Mode, which displays one of three indicators.

  • The word “Ready” means that Excel isn’t doing anything much at the moment, other than waiting for you to take some action.

  • The word "Enter” appears when you start typing a new value into a cell.

  • The word “Edit” means the cell is currently in edit mode, and pressing the left and right arrow keys moves through the cell data, instead of moving from cell to cell. As discussed in Section 1.2, you can place a cell in edit mode or take it out of edit mode by pressing F2.

Farther to the right on the status bar are the view buttons, which let you switch to Page Layout View or Page Break Preview. These different views help you see what your worksheet will look like when you print it. They’re covered in Chapter 7.

The zoom slider is next to the view buttons, at the far right edge of the status bar. You can slide it to the left to zoom out (which fits more information into your Excel window at once) or slide it to the right to zoom in (and take a closer look at fewer cells). You can learn more about zooming in Section 7.1.1.

In addition, the status bar displays other miscellaneous indicators. For example, if you press the Scroll Lock key, a Scroll Lock indicator appears on the status bar (next to the “Ready” text). This indicator tells you that you’re in scroll mode. In scroll mode, the arrow keys don’t move you from one cell to another; instead, they scroll the entire worksheet up, down, or to the side. Scroll mode is a great way to check out another part of your spreadsheet without leaving your current position.

You can control what indicators appear in the status bar by configuring it. To see a full list of possibilities, right-click the status bar. A huge list of options appears, as shown in Figure 1-13. Table 1-2 describes the different status bar options.

Note

The Caps Lock indicator doesn’t determine whether or not you can use the Caps Lock key—that feature always works. The Caps Lock indicator just lets you know when Caps Lock mode is on. That way you won’t be surprised by an accidental keystroke that turns your next data entry INTO ALL CAPITALS.

Every item that has a checkmark appears in the status bar when you need it. For example, if you choose Caps Lock, the text “Caps Lock” appears in the status bar whenever you hit the Caps Lock key to switch to all-capital typing. The text that appears on the right side of the list tells you the current value of the indicator. In this example, Caps Lock mode is currently off and the Cell Mode text says “Ready.”

Figure 1-13. Every item that has a checkmark appears in the status bar when you need it. For example, if you choose Caps Lock, the text “Caps Lock” appears in the status bar whenever you hit the Caps Lock key to switch to all-capital typing. The text that appears on the right side of the list tells you the current value of the indicator. In this example, Caps Lock mode is currently off and the Cell Mode text says “Ready.”

Table 1-2. Status Bar Indicators

Indicator

Meaning

Cell Mode

Shows Ready, Edit, or Enter depending on the state of the current cell, as described in Section 1.3.3.

Signatures, Information Management Policy, and Permissions

Displays information about the rights and restrictions of the current spreadsheet. These features come into play only if you’re using Office SharePoint Server to share spreadsheets among groups of people (usually in a corporate environment). SharePoint is introduced in Section 23.2.

Caps Lock

Indicates whether Caps Lock mode is on. When Caps Lock is on, every letter you type is automatically capitalized. To turn Caps Lock mode on or off, hit Caps Lock.

Num Lock

Indicates whether Num Lock mode is on. When this mode is on, you can use the numeric keypad (typically at the right side of your keyboard) to type in numbers more quickly. When this sign’s off, the numeric keypad controls cell navigation instead. To turn Num Lock on or off, press Num Lock.

Scroll Lock

Indicates whether Scroll Lock mode is on. When it’s on, you can use the arrow keys to scroll the worksheet without changing the active cell. (In other words, you can control your scrollbars by just using your keyboard.) This feature lets you look at all the information you have in your worksheet without losing track of the cell you’re currently in. You can turn Scroll Lock mode on or off by pressing Scroll Lock.

Fixed Decimal

Indicates when Fixed Decimal mode is on. When this mode is on, Excel automatically adds a set number of decimal places to the values you enter in any cell. For example, if you set Excel to use two fixed decimal places and you type the number 5 into a cell, Excel actually enters 0.05. This seldom-used featured is handy for speed typists who need to enter reams of data in a fixed format. You can turn this feature on or off by selecting Office button → Excel Options, choosing the Advanced section, and then looking under “Editing options” to find the “Automatically insert a decimal point” setting. Once you turn this checkbox on, you can choose the number of decimal places (the standard option is two).

Overtype Mode

Indicates when Overwrite mode is turned on. Overwrite mode changes how cell edits work. When you edit a cell and Overwrite mode is on, the new characters that you type overwrite existing characters (rather than displacing them). You can turn Overwrite mode on or off by pressing Insert.

End Mode

Indicates that you’ve pressed End, which is the first key in many two-key combinations; the next key determines what happens. For example, hit End and then Home to move to the bottom-right cell in your worksheet. See Table 1-1 for a list of key combinations, some of which use End.

Macro Recording

Macros are automated routines that perform some task in an Excel spreadsheet. The Macro Recording indicator shows a record button (which looks like a red circle superimposed on a worksheet) that lets you start recording a new macro. You’ll learn more about macros in Chapter 27.

Selection Mode

Indicates the current Selection mode. You have two options: normal mode and extended selection. When you press the arrows keys and extended selection is on, Excel automatically selects all the rows and columns you cross. Extended selection is a useful keyboard alternative to dragging your mouse to select swaths of the grid. To turn extended selection on or off, press F8. You’ll learn more about selecting cells and moving them around in Chapter 3.

Page Number

Shows the current page and the total number of pages (as in “Page 1 of 4”). This indicator appears only in Page Layout view (as described in Section 7.2.2).

Average, Count, Numerical Count, Minimum, Maximum, Sum

Show the result of a calculation on the selected cells. For example, the Sum indicator shows the total of all the numeric cells that are currently selected. You’ll take a closer look at this handy trick in Section 3.1.1.

View Shortcuts

Shows the three view buttons that let you switch between Normal view, Page Layout View (Section 7.2.2), and Page Break Preview (Section 7.3.2).

Zoom

Shows the current zoom percentage (like 100 percent for a normalsized spreadsheet, and 200 percent for a spreadsheet that’s blown up to twice the magnification).

Zoom Slider

Shows a slider that lets you zoom in closer (by sliding it to the right) or out to see more information at once (by sliding it to the left).

Excel Options

You might have already seen the Excel Options window, which provides a central hub where you can adjust how Excel looks, behaves, and calculates (see Figure 1-14). To get to this window, click the Office button, and then choose Excel Options on the bottom-right edge.

The Excel Options window is divided into nine sections. To pick which section to look at, choose an entry from the list on the left. In this example, you’re looking at the Popular settings group. In each section, the settings are further subdivided into titled groups. You may need to scroll down to find the setting you want.

Figure 1-14. The Excel Options window is divided into nine sections. To pick which section to look at, choose an entry from the list on the left. In this example, you’re looking at the Popular settings group. In each section, the settings are further subdivided into titled groups. You may need to scroll down to find the setting you want.

The top five sections in the Excel Options window let you tweak a wide variety of different details. Some of these details are truly handy, like the options for opening and saving files (which are described at the end of this chapter). Others are seldom-used holdovers from the past, like the option that lets Excel act like Lotus—an ancient piece of spreadsheet software—when you hit the “/” key.

Tip

Some important options have a small i-in-a-circle icon next to them, which stands for “information.” Hover over this icon and you see a tooltip that gives you a brief description about that setting.

Beneath the top five sections are four more specialized sections:

  • Customize lets you put your favorite commands on the Quick Access toolbar, a maneuver you can learn more about in the Appendix.

  • Add-Ins lets you configure other utilities (mini-programs) that work with Excel and enhance its powers. For example, you’ll turn to this list to switch on the Solver tool in Chapter 20.

  • Trust Center lets you tweak Excel’s security settings that safeguard against dangerous actions (think: viruses). You need to learn more about these settings before you can use Excel to interact with a database or run macro code. Section 27.3.1 has full details.

  • Resources provides a few buttons that let you get extra diagnostic information, activate your copy of Office (which you’ve no doubt done already), and get freebies and updates on the Web (Figure 1-15).

Using the Resources section, you can check for late-breaking Excel updates (Check for Updates), run a tool to identify problems that are preventing Excel from working (Diagnose), and check out the information and freebies on the Office Online Web site (Go Online).

Figure 1-15. Using the Resources section, you can check for late-breaking Excel updates (Check for Updates), run a tool to identify problems that are preventing Excel from working (Diagnose), and check out the information and freebies on the Office Online Web site (Go Online).

While you’re getting to know Excel, you can comfortably ignore most of what’s in the Excel Options window. But you’ll return here many times throughout this book to adjust settings and fine-tune the way Excel works.

Saving Files

As everyone who’s been alive for at least three days knows, you should save your work early and often. Excel is no exception. You have two choices for saving a spreadsheet file:

  • Save As. This choice allows you to save your spreadsheet file with a new name. You can use Save As the first time you save a new spreadsheet, or you can use it to save a copy of your current spreadsheet with a new name, in a new folder, or as a different file type. (Alternate file formats are discussed in Section 1.4.2.1.) To use Save As, select Office button → Save As, or press F12. Figure 1-16 shows you the Save As dialog box as it appears on a Windows XP computer. (The Windows Vista version of the Save As dialog box has all the same features, but way more style.)

    The Save As dialog box lets you jump to common folders using the big buttons on the left, or you can browse a folder tree using the drop-down “Save in” menu. Once you’ve found the folder you want, type the file name at the bottom of the window, and then pick the file type. Finally, click Save to finish the job.

    Figure 1-16. The Save As dialog box lets you jump to common folders using the big buttons on the left, or you can browse a folder tree using the drop-down “Save in” menu. Once you’ve found the folder you want, type the file name at the bottom of the window, and then pick the file type. Finally, click Save to finish the job.

  • Save. This option updates the spreadsheet file with your most recent changes. If you use Save on a new file that hasn’t been saved before, it has the same effect as Save As: Excel prompts you to choose a folder and file name. To use Save, select Office button → Save, or press Ctrl+S. Or, look up at the top of the Excel window in the Quick Access toolbar for the tiny Save button, which looks like an old-style diskette.

Tip

Resaving a spreadsheet is an almost instantaneous operation, and you should get used to doing it all the time. After you’ve made any significant change, just hit Ctrl+S to make sure you’ve stored the latest version of your data.

The Excel 2007 File Format

Since time immemorial, Excel fans have been saving their lovingly crafted spreadsheets in .xls files (as in AirlineSilverware.xls). Excel 2007 changes all that. In fact, it introduces a completely new file format, with the extension . xlsx (as in AirlineSilverware.xlsx).

At first glance, this seems a tad over the top. But the new file format has some real advantages:

  • It’s compact. The new Excel file format uses Zip file compression, so spreadsheet files are smaller—way smaller (as much as 75 percent smaller than their original sizes). And even though the average hard drive is already large enough to swallow thousands of old-fashioned Excel files, the new compact format is easier to email around.

  • It’s less error-prone. The new file format carefully separates ordinary content, pictures, and macro code into separate sections. Microsoft claims that this change makes for tougher files. Now, if a part of your Excel file is damaged (for example, due to a faulty hard drive), there’s a much better chance that you can still retrieve the rest of the information. (You’ll learn about Excel disaster recovery in Section 1.4.5.)

  • It’s extensible. The new file format uses XML (the eXtensible Markup Language), which is a standardized way to store information. (You’ll learn more about XML in Chapter 25). XML storage doesn’t benefit the average person, but it’s sure to earn a lot of love from companies that plan to build custom software that uses Excel documents. As long as Excel documents are stored in XML, these companies can create automated programs that pull the information they need straight out of a spreadsheet, without going through Excel. These programs can also generate made-to-measure Excel documents all on their own.

For all these reasons, .xlsx is the format of choice for Excel 2007. However, Microsoft prefers to give people all the choices they could ever need (rather than make life really simple), and Excel file formats are no exception. The new Excel file format actually has three related flavors. Along with the standard .xlsx, there’s the closely related .xlsm cousin, which adds the ability to store macro code. If you’ve added any macros to your spreadsheet, Excel prompts you to use this file type when you save your spreadsheet. (You’ll learn about macro code in Chapter 27.)

Finally, your third choice is .xlsb, which is a specialized option that just might be faster when you’re opening and saving gargantuan spreadsheets. The .xlsb format has the same automatic compression and error-resistance as .xlsx, but it doesn’t use XML. Instead, it stores information in raw binary form (good ol’ ones and zeroes), which is speedier in some situations. To use the .xlsb format, choose Office button → Save As, and then, from the “Save as type” list, choose Excel Binary Workbook (.xlsb).

Inside every .xlsx file lurks a number of compressed files, each with different information. For example, separate files store printer settings, styles, the name of the person who created the document, the composition of your workbook, and each individual worksheet.

Figure 1-17. Inside every .xlsx file lurks a number of compressed files, each with different information. For example, separate files store printer settings, styles, the name of the person who created the document, the composition of your workbook, and each individual worksheet.

Note

Don’t use the .xlsb format unless you’ve tried it out and find it really does give better performance for one of your spreadsheets. Usually, .xlsx and .xlsb are just as fast. And remember, the only time you’ll see any improvement is when you’re loading or saving a file. Once your spreadsheet is open in Excel, everything else (like scrolling around and performing calculations) happens at the same speed.

Saving Your Spreadsheet in Older Formats

Most of the time, you don’t need to think about Excel’s file format—you can just create your spreadsheets, save them, and let Excel take care of the rest. The only time you need to stop and think twice is when you need to share your work with other, less fortunate people who have older versions of Excel.

When you find yourself in this situation, you have two choices:

  • Save your spreadsheet in the old format. You can save a copy of your spreadsheet in the traditional .xls Excel standard that’s been supported since Excel 97. To do so, choose Office button → Save As → Excel 97-2003 Format.

  • Use a free add-in for older versions of Excel. People who are stuck with Excel 2000, Excel 2002, or Excel 2003 can read your Excel 2007 files—they just need a free add-in that’s provided by Microsoft. This is a good solution because it’s doesn’t require any work on your part. People with past-its-prime versions of Excel can find the add-in they need by surfing to http://www.microsoft.com/downloads and searching for “compatibility pack file formats” (or use the secret shortcut URL http://tinyurl.com/y5w78r).

Often, the best thing you can do is keep your spreadsheet in the newer format and save a copy in the older format (using Office button → Save As → Excel 97-2003 Format). You can then hand that copy out to your backward friends.

Some eccentric individuals have even older or stranger spreadsheet software on their computers. If you want to save a copy of your spreadsheet in a more exotic file type, you can choose Office button → Save As, and then find the desired format in the “Save as type” drop-down list (Figure 1-18). Excel lets you save your spreadsheet using a variety of different formats, including the classic Excel 95 format from a decade ago. If you’re looking to view your spreadsheet using a mystery program, use the CSV file type, which produces a comma-delimited text file that almost all spreadsheet applications on any operating system can read (commadelimited means the information has commas separating each cell).

Excel offers a few useful file type options in the “Save as type” list. CSV format is the best choice for compatibility with truly old software (or when nothing else seems to work). If you’re a longtime Excel fan, you’ll notice that the list has been slimmed down a bit—for example, there’s no option to use the old dBase and Lotus formats from the DOS world.

Figure 1-18. Excel offers a few useful file type options in the “Save as type” list. CSV format is the best choice for compatibility with truly old software (or when nothing else seems to work). If you’re a longtime Excel fan, you’ll notice that the list has been slimmed down a bit—for example, there’s no option to use the old dBase and Lotus formats from the DOS world.

Tip

When you save your Excel spreadsheet in another format, make sure you keep a copy in the standard .xlsx format. Why bother? Because other formats aren’t guaranteed to retain all your information, particularly if you choose a format that doesn’t support some of Excel’s newer features.

Compatibility mode

There’s one stumbling block that you can’t avoid when dealing with older Excel versions. Each version of Excel introduces a small set of new features. Older versions of Excel don’t support these features. For example, Excel 2007 introduces a few new formula functions like SUMIFS (Section 13.1.4). If you use this function to create a calculation, it won’t work on older versions of Excel.

Excel tries to help you out by spotting and preventing potential problems. If you save a spreadsheet in the old .xls file format and that spreadsheet uses Excel 2007only features, Excel switches into compatibility mode. Excel also switches to compatibility mode when you open an .xls file.

Tip

You’ll know you’re in compatibility mode by looking at the title bar at the top of the Excel window. Instead of seeing something like CateringList.xlsx, you’ll see CateringList.xls [Compatibility Mode].

In compatibility mode, Excel tries to stop you from using features that aren’t supported on older Excel versions. For example:

  • It lets you use only a smaller grid of cells (65,536 rows instead of 1,048,576).

  • It prevents you from using really long or deeply nested formulas.

  • It doesn’t let you use some pivot table features.

In compatibility mode these missing features aren’t anywhere to be found. In fact, compatibility mode is so seamless that you might not even notice you’re being limited.

The Compatibility Checker

Compatibility mode can’t catch everything. For example, it doesn’t stop you from using a function that’s new to Excel 2007, like SUMIFS( ), a handy tool for calculating conditional sums (Section 13.1.4). And it’s no help if you use Excel 2007-only features while editing a normal .xlsx file, and then save an .xls copy later on. In this situation, you don’t enter compatibility mode until after the damage is done.

To catch problems like these, Excel has another tool, called the Compatibility Checker. Whenever you save your spreadsheet file to the .xls format, the Compatibility Checker runs first, looking for signs of trouble. It then reports any problems back to you (Figure 1-19).

When you save a spreadsheet in Excel 97-2003 format, the Compatibility Checker shows a list of problems that will affect users of Excel 2003, and the number of times each problem occurs. See the box in Section 1.4.2.2 for how the Compatibility Checker deals with even older versions of Excel.

Figure 1-19. When you save a spreadsheet in Excel 97-2003 format, the Compatibility Checker shows a list of problems that will affect users of Excel 2003, and the number of times each problem occurs. See the box in Section 1.4.2.2 for how the Compatibility Checker deals with even older versions of Excel.

You can choose to ignore the Compatibility Checker issues, click Find to hunt each one down, or click Help to figure out the exact problem. You can also click Copy to New Sheet to insert a full compatibility report into your spreadsheet as a separate worksheet (Section 4.1). This way, you can print it up and review it in the comfort of your cubicle. (To get back to the worksheet with your data, click the Sheet1 tab at the bottom of the window. Chapter 4 has more about how to use and manage multiple worksheets.)

Note

The problems that the Compatibility Checker finds won’t cause serious errors, like crashing your computer or corrupting your data. That’s because Excel is designed to degrade gracefully. That means you can still open a spreadsheet that uses newer, unsupported features in an old version of Excel. However, you may receive a warning message and part of the spreadsheet may seem broken—that is, it doesn’t work as you intended.

The Compatibility Checker is a great way to get an early warning about potential problems in sharing your spreadsheets. However, it works only if you choose to save your spreadsheet in the old .xls format. As you learned a bit earlier, there’s another option—people who are using an older version of Excel can install a free add-in (Section 1.4.2) that allows them to open .xlsx files. Of course, this doesn’t help you avoid the headaches caused by new features. If you use, say, Excel 2003 to open a .xlsx file with Excel 2007-only features, it’s just the same as opening a .xls file with unsupported features—part of your worksheet might not work the way it should. And these problems can creep up on you because when you save .xlsx files, you don’t get any advance warning if you’re using features that could cause a problem with older versions of Excel.

Fortunately, there’s an easy solution. Even if you’re saving your spreadsheets using the new and shiny .xlsx file format, you can still run the Compatibility Checker to see if your spreadsheet could cause a problem for people with an older version of Excel. To run the compatibility checker at will, choose Office button → Prepare → Run Compatibility Checker.

Tip

If you find yourself using the Compatibility Checker often, you can set it to run automatically when you save the current spreadsheet file. Just fire up the Compatibility Checker (using Office button → Prepare → Run Compatibility Checker), and then turn on the “Check compatibility when saving this workbook” checkbox. Now, the Compatibility Checker will run each time you save your spreadsheet, before the file is updated, just as it does when you’re saving an old-school .xls file.

Saving Your Spreadsheet As a PDF

Sometimes you want to save a copy of your spreadsheet so that people can read it even if they don’t have Excel (and even if they’re running a different operating system, like Linux or Apple’s OS X). In this situation, you have several choices:

  • Use the Excel Viewer. Even if you don’t have Excel, you can install a separate tool called the Excel Viewer, which is available from Microsoft’s Web site (search for “Excel Viewer” at http://www.microsoft.com/downloads). However, few people have the viewer, and even though it’s free, few want to bother installing it. And it doesn’t work on non-Windows computers.

  • Save your workbook as an HTML Web page. That way, all you need to view the workbook is a Web browser (and who doesn’t have one of those?). The only disadvantage is that you could lose complex formatting. Some worksheets may make the transition to HTML gracefully, while others don’t look very good when they’re squashed into a browser window. And if you’re planning to let other people print the exported worksheet, the results might be unsatisfactory. Chapter 26 has more about saving your worksheet as a Web page.

  • Save your workbook as a PDF file. This gets you the best of both worlds—you keep all the rich formatting (so your workbook can be printed), and you let people who don’t have Excel (and possibly don’t even have Windows) view your workbook. The only disadvantage is that this feature isn’t included in the basic Excel package. Instead, you need to install a free add-in to get it.

To get the Save As PDF add-in, surf to http://www.microsoft.com/downloads and search for “PDF.” The links lead you to a page where you can download the add-in and install it with just a couple of clicks.

Note

There’s a variation of the Save As PDF add-in, which is named “Save As PDF or XPS.” This variation gives you the ability to save spreadsheets as PDF files or XPS files. (XPS is Microsoft’s new electronic paper standard, as described in the “Learning to Love PDFs” box in Section 1.4.3.)

Once you install the Save As PDF add-in, all your Office applications have the ability to save their documents in PDF format. In Excel, you work this magic by choosing Office button → Save As → PDF, which brings up the “Publish as PDF” dialog box (Figure 1-20).

The “Publish as PDF” dialog box looks a lot like the Save As dialog box, except it has a Publish button instead of a Save button. You can switch on the “Open file after publishing” setting to tell Excel to open the PDF file in Adobe Reader (assuming you have it installed) after the publishing process is complete, so you can check the result.

Figure 1-20. The “Publish as PDF” dialog box looks a lot like the Save As dialog box, except it has a Publish button instead of a Save button. You can switch on the “Open file after publishing” setting to tell Excel to open the PDF file in Adobe Reader (assuming you have it installed) after the publishing process is complete, so you can check the result.

When you save a PDF file, you get a few extra options in the Save As dialog box. PDF files can be saved with different resolution and quality settings (which mostly affect any graphical objects that you’ve placed in your workbook, like pictures and charts). Normally, you use higher quality settings if you’re planning to print your PDF file, because printers use higher resolutions than computer monitors.

The “Publish as PDF” dialog box gives you some control over the quality settings with the “Optimize for” options. If you’re just saving a PDF copy so other people can view the information in your workbook, choose “Minimum size (publishing online)” to save some space. On the other hand, if there’s a possibility that the people reading your PDF might want to print it out, choose “Standard (publishing online and printing)” to save a slightly larger PDF that makes for a better printout.

Finally, if you want to publish only a portion of your spreadsheet as a PDF file, click the Options button to open a dialog box with even more settings. You can choose to publish just a fixed number of pages, just the selected cells, and so on. These options mirror the choices you get when sending a spreadsheet to the printer (Section 7.2.1). You also see a few more cryptic options, most of which you can safely ignore. (They’re intended for PDF nerds.) One exception is the “Document properties” option—turn this off if you don’t want the PDF to keep track of certain information that identifies you, like your name. (Excel document properties are discussed in more detail in Section 23.1.1.)

Tip

Getting the Save As PDF add-in is a bit of a hassle, but it’s well worth the effort. In previous versions of Excel, people who wanted to create PDFs file had to get another add-in or buy the expensive full version of the Adobe Acrobat software. The Save As PDF feature was originally slated for inclusion in Excel (with no add-in required), but anti-trust concerns caused ultra-cautious Microsoft to leave it out.

Saving Your Spreadsheet with a Password

Occasionally, you might want to add confidential information to a spreadsheet—for example, a list of the airlines from which you’ve stolen spoons. If your computer is on a network, the solution may be as simple as storing your file in the correct, protected location. But if you’re afraid that you might inadvertently email the spreadsheet to the wrong people (say, executives at American Airlines), or if you’re about to expose systematic accounting irregularities in your company’s year-end statements, you’ll be happy to know that Excel provides a tighter degree of security. It allows you to password-protect your spreadsheets, which means anyone who wants to open them has to know the password you’ve set.

Excel actually has two layers of password protection that you can apply to a spreadsheet:

  • You can prevent others from opening your spreadsheet unless they know the correct password. This level of security, which scrambles your data for anyone without the password (a process known as encryption), is the strongest.

  • You can let others read a spreadsheet, but you can prevent them from modifying it unless they know the correct password.

You can apply one or both of these restrictions to a spreadsheet. Applying them is easy. Just follow these steps:

  1. Select Office button → Save As.

    The Save As dialog box appears.

  2. Click the Tools button, and then, from the pop-up menu, choose General Options.

    If you’re using a Windows XP computer, you’ll find the Tools button in the bottom-left corner of the Save As dialog box. But if you’re running Windows Vista, it’s at the bottom right, just next to the Save button.

    The General Options dialog box appears.

  3. Type a password next to the security level you want to turn on (as shown in Figure 1-21). Then click OK.

    The General Options dialog box also gives you a couple of other unrelated options:

    • Turn on the “Always create backup” checkbox if you want an extra copy of your file, just in case something goes wrong. (Think of it as insurance.) Excel creates a backup that has the file extension .xlk. For example, if you’re saving a workbook named SimpleExpenses.xlsx and you use the “Always create backup” option, Excel creates a file named “Backup of SimpleExpenses.xlk" every time you save your spreadsheet. You can open the .xlk file in Excel just like an ordinary Excel file. When you do, you see that it has an exact copy of your work.

    • Turn on the “Read-only recommended” checkbox to prevent other people from accidentally making changes to your spreadsheet. When you use this option, Excel shows a message every time you (or anyone else) opens the file. This message politely suggests that you open the spreadsheet in read-only mode, in which case Excel won’t allow any changes. Of course, it’s entirely up to the person opening the file whether to accept this recommendation.

    You can use any sequence of letters and numbers as a password. Passwords are case-sensitive (which means that PanAm is different from panam), and they are masked (which means that all that appears in the window as you type is a series of asterisks).

    Figure 1-21. You can use any sequence of letters and numbers as a password. Passwords are case-sensitive (which means that PanAm is different from panam), and they are masked (which means that all that appears in the window as you type is a series of asterisks).

  4. Click Save to store the file.

    If you use a password to restrict people from opening the spreadsheet, Excel prompts you to supply the “password to open” the next time you open the file (Figure 1-22, top).

    Top: You can give a spreadsheet two layers of protection: assign a “password to open” and you’ll see this window when you open the file.Bottom: If you assign a “password to modify,” you’ll see the choices in this window. If you use both passwords, you’ll see both windows, one after the other.

    Figure 1-22. Top: You can give a spreadsheet two layers of protection: assign a “password to open” and you’ll see this window when you open the file. Bottom: If you assign a “password to modify,” you’ll see the choices in this window. If you use both passwords, you’ll see both windows, one after the other.

    If you use a password to restrict people from modifying the spreadsheet, the next time you open this file you’ll be given the choice—shown in Figure 1-22, bottom—to open it in read-only mode (which requires no password) or to open it in full edit mode (in which case you’ll need to supply the “password to modify”).

Disaster Recovery

The corollary to the edict “Save your data early and often” is the truism “Sometimes things fall apart quickly…before you’ve even had a chance to back up.” Fortunately, Excel includes an invaluable safety net called AutoRecover.

AutoRecover periodically saves backup copies of your spreadsheet while you work. If you suffer a system crash, you can retrieve the last AutoRecover backup even if you never managed to save the file yourself. Of course, even the AutoRecover backup won’t necessarily have all the information you entered in your spreadsheet before the problem occurred. But if AutoRecover saves a backup every 10 minutes (the standard), at most you’ll lose 10 minutes of work.

AutoRecover comes switched on when you install Excel, but you can tweak its settings. Select Office → Excel Options, and then choose the Save section. Under the “Save workbooks” section, make sure that “Save AutoRecover information” is turned on. You can also make a few other changes to AutoRecover settings:

  • You can also adjust the backup frequency in minutes. (See Figure 1-23 for tips on timing.)

  • You can choose the folder where you’d like Excel to save backup files. (The standard folder works fine for most people, but feel free to pick some other place.) Unfortunately, there’s no handy Browse button to help you find the folder, so you need to find the folder you want in advance (using a tool like Windows Explorer), write it down somewhere, and then copy the full folder path into this dialog box.

    You can configure how often AutoRecover saves backups. There’s really no danger in being too frequent. Unless you work with extremely complex or large spreadsheets—which might suck up a lot of computing power and take a long time to save—you can set Excel to save the document every five minutes with no appreciable slowdown.

    Figure 1-23. You can configure how often AutoRecover saves backups. There’s really no danger in being too frequent. Unless you work with extremely complex or large spreadsheets—which might suck up a lot of computing power and take a long time to save—you can set Excel to save the document every five minutes with no appreciable slowdown.

  • Under the “AutoRecover exceptions” heading, you can tell Excel not to bother saving a backup of a specific spreadsheet. Pick the spreadsheet name from the list (which shows all the currently open spreadsheet files), and then turn on the “Disable AutoRecover for this workbook only” setting. This setting is exceedingly uncommon, but you might use it if you have a gargantuan spreadsheet full of data that doesn’t need to be backed up. For example, this spreadsheet might hold records that you’ve pulled out of a central database so you can take a closer look. In this case, there’s no need to create a backup because your spreadsheet just has a copy of the data that’s in the database. (If you’re interested in learning more about this scenario, check out Chapter 25.)

If your computer does crash, when you get it running again, you can easily retrieve your last AutoRecover backup. In fact, the next time you launch Excel, it automatically checks the backup folder, and, if it finds a backup, it opens a Document Recovery panel on the left of the Excel window.

If your computer crashes in mid-edit, the next time you open Excel you’ll probably see the same file listed twice in the Document Recovery window, as shown in Figure 1-24. The difference is the status. The status [AutoSaved] indicates the most recent backup created by Excel. The status [Original] indicates the last version of the file that you saved (which is safely stored on your hard drive, right where you expect it).

You can save or open an AutoRecover backup just as you would an ordinary Excel file; simply click the item in the list. Once you’ve dealt with all the backup files, close the Document Recovery window by clicking the Close button. If you haven’t saved your backup, Excel asks you at this point whether you want to save it permanently or delete the backup.

Figure 1-24. You can save or open an AutoRecover backup just as you would an ordinary Excel file; simply click the item in the list. Once you’ve dealt with all the backup files, close the Document Recovery window by clicking the Close button. If you haven’t saved your backup, Excel asks you at this point whether you want to save it permanently or delete the backup.

To open a file that’s in the Document Recovery window, just click it. You can also use a drop-down menu with additional options (Figure 1-24). Make sure you save the file before you leave Excel. After all, it’s just a temporary backup.

If you attempt to open a backup file that’s somehow been scrambled (technically known as corrupted), Excel automatically attempts to repair it. You can choose Show Repairs to display a list of any changes Excel had to make to recover the file.

Opening Files

Opening existing files in Excel works much the same as it does in any Windows program. To get to the standard Open dialog box, choose Office button → Open. Using the Open dialog box, you can browse to find the spreadsheet file you want, and then click Open to load it into Excel.

Excel can open many file types other than its native .xlsx format. To learn the other formats it supports, launch the Open dialog box, and, at the bottom, open the “Files of type” menu, which shows you the whole list. If you want to open a file but you don’t know what format it’s in, try using the first option on the menu, “All Files.” Once you choose a file, Excel scans the beginning of the file and informs you about the type of conversion it will attempt to perform (based on what type of file Excel thinks it is).

Note

Depending on your computer settings, Windows might hide file extensions. That means that instead of seeing the Excel spreadsheet file MyCoalMiningFortune.xlsx, you’ll just see the name MyCoalMiningFortune (without the .xlsx part on the end). In this case, you can still tell what the file type is by looking at the icon. If you see a small Excel icon next to the file name, that means Windows recognizes that the file is an Excel spreadsheet. If you see something else (like a tiny paint palette, for example), you need to make a logical guess about what type of file it is.

Plan to take another crack at a recent spreadsheet? You can find the most recently opened documents in Excel’s Recent Documents list. To see this list, just open the Office button—it appears as a separate column on the right. The best part about the Recent Documents list is the way you can pin a document there so it stays forever, as shown in Figure 1-25.

To keep a spreadsheet around on the Recent Documents list, click the thumbtack on the right. It becomes green, and is now pinned in place. That means it won’t ever leave the list, no matter how many documents you open. If you decide to stop working with it later on, just click the thumbtack again to release it. Pinning is a great trick for keeping your most important files at your fingertips.

Figure 1-25. To keep a spreadsheet around on the Recent Documents list, click the thumbtack on the right. It becomes green, and is now pinned in place. That means it won’t ever leave the list, no matter how many documents you open. If you decide to stop working with it later on, just click the thumbtack again to release it. Pinning is a great trick for keeping your most important files at your fingertips.

Opening Files—with a Twist

The Open dialog box harbors a few tricks. To see these hidden secrets, first select the file you want to use (by clicking it once, not twice), and then click the dropdown arrow on the right-side of the Open button. A menu with several additional options appears, as shown in Figure 1-26.

Why settle for the plain-vanilla Open command when you have all these other choices?

Figure 1-26. Why settle for the plain-vanilla Open command when you have all these other choices?

Here’s what these different choices do:

  • Open opens the file in the normal way.

  • Open Read-Only opens the file, but won’t let you save changes. This option is great if you want to make sure you don’t accidentally overwrite an existing file. (For example, if you’re using last month’s sales invoice as a starting point for this month’s sales invoice, you might use Open Read-Only to make sure you can’t accidentally wipe out the existing file.) If you open a document in read-only mode, you can still make changes—you just have to save the file with a new file name (choose Office button → Save As).

  • Open as Copy creates a copy of the spreadsheet file in the same folder. If your file is named Book1.xlsx, the copy will be named “Copy of Book1.xlsx”. This feature comes in handy if you’re about to start editing a spreadsheet and want to be able to look at the last version you saved. Excel won’t let you open the same file twice. However, you can load the previous version by selecting the same file and using “Open as Copy”. (Of course, this technique only works when you have changes you haven’t saved yet. Once you save the current version of a file, the older version is overwritten and lost forever.)

  • Open in Browser is only available when you select an HTML file. This option allows you to open the HTML file in your computer’s Web browser (usually Internet Explorer), which is something you’ll only want to attempt when trying to convert Excel files to Web pages (Chapter 26).

  • Open and Repair is useful if you need to open a file that’s corrupted. If you try to open a corrupted file by just clicking Open, Excel warns you that the file has problems and refuses to open it. To get around this problem, you can open the file using the “Open and Repair” option, which prompts Excel to make the necessary corrections, display them for you in a list, and then open the document. Depending on the type of problem, you might not lose any information at all.

Opening Multiple Spreadsheets at Once

As you open multiple spreadsheets, Excel creates a new window for each one. You can easily jump from one spreadsheet to another by clicking the appropriate spreadsheet button in the Windows taskbar at the bottom of your screen.

If you have taskbar grouping switched on, you’ll find that your computer has an odd habit of spontaneously bunching together taskbar buttons. For example, shortly after you open three Excel files, you might find them in one taskbar button (see Figure 1-27). Taskbar grouping does save screen space, but it also makes it a little more awkward to get to the Excel spreadsheet you want. You now need two mouse clicks instead of one—the first to click the taskbar button, and the second to choose the window you want from the group.

Similar taskbar buttons sometimes get bunched into groups. You can tell that a button contains a group of files when a drop-down arrow appears on the right side of the button, and a number appears on the left side. The number indicates how many buttons Windows has grouped together.

Figure 1-27. Similar taskbar buttons sometimes get bunched into groups. You can tell that a button contains a group of files when a drop-down arrow appears on the right side of the button, and a number appears on the left side. The number indicates how many buttons Windows has grouped together.

Tip

If the taskbar grouping seems like more trouble than it’s worth, you can switch off this behavior. Just right-click an empty space in the taskbar and choose Properties. In the Taskbar and Start Menu Properties dialog box that appears, clear the checkmark next to the “Group similar taskbar buttons” option.

The taskbar, though convenient, isn’t perfect. One problem is that long file names don’t fit on the taskbar buttons, which can make it hard to spot the files you need. And the struggle to find an open file becomes dire if your taskbar is also cluttered with other applications and their multiple windows.

Fortunately, Excel provides a couple of shortcuts that are indispensable when dealing with several spreadsheets at a time:

  • To jump from one spreadsheet to another, find the window in the View → Window → Switch Windows list, which includes the file name of all the currently open spreadsheets (Figure 1-28).

    When you have multiple spreadsheets open at the same time, you can easily move from one to the other using the Switch Windows list.

    Figure 1-28. When you have multiple spreadsheets open at the same time, you can easily move from one to the other using the Switch Windows list.

  • To move to the next spreadsheet, use the keyboard shortcut Ctrl+Tab or Ctrl+F6.

  • To move to the previous spreadsheet, use the shortcut key Ctrl+Shift+Tab or Ctrl+Shift+F6.

When you have multiple spreadsheets open at the same time, you need to take a little more care when closing a window so you don’t accidentally close the entire Excel application—unless you want to. Here are your choices:

  • You can close all the spreadsheets at once. To do so, you need to close the Excel window. Select Office button → Exit Excel from any active spreadsheet, or just click the close icon (the infamous X button) in the top-righthand corner.

  • You can close a single spreadsheet. To do so, right-click the spreadsheet on the taskbar, and click Close. Or, switch to the spreadsheet you want to close (by clicking the matching taskbar button) and then choose Office button → Close.

Note

One of the weirdest limitations in Excel occurs if you try to open more than one file with the same name. No matter what steps you take, you can’t coax Excel to open both of them at once. It doesn’t matter if the files have different content or if they’re in different folders or even different drives. When you try to open a file that has the same name as a file that’s already open, Excel displays an error message and refuses to go any further. Sadly, the only solution is to open the files one at a time, or rename one of them.

Get Excel 2007: The Missing Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.