How to count a value with 2 range and criterion
I'm trying to count all status that has "Change Complete" at HR Status Column within a specific month, say for the month of July from another column "Effective Date" (with date column property) and below was my formula but getting incorrect argument set error.
=COUNTIF([HR Status]:[HR Status], "Change Complete", [Effective Date]:[Effective Date], =MONTH(7))
Thank you in advance for the help.
Best Answer
-
Great to hear! The MONTH() function returns the month of the calendar year, so in the case of 7, it's returning any date that has the month of July.
You can get dynamic, depending on your use case, and use MONTH(@cell)=MONTH(TODAY()), and it would then always count the current month.
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
Answers
-
You'll want to use COUNTIFS to catch multiple criteria, so it would look something like:
=COUNTIFS([HR Status]:[HR Status], "Change Complete", [Effective Date]:[Effective Date], MONTH(@cell)=7
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
-
It worked!
I'm still learning how to use formulas with multi criteria, for this one can you please confirm that the value "7" on this part pertains to a specific month? MONTH(@cell)=7
-
Great to hear! The MONTH() function returns the month of the calendar year, so in the case of 7, it's returning any date that has the month of July.
You can get dynamic, depending on your use case, and use MONTH(@cell)=MONTH(TODAY()), and it would then always count the current month.
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
-
Awesome, thank you so much @Jason Tarpinian !
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!