Incomplate Online Formula Example - MONTH
Hi Support,
MONTH Function | Smartsheet Learning Center
Unsure where to post this, but the example is missing an end bracket. See below.
=COUNTIF([Sold Date]:[Sold Date], (MONTH(@cell) = 2)
When the MONTH function contains a blank cell within the range of dates it is reviewing, it will produce the #INVALID DATA TYPE error. This is expected behavior. To resolve this, you’ll want to utilize an IFERROR function.
#INVALID DATA TYPE
I know it auto appends, but the examples should be updated. Who verifies the validity of the online formula handbook?
Answers
-
@SomeRando You are correct that the formula has a typo. It either needs an additional end parentheses after =2), or the opening parentheses before MONTH should be removed. Either of these is valid.
=COUNTIF([Sold Date]:[Sold Date], (MONTH(@cell) = 2))
=COUNTIF([Sold Date]:[Sold Date], MONTH(@cell) = 2)
Really, the ideal is something like this:
=COUNTIFS([Sold Date]:[Sold Date], ISDATE(@cell), [Sold Date]:[Sold Date], MONTH(@cell) = 2)
When I noticed a lot of problems with the HAS function page, I rewrote a good portion of it and submitted a ticket to Smartsheet Support. It took about 3 months, but eventually my proposed changes were made to the page.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Ipshita Mukherjee
-
Hi @SomeRando (and @Jeff Reisman and @Ipshita)
Thanks for pointing out this typo! I'll make sure the Help Content team receives this feedback.
For future reference, the Support team does not update these pages, nor does the Product team (@Ipshita's link). You can leave direct feedback on articles in the Help Center itself, on the "Was this article helpful" section:
Or, of course, feel free to post here in the Community and I can submit that feedback on your behalf. 🙂
Cheers!
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
@Genevieve P. Thanks! Good to know!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!