Year Function
I have a date column [Updated on]. I a formula to count all the items in the column which occurred in 2021. I have the following so far. I am getting INVALID DATA TYPE.
=COUNTIF([Updated on]:[Updated on], YEAR(@cell) = YEAR(TODAY()))
Best Answers
-
Try this to accommodate blanks and other non-date values:
=COUNTIF([Updated on]:[Updated on], IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))
-
That worked great. Thanks for the help.
Answers
-
Try this to accommodate blanks and other non-date values:
=COUNTIF([Updated on]:[Updated on], IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))
-
That worked great. Thanks for the help.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!