Skip to main content

Helpful time formulas in Dashpivot (with examples)

Learn how to use time formulas in Dashpivot to calculate hours worked, time differences, and timestamps in your templates.

Written by Adriana De Souza
Updated over a week ago

Dashpivot supports Excel-style time functions inside Default Tables and Prefilled Tables, helping you automate time tracking, reporting, and calculations.

Note: Time formulas often return a decimal (fraction of a full day). Use TEXT() to format results (e.g. =TEXT(TIME(A1,B1,0),"HH:MM")).

TIMEDIF()

Purpose: Calculates the difference between two times (in hours).
Formula to use:
=TIMEDIF(A1,B1)

Example:
If A1 = 01:00
and B1 = 03:30
=TIMEDIF(A1,B1) returns 2.5

To convert:

  • Minutes → =TIMEDIF(A1,B1)*60

  • Seconds → =TIMEDIF(A1,B1)*3600


HOUR()

Purpose: Returns the hour component of a time value.
Formula to use:
=HOUR(A1)

Example:
If A1 = 08:45
=HOUR(A1) returns 8


MINUTE()

Purpose: Returns the minute component of a time value.
Formula to use:
=MINUTE(A1)

Example:
If A1 = 08:45
=MINUTE(A1) returns 45


SECOND()

Purpose: Returns the second component of a time value.
Formula to use:
=SECOND(A1)

Example:
If A1 = 08:45:30
=SECOND(A1) returns 30

Commonly used with NOW().


NOW()

Purpose: Returns the current date and time. The decimal portion represents the time.
Formula to use:
=NOW()

Example:
If the current date is 05/08/2024 at 14:30
=NOW() returns a serial number such as 45509.60

To format as readable date/time:
=TEXT(NOW(),"DD/MM/YYYY HH:MM")

Did this answer your question?