COUNTIFS with MONTH
Hi all,
I am trying to create a formula in my sheet summary that calculates total number of tests passed for a given month. I have already created syntax for "Total Samples Passed Today", but the month criteria keeps coming back as an error when I add it in. :( Total samples passed today looks like this: =COUNTIFS([Retest Result]:[Retest Result], "Pass", [Retest Date]:[Retest Date], @cell = TODAY()) + COUNTIFS(Results:Results, "Pass", [Final Date]:[Final Date], @cell = TODAY())
Best Answer
-
Hi @Megan T
Try something like this.
=COUNTIFS([Retest Result]:[Retest Result]; "Pass"; [Retest Date]:[Retest Date]; IFERROR(MONTH(@cell); 0) = MONTH(TODAY())) + COUNTIFS(Results:Results; "Pass"; [Final Date]:[Final Date]; IFERROR(MONTH(@cell); 0) = MONTH(TODAY()))
The same version but with the below changes for convenience.
=COUNTIFS([Retest Result]:[Retest Result], "Pass", [Retest Date]:[Retest Date], IFERROR(MONTH(@cell), 0) = MONTH(TODAY())) + COUNTIFS(Results:Results, "Pass", [Final Date]:[Final Date], IFERROR(MONTH(@cell), 0) = MONTH(TODAY()))
Depending on your country/region, you'll need to exchange the comma to a period and the semi-colon to a comma.
Did that work?
I hope that helps!
Be safe and have a fantastic weekend!
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.
Answers
-
Hi @Megan T
Try something like this.
=COUNTIFS([Retest Result]:[Retest Result]; "Pass"; [Retest Date]:[Retest Date]; IFERROR(MONTH(@cell); 0) = MONTH(TODAY())) + COUNTIFS(Results:Results; "Pass"; [Final Date]:[Final Date]; IFERROR(MONTH(@cell); 0) = MONTH(TODAY()))
The same version but with the below changes for convenience.
=COUNTIFS([Retest Result]:[Retest Result], "Pass", [Retest Date]:[Retest Date], IFERROR(MONTH(@cell), 0) = MONTH(TODAY())) + COUNTIFS(Results:Results, "Pass", [Final Date]:[Final Date], IFERROR(MONTH(@cell), 0) = MONTH(TODAY()))
Depending on your country/region, you'll need to exchange the comma to a period and the semi-colon to a comma.
Did that work?
I hope that helps!
Be safe and have a fantastic weekend!
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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!