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.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 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!