Microsoft Excel中的Duration函数是一个财务函数(Financial function),其目的是返回定期支付利息的证券的年度回报。
Excel 持续时间(Excel Duration)公式和语法是什么?
持续时间(Duration)函数的公式是DURATION(Settlement, maturity, coupon, yld, frequency, [basis])
Duration函数的语法(Syntax)如下:
- 结算(Settlement):证券的结算日期。这是必需的。
- 到期(Maturity)日:证券的到期日。这是必需的。
- 息票(Coupon):需要证券的息票日期。
- Yld:证券的年收益率。这是必需的
- 频率(Frequency):每年支付息票的次数。这是必需的。
- 基础(Basis):要使用的天数基础类型。它是可选的。
如何在Excel中使用(Excel)持续时间函数(Duration Function)
要在Microsoft Excel中使用(Microsoft Excel)Duration函数,请按照以下步骤操作。
- 启动 Excel
- 创建表或使用现有表
- 在要放置结果的单元格中键入Duration函数的公式
- 按 Enter 键查看结果
启动Microsoft Excel。
创建表或使用现有表。

在要放置结果的单元格中键入函数=DURATION(B1,B2,B3,B4,B5,B6)

然后按回车键查看结果。
在Excel(Excel)中还有另外两种使用DURATION函数的方法。
方法一是单击Excel工作表左上角的fx按钮。

将出现一个插入函数(Insert Function)对话框。
在“选择类别(Select a Category)”部分的对话框中,从列表框中选择“财务”。(Financial )
在Select a Function部分中,从列表中选择DURATION函数。(DURATION )
然后单击确定(OK)。

将打开一个函数参数(Function Arguments)对话框。
在结算(Settlement)字段中,输入B1,即包含证券结算日期的单元格。
在到期(Maturity)字段类型B2中,单元格包含证券的到期日期。
在Coupon字段类型B3中,单元格包含证券的票息日期。
在Yld字段类型B4中,单元格包含证券的年收益率。
在频率(Frequency)字段类型 B5中,单元格包含每年的付息次数。
然后单击确定(OK)。

方法二是单击公式(Formulas )选项卡,然后单击函数库(Function Library)组中的财务(Financial )按钮。
然后从列表中选择DURATION函数。
将出现一个函数参数(Function Arguments)对话框。
Excel中的(Excel)结算(Settlement)日期和到期(Maturity)日期有什么区别?
结算日(Settlement Date)是买家购买优惠券的日期,而到期日(Maturity)是优惠券到期的日期。
为什么Duration在Excel中返回错误值#NUM和#VALUE?
(Excel)如果票息 < 0 或 yld > 0 或频率为 1,2 或 4 或结算≥到期且基差 < 0 或 >4,Excel将返回错误值#NUM 。如果证券和到期日是无效日期,则Duration函数(Duration)将返回#VALUE 。
我们希望本教程能帮助您了解如何在Excel中使用(Excel)DURATION函数。
How to use Duration Financial Function in Excel
The Duration function in Microsoft Excel is a Financial function, and its purpose is to return the annual return of security with periodic interest payments.
What is the Excel Duration formula and syntax?
The formula for the Duration function is DURATION(Settlement, maturity, coupon, yld, frequency, [basis])
The Syntax for the Duration function is below:
- Settlement: The security’s settlement date. It is required.
- Maturity: The security’s maturity date. It is required.
- Coupon: the security’s coupon date is required.
- Yld: The security’s annual yield. It is required
- Frequency: The number of coupon payments per year. It is required.
- Basis: The type of day count basis to use. It is optional.
How to use the Duration Function in Excel
To use the Duration function in Microsoft Excel, follow the steps below.
- Launch Excel
- Create a table or use an existing table
- Type the formula for the Duration function into the cell you want to place the result
- Press Enter to see the result
Launch Microsoft Excel.
Create a table or use an existing table.

Type the function =DURATION(B1,B2,B3,B4,B5,B6) into the cell you want to place the result.

Then press the enter key to see the result.
There are two other methods to use the DURATION function in Excel.
Method one is to click the fx button on the top left of the Excel worksheet.

An Insert Function dialog box will appear.
Inside the dialog box in the section, Select a Category, select Financial from the list box.
In the section Select a Function, choose the DURATION function from the list.
Then click OK.

A Function Arguments dialog box will open.
In the Settlement field, type B1, the cell that contains the security’s settlement date.
In the Maturity field type B2, the cell contains the Security’s maturity date.
In the Coupon field type B3, the cell contains the Security’s coupon date.
In the Yld field type B4, the cell contains the security’s annual yield.
In the Frequency field type B5, the cell contains the number of coupon payments per year.
Then click OK.

Method two is to click the Formulas tab and click the Financial button in the Function Library group.
Then select the DURATION function from the list.
A Function Arguments dialog box will appear.
What is the difference between Settlement date and Maturity date in Excel?
The Settlement Date is the day the buyer purchases a coupon, while the Maturity date is when the coupon is expired.
Why does Duration return the error values #NUM and #VALUE in Excel?
Excel will return the error value #NUM if the coupon is < 0 or if yld is > 0 or if the frequency is 1,2 or 4 or if settlement is ≥ maturity and if the basis is < 0 or >4. The Duration function will return a #VALUE if the security and maturity is an invalid date.
We hope this tutorial helps you understand how to use the DURATION function in Excel.