Count "text" if the status is "Doing"
I'd like a way to count Theme column (Text Column) if "IVR" appears, AND if the Status Column (Dropdown column) is either "Backlog" or "To Do" or "Doing"
I can get a simple countif formula to work, but can't figure out how to add a second criteria based on status
i tried ones along the lines of
=COUNTIF(AND(Theme:Theme, "IVR"), IF(Status:Status, "Doing"))
=COUNTIFS(Theme:Theme, ="IVR", Status:Status, ="To Do", "Doing", "Backlog")
Best Answers
-
I'm sure there is a more eloquent/simplified way of doing this AND if I understood your question correctly-- here is what I came up with.
=SUM(COUNTIFS(Theme:Theme, "IVR", Status:Status, "Backlog"), COUNTIFS(Theme:Theme, "IVR", Status:Status, "To Do"), COUNTIFS(Theme:Theme, "IVR", Status:Status, "Doing"))
-
Yes, thank you. Using yours as a base, I was able to tweak it a bit and remove each "Theme:Theme, "IVR" section; still have it work.
=SUM(COUNTIFS(Theme:Theme, "IVR", Status:Status, "Backlog"), COUNTIFS(Status:Status, "To Do"), COUNTIFS(Status:Status, "Doing"))
Then that got me thinking further to attempt to simplify it with @cell - which worked as well
=COUNTIFS(Theme:Theme, "IVR", Status:Status, OR(@cell = "Backlog", @cell = "To Do", @cell = "Doing"))
Thanks much; What you came up with helped me have a jumping off point. I was going in circles before.
Answers
-
I'm sure there is a more eloquent/simplified way of doing this AND if I understood your question correctly-- here is what I came up with.
=SUM(COUNTIFS(Theme:Theme, "IVR", Status:Status, "Backlog"), COUNTIFS(Theme:Theme, "IVR", Status:Status, "To Do"), COUNTIFS(Theme:Theme, "IVR", Status:Status, "Doing"))
-
Yes, thank you. Using yours as a base, I was able to tweak it a bit and remove each "Theme:Theme, "IVR" section; still have it work.
=SUM(COUNTIFS(Theme:Theme, "IVR", Status:Status, "Backlog"), COUNTIFS(Status:Status, "To Do"), COUNTIFS(Status:Status, "Doing"))
Then that got me thinking further to attempt to simplify it with @cell - which worked as well
=COUNTIFS(Theme:Theme, "IVR", Status:Status, OR(@cell = "Backlog", @cell = "To Do", @cell = "Doing"))
Thanks much; What you came up with helped me have a jumping off point. I was going in circles before.
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
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!