Problems using @cell with dates when range contains blank cells
Hi,
I've been trying to use this formula:
COUNTIF(Due Date, MONTH(@cell) = 8, but it returns an error INVALID DATA TYPE
If I limit the data range to exclude the blank rows than it has no problems. But this is not pratical because later when I more tasks, I have to adjust the formula. Interestingly SUMIF does not have this problem using similar parameters.
Besides creating a new column to calculate the month separately any other solutions?
Tags:
Comments
-
Try this instead:
=COUNTIF([Due Date]:[Due Date], IFERROR(MONTH(@cell), "") = 8)
This should let you skip the blank cells.
-
Nic, thanks that works!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- 10.7K Get Help
- 63 Global Discussions
- 68 Industry Talk
- 385 Announcements
- 3.5K Ideas & Feature Requests
- 55 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 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!