Examples for the duration.hms formula
Copy these examples into a spreadsheet and adjust the ranges for your own data.
DURATION.HMS syntax pattern
=DURATION.HMS(hours, minutes, seconds)Use this DURATION.HMS pattern as the starting point for your spreadsheet formula.
DURATION.HMS in a worksheet
=DURATION.HMS(hours, minutes, seconds)Returns a duration of hours, minutes, and seconds.
When to use DURATION.HMS
Use DURATION.HMS when you need to return a duration of hours, minutes, and seconds.
- Construct dates, times, and durations.
- Extract time parts and shift dates for reporting.
How DURATION.HMS works in Quadratic
In Quadratic, DURATION.HMS follows the syntax DURATION.HMS(hours, minutes, seconds). The function works inside Quadratic formulas and can be combined with spreadsheet ranges, tables, and other formulas.
Common DURATION.HMS mistakes
Most DURATION.HMS 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.