WorksheetFunction.AccrIntM Method

Returns the accrued interest for a security that pays interest at maturity.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function AccrIntM ( _
    Arg1 As Object, _
    Arg2 As Object, _
    Arg3 As Object, _
    Arg4 As Object, _
    Arg5 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Object
Dim Arg2 As Object
Dim Arg3 As Object
Dim Arg4 As Object
Dim Arg5 As Object
Dim returnValue As Double

returnValue = instance.AccrIntM(Arg1, _
    Arg2, Arg3, Arg4, Arg5)
double AccrIntM(
    Object Arg1,
    Object Arg2,
    Object Arg3,
    Object Arg4,
    Object Arg5
)

Parameters

  • Arg4
    Type: System.Object

    The security's par value. If you omit par, ACCRINTM uses $1,000.

Return Value

Type: System.Double

Remarks

Important

Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.

The following table describes the values that can be used for Arg5.

Basis

Day count basis

0 or omitted

US (NASD) 30/360

1

Actual/actual

2

Actual/360

3

Actual/365

4

European 30/360

The following list contains information to be aware of when working with ACCRINTM:

  • Microsoft Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

  • Issue, maturity, and basis are truncated to integers.

  • If issue or maturity is not a valid date, ACCRINTM will generate an error.

  • If rate ≤ 0 or if par ≤ 0, ACCRINTM will generate an error.

  • If basis < 0 or if basis > 4, ACCRINTM will generate an error.

  • If issue ≥ maturity, ACCRINTM will generate an error.

  • ACCRINTM is calculated as follows:

    Figure 1: AccrIntM equation

    AccrIntM equation

where:

A = Number of accrued days counted according to a monthly basis. For interest at maturity items, the number of days from the issue date to the maturity date is used.

D = Annual Year Basis.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace