Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: ODDFYIELD Returns #NUM with Online Help Example


View products that this article applies to.

This article was previously published under Q262339

↑ Back to the top


Symptoms

When you view information about the ODDFYIELD worksheet function in Microsoft Excel Help, you see the following text:
 The yield of a security that has an odd (short or long) first period is:

 ODDFYIELD("1/25/1999","1/1/2004","1/18/1999","7/15/1999",0.0575,084.50,100,2,0)
 equals .097581 or 9.76 percent
				
However, when you type this formula into Excel 2000, you receive the #NUM! error value.

NOTE: This same formula works as described in earlier versions of Excel.

↑ Back to the top


Cause

ODDFYIELD cannot return a valid result when both the first and last coupon dates are odd.

↑ Back to the top


Resolution

Change the maturity argument in the ODDFYIELD worksheet function to "1/15/2004". This date change ensures that the last coupon date is not odd. The following formula equals 0.097581282, or 9.76 percent:
=ODDFYIELD("1/25/1999","1/15/2004","1/18/1999","7/15/1999",0.0575,084.50,100,2,0)
				

↑ Back to the top


More information

Earlier versions of Excel incorrectly calculated a value for the ODDFYEILD function even when the last coupon date and the first coupon date were both odd. This problem was corrected in Excel 2000, but the example in Microsoft Excel Help was not corrected.

This behavior also applies to the following worksheet functions:
  • ODDFPRICE
  • ODDLPRICE
  • ODDLYIELD
For more information about the resources used to derive financial, statistical, and engineering methods, click Microsoft Excel Help on the Help menu, type a bibliography of financial, statistical, and engineering methods in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

For more information about ODDFYIELD, click Microsoft Excel Help on the Help menu, type ODDFYIELD Worksheet Function in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


References

Lynch, John J., Jr., and Jan H. Mayle. Standard Securities Calculation Methods, Fixed Income Securities Formulas. New York: Securities Industry Association, 1994.

↑ Back to the top


Keywords: KB262339, kbprb

↑ Back to the top

Article Info
Article ID : 262339
Revision : 3
Created on : 9/25/2003
Published on : 9/25/2003
Exists online : False
Views : 203