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.

288<br />

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

Working with fractional dollars<br />

The DOLLARFR and DOLLARDE functions are useful when working with fractional dollar values,<br />

as in stock market quotes.<br />

Consider the value $9.25. You can express the decimal part as a fractional value ($9 1/4, $9 2/8,<br />

$9 4/16, and so on). The DOLLARFR function takes two arguments: the dollar amount and the<br />

denominator for the fractional part. The following formula, for example, returns 9.1 (the .1 decimal<br />

represents 1/4):<br />

=DOLLARFR(9.25,4)<br />

In most situations, you won’t use the value returned by the DOLLARFR function in other<br />

calculations. In the preceding example, the result of the function will be interpreted as<br />

9.1, not 9.25. To perform calculations on such a value, you need to convert it back to a<br />

decimal value by using the DOLLARDE function.<br />

The DOLLARDE function converts a dollar value expressed as a fraction to a decimal amount. It<br />

also uses a second argument to specify the denominator of the fractional part. The following formula,<br />

for example, returns 9.25:<br />

=DOLLARDE(9.1,4)<br />

The DOLLARDE and DOLLARFR functions aren’t limited to dollar values. For example,<br />

you can use these functions to work with feet and inches. You might have a value that<br />

represents 8.5 feet. Use the following formula to express this value in terms of feet and<br />

inches. The formula returns 8.06 (which represents 8 feet, 6 inches).<br />

=DOLLARFR(8.5,12)<br />

Another example is baseball statistics. A pitcher may work 6 2 ⁄3 innings, and this is usually<br />

represented as 6.2. The following formula displays 6.2:<br />

=DOLLARFR(6+2/3,3)<br />

Using the INT and TRUNC functions<br />

On the surface, the INT and TRUNC functions seem similar. Both convert a value to an integer.<br />

The TRUNC function simply removes the fractional part of a number. The INT function rounds a<br />

number down to the nearest integer, based on the value of the fractional part of the number.

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

Saved successfully!

Ooh no, something went wrong!