Counting items within a cell
Hi team,
I am wanting to keep track of why people are exiting the company on a monthly basis.
I have the following formula which works perfectly if the exiting employee only selects ONE reason why they are leaving -
=COUNTIFS({HR-559 Exit Interview Range 1}, OR(@cell = "Better job"), {HR-559 Exit Interview Range 2}, AND(IFERROR(MONTH(@cell), 0) = Month@row, IFERROR(YEAR(@cell), 0) = Year@row))
But if within that cell they selected "Better job" and "Relocation" it would return 0 instead of 1 for the Better Job category.
How do I get the formula to count "Better job" when there are multiple options selected within the cell?
Best Answer
-
Hello @Josephine
The HAS or CONTAINS functions are functions to use when dealing with multiselect cells (cells that contain multiple values in same cell)
=COUNTIFS({HR-559 Exit Interview Range 1}, CONTAINS("Better job",@cell), {HR-559 Exit Interview Range 2}, AND(IFERROR(MONTH(@cell), 0) = Month@row, IFERROR(YEAR(@cell), 0) = Year@row))
Will this work for you?
Kelly
Answers
-
Hello @Josephine
The HAS or CONTAINS functions are functions to use when dealing with multiselect cells (cells that contain multiple values in same cell)
=COUNTIFS({HR-559 Exit Interview Range 1}, CONTAINS("Better job",@cell), {HR-559 Exit Interview Range 2}, AND(IFERROR(MONTH(@cell), 0) = Month@row, IFERROR(YEAR(@cell), 0) = Year@row))
Will this work for you?
Kelly
-
Thank you! That has worked perfectly!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!