COUNTIFS with OR - Syntax Questions

I have a sheet that has a TARGET DATE and STATUS. I want a count of rows where the STATUS is either WIP or NEW and the DATE < Today. The goal is a count of rows that are overdue. I've been trying different variations of this formula.
=COUNTIFS({TARGET DATE}:{TARGET DATE}, < TODAY(), {STATUS}, or(@CELL = "New", @CELL = "WIP"))
I'm pretty sure it's a syntax issue, but I have not hit on the right combination.
Best Answer
-
Try.
=COUNTIFS([TARGET DATE]:[TARGET DATE], iferror(@cell <TODAY(),0), STATUS:STATUS, or(@cell = "New", @cell = "WIP"))
Did that work?
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({TARGET DATE}:{TARGET DATE}, iferror(@cell <TODAY(),0), {STATUS}, or(@cell = "New", @cell = "WIP"))
Try this and make sure to lowercase @cell
-
I hope you're well and safe!
To add to Samuel's excellent advice/answer.
Remove the second target date, :{TARGET DATE}
I hope that helps!
Be safe, and have a fantastic week!
Best,
AndrΓ©e StarΓ₯ | Workflow Consultant / CEO @ WORK BOLD
β Please support the Community by marking the post(s) that helped or answered your question or solved your problem with the accepted answer/helpful, Insightful/Vote Up/Awesome. 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.
-
Ahhhh thank you @AndrΓ©e StarΓ₯ !! Missed that one.
-
Happy to help! Easy to miss!
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.
-
Thanks for the help. I'm still having an issue - #INVALID REF. Based on the error message text, I tried replacing the { with [, but that did not work - got an #UNPARSABLE message.
Here is what I have now:
=COUNTIFS({TARGET DATE}, IFERROR(@cell < TODAY(), 0), {STATUS}, OR(@cell = "New", @cell = "WIP"))
Any suggestions would be appreciated.
-
Invalid Ref usually means your reference name in the curly brackets is wrong. Check the name of your cross sheet references to make sure they match "Target Date" and "Status"
-
Sorry, should have mentioned - this is all in one sheet - that's why I went to the brackets.
-
Then your ranges need to be [target date]:[target date], and status:status
No brackets needed on status
-
Try.
=COUNTIFS([TARGET DATE]:[TARGET DATE], iferror(@cell <TODAY(),0), STATUS:STATUS, or(@cell = "New", @cell = "WIP"))
Did that work?
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.
-
Andre & Samuel,
Thank you for your help. That last iteration worked!
Have a great rest of your day.
-
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
- 67.8K Get Help
- 474 Global Discussions
- 205 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!