The Excel YIELDDISC function calculates the annual yield of a discounted security.
The syntax of the function is:
Where the arguments are as follows:
settlement    The settlement date of the security (i.e. the date that the coupon is purchased).  
maturity    The maturity date of the security (i.e. the date that the coupon expires).  
pr    The security's price per $100 face value.  
redemption    The security's redemption value per $100 face value.  
[basis]    An optional integer argument which specifies the financial day count basis that is used by the security. Possible values are:

Note that the settlement and maturity date arguments should be supplied to the function as either:
Warning: If you attempt to enter text representations of dates into Excel functions, these can be interpreted differently, depending on the date system and date interpretation settings on your computer.
In the following spreadsheet, the Excel Yielddisc function is used to calculate the annual yield for a discounted security that has the settlement date 01Jan2017 and the maturity date 30Jun2017. The price per $100 face value is $97 and the redemption value is $100. The US (NASD) 30/360 day count basis is used:
A  B  

1  Settlement Date:  01Jan2017 
2  Maturity Date:  30Jun2017 
3  =YIELDDISC( B1, B2, 97, 100 ) 
The above Yielddisc function calculates the yield on the discounted security to be 6.22%.
Note that, in the above example:
For further examples of the Excel Yielddisc function, see the Microsoft Office website.
If you get an error from the Yielddisc function, this is likely to be one of the following:
#NUM!    Occurs if either:

#VALUE!    Occurs if either:
