For a security, with given conditions, the Excel Coupdaysnc function calculates the number of days from the settlement date to the next coupon date.
The syntax of the function is:
Where the arguments are as follows:
settlement    The settlement date of the security.  
maturity    The maturity date of the security.  
frequency   
An integer, representing the number of coupon payments per year. This must have the value 1, 2, or 4, meaning:


[basis]   
An optional integer argument that specifies the day count basis to be used. This must be one of the following values:

Note that the settlement and maturity dates should be input as either:
Warning: If you attempt to input these dates as text, there is a chance that Excel may misinterpret them due to different date systems, or date interpretation settings on your computer.
Cell A3 of the spreadsheet below shows an example of the Excel Coupdaysnc function, used to calculate the number of days from a security's settlement date to the next coupon date. The security has settlement date 01Jan2011, maturity date 25Oct2012, and four payments per year. The US (NASD) 30/360 day count basis is used.
Formulas:

Results:

Note that, in the above example:
For further information on the Excel Coupdaysnc function, see the Microsoft Office website.
If you get an error from the Excel Coupdaysnc Function, this is likely to be one of the following:
#NUM!   
Occurs if either:

#VALUE!   
Occurs if either:
