This function calculates the yield on a security that pays periodic interest.
YIELD(settle, maturity, rate, price, redeem, frequency, basis)
This function has these arguments:
Settlement date for the security
Maturity date for the security
Annual coupon rate
Price per $100 face value for the security
Redemption value per $100 face value
Frequency of payment, number of coupon payments per year; must be 1, 2, or 4
[Optional] Integer representing the basis for day count (Refer to Day Count Basis.)
This function returns a #VALUE! error when settle or maturity is invalid. A #NUM! error is returned if frequency is a number other than 1, 2, or 4.
If rate is less than 0, a #NUM! error is returned.
If price or redeem is less than or equal to 0, a #NUM! error is returned.
If basis is less than 0 or greater than 4, a #NUM! error is returned.
If settle is greater than or equal to maturity, a #NUM! error is returned.
Settle, maturity, frequency, and basis are truncated to integers.
Accepts numeric data and dates. Returns numeric data.