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
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!