Get help

Help center

Guides and answers

Contact support

Write to our team

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Finance

Turn manual finance work into reports that update themselves.

What Finance teams automate

  • Track payables and receivables
  • Build cash flow statements
  • Compare budget against actuals

Inventory and manufacturing

See stock levels and automate ordering.

What inventory and manufacturing teams automate

  • Track inventory across multiple sites
  • Connect sales, purchasing, and warehouse data
  • Link a barcode scanner to your sheet

HR

Run recruitment, attendance, and OKR tracking from your sheets.

What HR teams automate

  • Track recruitment and onboarding
  • Record team OKRs and results
  • Track check-ins, check-outs, and leave

Project management

Assign tasks and track hours without manual updates.

What project teams automate

  • Assign tasks and track status changes
  • Estimate effort and log hours worked
  • Track milestones across projects

Sales and CRM

Track leads and sales performance with automated reports.

What sales teams automate

  • Track and convert leads
  • Set sales goals and track team metrics
  • Monitor sales KPIs on dashboards

Education

Automate attendance, grades, and school purchasing.

What schools automate

  • Track attendance and notify parents
  • Record and compare class grades
  • Track inventory lent to students and staff

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Get started

Templates

Ready-made workflows to start from

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Help center

Guides and answers

Contact support

Write to our team

Workflows

Build processes with your team

Automations

Connect files and automate tasks

How to use the MDURATION formula in Google Sheets

Given the expected yield that an investment and the interest rate, the MDURATION formula in Google Sheets calculates the modified Macaulay duration. It is the weighted average before the buyer would receive the investment’s cash flows. Also, the formula will require other inputs as explained below, for it to be able to evaluate the duration correctly.

Syntax

MDURATION(settlement, maturity, rate, yield, frequency, [day_count_convention])

  • settlement – is the date after issuing the security, when it is actually delivered to the buyer.
  • maturity – is the end or maturity date of the security, when the buyer can redeem it at face or par value.
  • rate – is the annualized interest rate at which the investment appreciates.
  • yield- is the annual yield that the buyer expects for the security.
  • frequency – is the number of interest payments that buyer can pay per year.
  • day_count_convention – [OPTIONAL parameter – 0 by default] – it is an indicator of the day count method that Google Sheets should consider. There are five different possible values for this parameter.
    • 0 – assumes that there are 30 day months and 360 day years (US (NASD) 30/360). Using this value ensures there are specific adjustments to the entered dates that usually are at the end of months.
    • 1 – calculates based on the actual number of days between the specified dates, and the actual number of days in the intervening years.
    • 2 – calculates based on the actual number of days between the specified dates, but assumes a 360 day year.
    • 3 – evaluates the DURATION formula in Google Sheets based on the actual number of days between the specified dates, but assumes a 365 day year.
    • 4 – very similar to the first option 0, except, it adjusts end-of-month dates according to European financial conventions.

Usage: MDURATION formula in Google Sheets

Seemingly the formula feeds on multiple parameters and it might look a little complex. But understanding the concepts with the help of a few examples should make us feel at ease. So, let’s dive into them head first.

MDURATION 1

Please note that the settlement and maturity parameters require valid dates. Therefore, we need to use either the results from formulas such as DATE, TO_DATE, or references to other date type cells. If we do not ensure this, Google Sheets may return parsing errors. Similarly, the other parameters – rate, yield, frequency, and day_count_convention – can be direct numeric values or references to the cells holding the appropriate values.

We might notice that all the formulas seem to produce different output values. Even if the initial parameters effectively being the same. This is happening due to the day counting method which we indicated using the final day_count_convention parameter.

MDURATION formula

And there you go! Use the MDURATION formula in Google Sheets to calculate the modified Macaulay duration.

If you’d like to learn more about the various formulas of Google Sheets, why not take a look at our blog post on the DURATION formula in Google Sheets.

Alternatively, check out related blog posts below!

You may also like…

google sheets features and formulas

How to find nominal interest rate using Google Sheets

Sarah is a young professional making significant financial decisions. From credit cards to mortgages, student loans, and investment...
google sheets features and formulas

Pull Google Calendar data into Google Sheets using Apps Script

This post was originally published in our community forum. Objective : This guide demonstrates how to use Google Apps Script to pull data...
google sheets features and formulas

Using the PROPER function to capitalize the first letter of each word in Google Sheets

Note: This post was originally published in our community forum. Ever found yourself needing to clean up a list of names, titles, or any...