DOLLARDE function
This article describes the formula syntax and usage of the DOLLARDE function in Microsoft Excel.
Description
Converts a dollar price expressed as an integer part and a fraction part, such as 1.02, into a dollar price expressed as a decimal number. Fractional dollar numbers are sometimes used for security prices.
The fraction part of the value is divided by an integer that you specify. For example, if you want your price to be expressed to a precision of 1/16 of a dollar, you divide the fraction part by 16. In this case, 1.02 represents $1.125 ($1 + 2/16 = $1.125).
Syntax
DOLLARDE(fractional_dollar, fraction)
The DOLLARDE function syntax has the following arguments:
-
Fractional_dollar Required. A number expressed as an integer part and a fraction part, separated by a decimal symbol.
-
Fraction Required. The integer to use in the denominator of the fraction.
Remarks
-
If fraction is not an integer, it is truncated.
-
If fraction is less than 0, DOLLARDE returns the #NUM! error value.
-
If fraction is greater than or equal to 0 and less than 1, DOLLARDE returns the #DIV/0! error value.
Example
Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.
Formula | Description | Result |
=DOLLARDE(1.02,16) | Converts 1.02, read as 1 and 2/16, to a decimal number (1.125). Because the fraction value is 16, the price has a precision of 1/16 of a dollar. | 1.125 |
=DOLLARDE(1.1,32) | Converts 1.1, read as 1 and 10/32, to a decimal number (1.3125). Because the fraction value is 32, the price has a precision of 1/32 of a dollar. | 1.3125 |
No comments:
Post a Comment