Examples for the duration.ymd formula
Copy these examples into a spreadsheet and adjust the ranges for your own data.
DURATION.YMD syntax pattern
=DURATION.YMD(years, months, days)Use this DURATION.YMD pattern as the starting point for your spreadsheet formula.
DURATION.YMD in a worksheet
=DURATION.YMD(years, months, days)Returns a duration of years, months, and days.
When to use DURATION.YMD
Use DURATION.YMD when you need to return a duration of years, months, and days.
- Construct dates, times, and durations.
- Extract time parts and shift dates for reporting.
How DURATION.YMD works in Quadratic
In Quadratic, DURATION.YMD follows the syntax DURATION.YMD(years, months, days). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.
Common DURATION.YMD mistakes
Most DURATION.YMD issues come from mismatched argument types, ranges that do not cover the intended data, or optional parameters being omitted when the default behavior is not what you expected.
- Check each required parameter before copying the formula across a sheet.
- Confirm that ranges line up with the rows or columns you intend to analyze.
- Use Quadratic AI to explain or debug the formula when the result looks wrong.