Count Created Date within last month
Hi All,
I want to use the formula in the Sheet Summary in my smartsheet to count the created date column for last month.
I have tried the formula but it always return to 0; however, looking through the date I have 3 created last month.
=COUNTIF([Date Created]:[Date Created], MONTH(TODAY())-1)
Since I have 1 parent row with 6 children row (all 7 rows have the same created date). How can I eliminated the duplicate count. Is there anyway I can just count the parent row create date?
Thank you
Answers
-
I tried the other formula and is working now. The formula provided me the row I create for last month.
=COUNTIFS([Date Created]:[Date Created], ISDATE(@cell), [Date Created]:[Date Created], MONTH(@cell) = MONTH(TODAY()) - 1)
Where can I add the criteria for only counting the parent row within this formula?
Thank you
-
Hi @Emi
To do this I would add a Helper Column in your sheet so you can identify the Parent rows with a formula (you can Hide this column after):
=IF(COUNT(DESCENDANTS([Primary Column]@row)) > 0, "Parent", "Child")
See: DESCENDANTS Function
Then you can add the helper column in your Sheet Summary formula:
=COUNTIFS([Date Created]:[Date Created], ISDATE(@cell), [Date Created]:[Date Created], MONTH(@cell) = MONTH(TODAY()) - 1, [Helper Column]:[Helper Column], "Parent")
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!