What column type is required to use MONTH to return number of new lines in a certain month?

CatB
✭
I've been trying to count lines by month, I have the column I want searched set to a date column type.
=COUNTIF([Date Opened]:[Date Opened], MONTH(1))
I'm getting a invalid data type error.
Answers
-
Hello @CatB
It looked like your Date column has either an empty cell or a non-date value so you need to account it using an IFERROR function. Since having either an empty cell or a non-date value will throw an error and that causes the #INVALID DATA TYPE error message.
Try this:
=COUNTIF([Date Opened]:[Date Opened], IFERROR(MONTH(@cell ), 0) = 1)
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67K Get Help
- 441 Global Discussions
- 154 Industry Talk
- 502 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 79 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 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!