I am trying to count how many dates have a specific YEAR in a cell for a given row...
Options
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!
Help Article Resources
Categories
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!