Dashboard Mode - DATEDIF for date differences
Goal
Calculate the difference between two dates in days, months, or years to track project durations or age.
Calculate the difference between two dates in days, months, or years to track project durations or age.
| Task | Start Date | End Date |
|---|---|---|
| Project A | 2023-01-15 | 2023-04-20 |
| Project B | 2022-06-01 | 2023-06-01 |
| Project C | 2023-03-10 | 2023-03-25 |
| Project D | 2021-12-31 | 2023-01-01 |
| Project E | 2023-05-05 | 2023-05-05 |
=DATEDIF(B2,C2,"d")=DATEDIF(B3,C3,"m")=DATEDIF(B5,C5,"y")=DATEDIF(B2,C2,"d")=DATEDIF(B2,C2,"m")+----------------------+----------------------+----------------------+ | Total Days Project A | Total Months Project B| Total Years Project D | | (95 days) | (12 months) | (1 year) | +----------------------+----------------------+----------------------+ | All Projects Duration Table (Days & Months) | | Task | Start Date | End Date | Duration (Days) | Duration (Months) | | +---------+------------+-----------+-----------------+-------------------+ +
Add a date filter to select a range of projects by start date. When you pick a date range, the duration tables and KPI cards update to show only projects starting within that range.
If you add a filter to show only projects starting after 2023-01-01, which projects remain and what is the total duration in days for those projects?
Answer: Projects A, C, and E remain.
Total duration in days = 95 + 15 + 0 = 110 days.