Counting dates as entries
I am compiling a metrics page, and need to count a date field, teh automated "created" which stores date and time the row was created. I want to count a total of "01/XX/19", XX meaning i dont care about the days, i just want all of January 2019 entries.
I am refrencing another sheet (hence the metric sheet), so i need to do that. The goal is to utilize for each month/2019, as well as each month/2018, and continue in years to come.
Thanks!
Comments
-
Hi,
Try this.
Change the last number (4) to which month you want to count. The IFERROR part will remove an error if there is a cell that isn't a date in the range (not needed for the created column but if you want to reference another date column)
=COUNTIFS({Reference to other sheet}; IFERROR(MONTH(@cell); 0) = 4)
The same version but with the below changes for your and others convenience.
=COUNTIFS({Reference to other sheet}, IFERROR(MONTH(@cell), 0) = 4)
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did it work?
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
To further Andree's solution, to include the YEAR requirement, we can just use an AND function with @cell references in the criteria section...
=COUNTIFS({Reference to other sheet}, AND(IFERROR(MONTH(@cell), 0) = 4, IFERROR(YEAR(@cell), 0) = 2019))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!