18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introducing Formulas and Functions 11<br />

If the workbook name in the reference includes one or more spaces, you must enclose it (and the sheet<br />

name) in single quotation marks. For example, here’s a formula that refers to a cell on Sheet1 in a workbook<br />

named Budget For 2008:<br />

=A1*’[Budget For 2008.xlsx]Sheet1’!A1<br />

When a formula refers to cells in a different workbook, the other workbook doesn’t have to be open. If the<br />

workbook is closed, however, you must add the complete path to the reference so that Excel can find it.<br />

Here’s an example:<br />

=A1*’C:\My Documents\[Budget For 2008.xlsx]Sheet1’!A1<br />

A linked file can also reside on another system that’s accessible on your corporate network. The formula<br />

below, for example, refers to a cell in a workbook in the files directory of a computer named DataServer.<br />

=’\\DataServer\files\[budget.xlsx]Sheet1’!$D$7<br />

CROSS-REF<br />

Refer to Chapter 27 for more information about linking workbooks.<br />

TIP<br />

To create formulas that refer to cells not in the current worksheet, point to the cells rather<br />

than entering their references manually. Excel takes care of the details regarding the workbook<br />

and worksheet references. The workbook you’re referencing in your formula must be open if you’re going to<br />

use the pointing method.<br />

If you point to a different worksheet or workbook when creating a formula, you’ll notice that<br />

Excel always inserts absolute cell references. Therefore, if you plan to copy the formula to<br />

other cells, make sure that you change the cell references to relative before you copy.<br />

NOTE<br />

Using Formulas In Tables<br />

One of the most significant new features in Excel 2007 is its support for tables. In this section I describe<br />

how formulas work with tables.<br />

CROSS-REF<br />

See Chapter 6 for an introduction to the new table features.<br />

Summarizing data in a table<br />

Figure 11.10 shows a simple table with three columns. I entered the data, and then converted the range to a<br />

table by choosing Insert ➪ Tables ➪ Table. Note that I didn’t define any names, but the table is named<br />

Table1 by default.<br />

191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!