11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

104<br />

Part II: Using Functions in Your <strong>Formula</strong>s<br />

Simplify your formulas<br />

Using a built-in function can simplify a formula significantly. For example, you might need to calculate<br />

the average of the values in 10 cells (A1:A10). Without the help of any functions, you would<br />

need to construct a formula like this:<br />

=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10)/10<br />

Not very pretty, is it? Even worse, you would need to edit this formula if you inserted a new row<br />

in the A1:A10 range and needed the new value to be included in the average. However, you can<br />

replace this formula with a much simpler one that uses the AVERAGE function:<br />

=AVERAGE(A1:A10)<br />

Perform otherwise impossible calculations<br />

Functions permit formulas to perform calculations that go beyond the standard mathematical<br />

operations. Perhaps you need to determine the largest value in a range. A formula can’t tell you<br />

the answer without using a function. This formula uses the MAX function to return the largest<br />

value in the range A1:D100:<br />

=MAX(A1:D100)<br />

Speed up editing tasks<br />

Functions can sometimes eliminate manual editing. Assume that you have a worksheet that contains<br />

1,000 names in cells A1:A1000 and that all the names appear in all-uppercase letters. Your<br />

boss sees the listing and informs you that you need to mail-merge the names with a form letter<br />

and that the use of all uppercase is not acceptable. For example, JOHN F. CRANE must appear as<br />

John F. Crane. You could spend the rest of the afternoon reentering the list — or you could use a<br />

formula such as the following, which uses the PROPER function to convert the text in cell A1 to<br />

proper case:<br />

=PROPER(A1)<br />

1. Type this formula in cell B1 and then copy it down to the next 999 rows.<br />

2. Select B1:B1000 and choose Home➜Clipboard➜Copy to copy the range to the Clipboard<br />

(or press Ctrl+C).

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

Saved successfully!

Ooh no, something went wrong!