Formula to return count for conditions
I am using this formula to count the number of assets for a particular month. Works fine.
=COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], IFERROR(MONTH(@cell), 0) = 2)
Now I need to have the formula account for a new year. I tried this and I'm getting INCORRECT AREGUEMENT SET.
=COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], =IFERROR(YEAR(@cell), 0) = 2021, IFERROR(MONTH(@cell), 0) = 2)
What am I doing wrong?
Thanks!
Best Answer
-
Hi @Jeana
Hope you are fine, try the following formula
=COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], YEAR(@cell) = 2021, [End Date]:[End Date], MONTH(@cell) = 2)
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Answers
-
Hi @Jeana
Hope you are fine, try the following formula
=COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], YEAR(@cell) = 2021, [End Date]:[End Date], MONTH(@cell) = 2)
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Hi @Jeana
I hope you're well and safe!
Try this.
=COUNTIFS([Next Step Calc]:[Next Step Calc], "All Complete", [End Date]:[End Date], IFERROR(YEAR(@cell), 0) = 2021, IFERROR(MONTH(@cell), 0) = 2)
Did that work/help?
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.
-
Hope you both are well too.
Thank you both, this worked!
Jeana
-
You are welcome
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
I'm excellent!
You're more than welcome!
✅Remember! 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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 430 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!