18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Part IV<br />

Using Advanced Excel Features<br />

Avoiding Potential Problems with External<br />

Reference Formulas<br />

Using external reference formulas can be quite useful, but the links may be unintentionally severed. As long<br />

as the source file hasn’t been deleted, you can almost always re-establish lost links. If you open the workbook<br />

and Excel can’t locate the file, you see a dialog box that enables you to specify the workbook and recreate<br />

the links. You also can change the source file by using the Change Source button in the Edit Links<br />

dialog box. The following sections discuss some pointers that you must remember when you use external<br />

reference formulas.<br />

Renaming or moving a source workbook<br />

If you rename the source document or move it to a different folder, Excel won’t be able to update the links.<br />

You need to use the Edit Links dialog box and specify the new source document.<br />

NOTE<br />

If the source and destination folder reside in the same folder, you can move both of the files<br />

to a different folder. In such a case, the links remain intact.<br />

Using the Save As command<br />

If both the source workbook and the destination workbook are open, Excel doesn’t display the full path<br />

in the external reference formulas. If you use the <strong>Office</strong> ➪ Save As command to give the source workbook<br />

a new name, Excel modifies the external references to use the new workbook name. In some cases, this<br />

change may be what you want. But in other cases, it may not. Bottom line? Be careful when you choose<br />

<strong>Office</strong> ➪ Save As with a workbook that is the source of a link in another open workbook.<br />

Modifying a source workbook<br />

If you open a workbook that is a source workbook for another workbook, be extremely careful if the<br />

destination workbook isn’t opened. For example, if you add a new row to the source workbook, the cells<br />

all move down one row. When you open the destination workbook, it continues to use the old cell<br />

references — which is probably not what you want.<br />

You can avoid this problem in the following ways:<br />

n<br />

Always open the destination workbook(s) when you modify the source workbook. If you do<br />

so, Excel adjusts the external references in the destination workbook when you make changes to<br />

the source workbook.<br />

n Use names rather than cell references in your link formula. This approach is the safest.<br />

The following link formula refers to cell C21 on Sheet1 in the budget.xlsx workbook:<br />

=[budget.xlsx]Sheet1!$C$21<br />

If cell C21 is named Total, you can write the formula using that name:<br />

=budget.xlsx!total<br />

Using a name ensures that the link retrieves the correct value, even if you add or delete rows or columns<br />

from the source workbook.<br />

CROSS-REF<br />

See Chapter 5 for more information about creating names for cells and ranges.<br />

504

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

Saved successfully!

Ooh no, something went wrong!