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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 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!