I am trying to count how many dates have a specific YEAR in a cell for a given row...
Briana
✭✭
=COUNTIF([Date of first absence]:[Date of first absence], YEAR(@cell) = 2021)
It keeps giving me #INVALID DATA TYPE
Tags:
Best Answer
-
You most liekly either have non-date values or blanks in the range. Try this:
=COUNTIFS([Date of first absence]:[Date of first absence], IFERROR(YEAR(@cell), 0) = 2021)
Answers
-
You most liekly either have non-date values or blanks in the range. Try this:
=COUNTIFS([Date of first absence]:[Date of first absence], IFERROR(YEAR(@cell), 0) = 2021)
-
Thank you @Paul Newcome I did have blanks in the range! It's working flawlessly now!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 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!