STRIPDURATION

The STRIPDURATION function evaluates any value and returns either the number of days represented, if a duration value, or the specified value. This function is included for compatibility with other spreadsheet apps.

STRIPDURATION(any-value)

any-value: The value to be tested.

Notes

Examples

=STRIPDURATION(“1w”) returns 7, the equivalent of one week in days.

=STRIPDURATION(12) returns 12, because 12 is not a duration value.

=STRIPDURATION(“abc”) returns “abc”, because “abc” is not a duration value.