Why this formula's returns #INVALID DATA TYPE
Hello,
I wonder if so can help me understand why this formula does not work.
=COUNTIF([Request Date]:[Request Date], MONTH(@cell) = 10)
Where the Request Date is indeed a Date column.
It is probably pretty obvious but cannot find it.
Raoul.
Best Answers
-
Try something like this.
=COUNTIF([Request Date]:[Request Date, IFERROR(MONTH(@cell), 0) = 10)
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
When the MONTH() function contains a blank cell within the range of dates it is reviewing, it will produce the error. This is expected behavior. To resolve this, you’ll want to utilize an IFERROR() function as proposed by Andree.
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Answers
-
Try something like this.
=COUNTIF([Request Date]:[Request Date, IFERROR(MONTH(@cell), 0) = 10)
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
When the MONTH() function contains a blank cell within the range of dates it is reviewing, it will produce the error. This is expected behavior. To resolve this, you’ll want to utilize an IFERROR() function as proposed by Andree.
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Thank you very much Andree
I tried this as well, but it returns 0 indicating indeed that @cell returns an error.
I'm puzzled I must say.
Thanks a lot and have a great day.
Raoul
-
Happy to help!
Strange!
I'd be happy to take a quick look.
Can you maybe share the sheet(s)/copies of the sheet(s)? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@workbold.com)
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thank you very much Andree & Mark
It is working. I was not aware of the error in case of blank cell.
Again thanks a lot :)
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 446 Global Discussions
- 144 Industry Talk
- 478 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!