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.

Part IV<br />

Using Advanced Excel Features<br />

Linking has its downside, however. External reference formulas are somewhat fragile, and accidentally severing<br />

the links that you create is relatively easy. You can prevent this mistake if you understand how linking<br />

works. Later in the chapter, I discuss some problems that may arise, as well as how to avoid them (see<br />

“Avoiding Potential Problems with External Reference Formulas”).<br />

Creating External Reference Formulas<br />

You can create an external reference formula by using several different techniques:<br />

n<br />

n<br />

n<br />

n<br />

Type the cell references manually. These references may be lengthy because they include<br />

workbook and sheet names (and, possibly, even drive and path information). The advantage<br />

of manually typing the cell references is that the source workbook doesn’t have to be open. The<br />

disadvantage is that it’s very error-prone.<br />

Point to the cell references. If the source workbook is open, you can use the standard pointing<br />

techniques to create formulas that use external references.<br />

Paste the links. Copy your data to the Clipboard. Then, with the source workbook open, choose<br />

Home ➪ Clipboard ➪ Paste ➪ Paste Link. Excel pastes the copied data as external reference<br />

formulas.<br />

Choose Data ➪ Data Tools ➪ Consolidate. For more on this method, see the section<br />

“Consolidating worksheets by using the Consolidate command,” later in this chapter.<br />

Understanding the link formula syntax<br />

The general syntax for an external reference formula is as follows:<br />

=[WorkbookName]SheetName!CellAddress<br />

Precede the cell address with the workbook name (in brackets), the worksheet name, and an exclamation<br />

point. Here’s an example of a formula that uses cell A1 in the Sheet1 worksheet of a workbook named<br />

Budget:<br />

=[Budget.xlsx]Sheet1!A1<br />

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

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

named Annual Budget.xlsx:<br />

=’[Annual Budget.xlsx]Sheet1’!A1<br />

When a formula refers to cells in a different workbook, you don’t need to open the other workbook. If the<br />

workbook is closed and not in the current folder, you must add the complete path to the reference; for<br />

example:<br />

=’C:\Data\Excel\Budget\[Annual Budget.xlsx]Sheet1’!A1<br />

Creating a link formula by pointing<br />

Entering external reference formulas manually is usually not the best approach because you can easily make<br />

an error. Instead, have Excel build the formula for you, as follows:<br />

1. Open the source workbook.<br />

2. Select the cell in the dependent workbook that will hold the formula.<br />

500

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

Saved successfully!

Ooh no, something went wrong!