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.

Introducing Formulas and Functions 11<br />

FIGURE 11.8<br />

Formula references to the sales tax cell should be absolute.<br />

Figure 11.9 demonstrates the use of mixed references. The formulas in the C3:F7 range calculate the area<br />

for various lengths and widths. The formula in cell C3 is<br />

=$B3*C$2<br />

FIGURE 11.9<br />

Using mixed cell references.<br />

Notice that both cell references are mixed. The reference to cell B3 uses an absolute reference for the column<br />

($B), and the reference to cell C2 uses an absolute reference for the row ($2). As a result, this formula<br />

can be copied down and across, and the calculations will be correct. For example, the formula in cell F7 is<br />

=$B7*F$2<br />

If C3 used either absolute or relative references, copying the formula would produce incorrect results.<br />

ON the CD-ROM<br />

The workbook that demonstrates the various types of references is available on the companion<br />

CD-ROM. The file is named cell references.xlsx.<br />

When you cut and paste a formula (move it to another location), the cell references in the formula<br />

aren’t adjusted. Again, this is usually what you want to happen. When you move a for-<br />

NOTE<br />

mula, you generally want it to continue to refer to the original cells.<br />

189

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

Saved successfully!

Ooh no, something went wrong!