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.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 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!