WorksheetFunction.MDuration (Excel)

Returns the modified Macauley duration for a security with an assumed par value of $100.

MDuration (Arg1, Arg2, ..., Arg6)

Dim dblMDuration As Double
dblMDuration = WorksheetFunction.MDuration(Arg1:=, Arg2:=, Arg3:=, Arg4:=, Arg5:=)


Arg1, Arg2, ..., Arg6

Arg1 - Settlement - the security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer

Arg2 - Maturity - the security's maturity date. The maturity date is the date when the security expires

Arg3 - Coupon - the security's annual coupon rate

Arg4 - Yld - the security's annual yield

Arg5 - Frequency - the number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4

Arg6 - Basis - the type of day count basis to use