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
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 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!