Countifs when there are different answer options
Hello,
I want to collect data on the number of times certain machines are reported between certain dates Here's is the basic formula that works.
=COUNTIFS({NS Repair Detail Report Type}, "OOB", {NS Repair Detail Machine Model and Description}, "Machine Name 1", {NS Repair Detail Activity Date}, >={Sept 1 2022}, {NS Repair Detail Activity Date}, <={Sept 30 2022}
This gives the the answer. However, the {NS Repair Detail Machine Model and Description} could be machine 1, machine 2, machine 3, etc. I have a single select drop down that people choose.
I thought this might be the formula, but it isn't working:
=COUNTIFS({NS Repair Detail Report Type}, "OOB", {NS Repair Detail Machine Model and Description}, "Machine 1", {NS Repair Detail Activity Date}, >={Oct 1 2022}, {NS Repair Detail Activity Date}, <={Oct 31 2022} + COUNTIFS({NS Repair Detail Report Type}, "OOB", {NS Repair Detail Machine Model and Description}, "Machine 2", {NS Repair Detail Activity Date}, >={Oct 1 2022}, {NS Repair Detail Activity Date}, <={Oct 31 2022}))
I have a whole list that I'd like to count for each month under main categories. I know there must be an easy way to do this. Please help! Thanks!
Answers
-
=COUNTIFS({NS Repair Detail Report Type}, "OOB", OR({NS Repair Detail Machine Model and Description}="Machine 1", {NS Repair Detail Machine Model and Description}="Machine 2", {NS Repair Detail Machine Model and Description}="Machine 3"), {NS Repair Detail Activity Date}, >={Oct 1 2022}, {NS Repair Detail Activity Date}, <={Oct 31 2022})
Use an OR to define multiple criteria variables
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
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!