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
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!