Calculating Age Monthly
I have a smartsheet with many events that often span several months. I want to calculate the average age of relevant events for each month.
For example, for the month of March, I want it to calculate the age of all events that were closed within the month of March in addition to the average age (as of the end of March) of events that are still open in March.
I have a column that calculates the age of each event. Below is the formula I'm currently using.
=AVG(
COLLECT(
{Age},
{Closure Date},
AND(
IFERROR(MONTH(@cell ), 0) = MONTH([Start Date]@row),
IFERROR(YEAR(@cell ), 0) = YEAR([Start Date]@row)
)
),
COLLECT(
{Age},
{Status},
@cell <> "Complete",
{Date of Notification},
@cell <= [End Date]@row
)
)
The first half of the formula works correctly. The issue is that the 2nd Collect formula does uses the total age of the event rather than the age at the end of the respective month. i.e. if event notification was 01March and the event is not complete (still open), the formula uses the current age of the event rather than the age as of 31March
Answers
-
Are you able to provide some screenshots for context?
-
I did my best to clear out sensitive information, but not sure if this is the level of detail you were looking for…
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!