Difficulty with CountIfs function

Paul_S
✭✭
I'm trying to count values in a column that are not blank if a date column matches January. My formula is:
=COUNTIFS([Date]:[Date], MONTH(@cell) = 1, [Number]:[Number], <>"")
I get Invalid Data Type as the result. I can only think it has to do with the MONTH(@cell) portion, but I've used that in another summary field with the SUMIF function. Any ideas what's wrong with the syntax?
Answers
-
Is your Date column property set to Date type?
-
Try this...
=COUNTIFS([Date]:[Date], IFERROR(MONTH(@cell), 0) = 1, [Number]:[Number], <>"")
If there are blanks or text values anywhere in the date column being referenced, you will get the error.
-
Yes, it is set to date type.
-
Paul, Thank you. That worked perfectly.
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!