Help with a Countifs Formula
Hi All,
I am trying to count orders if they fall within the current month/year indicated on the metric sheet (which updates automatically monthly) and are not marked cancelled. I am getting an invalid data type error and cannot figure out why. Can anyone help?
=COUNTIFS({Alkermes - Archive Production Log | Cancelled}, false, {Archive Production Log | QAD ATS}, MONTH(@cell) = [Month #]@row, {Archive Production Log | QAD ATS}, YEAR(@cell) = Year@row)
Best Answer
-
Hi @Amy D
I hope you're well and safe!
Try updating your formula to include IFERROR for the MONTH and YEAR.
Try something like this.
=COUNTIFS({Alkermes - Archive Production Log | Cancelled}, false, {Archive Production Log | QAD ATS}, IFERROR(MONTH(@cell),0) = [Month #]@row, {Archive Production Log | QAD ATS}, IFERROR(YEAR(@cell),0) = Year@row)
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 support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. 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.
Answers
-
Hi @Amy D
I hope you're well and safe!
Try updating your formula to include IFERROR for the MONTH and YEAR.
Try something like this.
=COUNTIFS({Alkermes - Archive Production Log | Cancelled}, false, {Archive Production Log | QAD ATS}, IFERROR(MONTH(@cell),0) = [Month #]@row, {Archive Production Log | QAD ATS}, IFERROR(YEAR(@cell),0) = Year@row)
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 support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. 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.
-
-
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!