My countifs statement now working
I am receiving an #INVALID DATE TYPE for the following countifs statement:
My year column is a formula for =year on the Request Date. I have used this in several of my other sheets just fine, but now I am getting an error. =COUNTIFS([Request Status]:[Request Status], "Locks Issued", Year:Year, Year#) - the first part works just fine, but then I add the year and it does not work.
Best Answer
-
Hi,
I hope you're well and safe!
Try something like this.=COUNTIFS([Request Status]:[Request Status], "Locks Issued", Year:Year, IFERROR(YEAR(@cell), 0) = Year#)
Did that work/help?
I hope that helps!
Be safe, and have a fantastic day!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅ Did my comment(s) help/answer your question or solve your problem? Please support the Community and me by marking it - Insightful 💡- Vote Up ⬆️ - Aweseome ❤️ - or/and as the accepted answer. It will make it easier for others to find a solution or help to answer! I appreciate it, thanks!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.
Answers
-
=COUNTIFS([Request Status]:[Request Status], "Locks Issued", Year:Year, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))
You can also just replace the [Year]:[Year] with [Request Date]:[Request Date] - no need for a separate column for year.
Make sure the columns are 'Date'
Jamie
-
Please mark as solved or add Insightful, Vote Up or Awesome if this helped, this helps me!
-
Hi,
I hope you're well and safe!
Try something like this.=COUNTIFS([Request Status]:[Request Status], "Locks Issued", Year:Year, IFERROR(YEAR(@cell), 0) = Year#)
Did that work/help?
I hope that helps!
Be safe, and have a fantastic day!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅ Did my comment(s) help/answer your question or solve your problem? Please support the Community and me by marking it - Insightful 💡- Vote Up ⬆️ - Aweseome ❤️ - or/and as the accepted answer. It will make it easier for others to find a solution or help to answer! I appreciate it, thanks!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
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!