Issues with a crossheet Countif formula
Hi everyone, I'm trying to create a formula to count how many datasets were processed in a month. I've tried the following:
=Countif({Datasets},Month(@cell)=12) and I get an Invalid Data Type Error
=Countif({Datasets},ISDATE(@cell)) returns the total of all datasets processed, so I know it's reading correctly as a date...
Any suggestions?
Thank you,
Adam
Comments
-
It is probably because there are empty cells in your range. To compensate for those, you can wrap your MONTH criteria in an IFERROR statement to replace any errors (blank cells) with a number that is not an actual month number. This will give you the ability to essentially ignore any blank cells. Something along the lines of...
=Countif({Datasets},IFERROR(Month(@cell), 0)=12)
If the cell is blank then there is nothing for the MONTH function to look at. That is most likely where your invalid error is coming from.
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