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
- 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
- 496 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!