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
- Customer Resources
- 66K Get Help
- 429 Global Discussions
- 149 Industry Talk
- 488 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 153 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 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!