What formula do I use to count a specific text when multiple text values are in a cell?
I have a column with a drop down where you can select multiple options for one cell. It is tracking who is affected so it can list multiple departments. I want to track by department so I am trying to figure out how to count only a specific word in a cell when there are multiple valves in the cell. The formula I am using keeps giving me zero. What am I missing? Any help you can provide is greatly appreciated!! 😊
=COUNTIFS({ANC F&E Pre-OR Issue Entry & Tracking 2 Range 1}, AND(CONTAINS("WOA", {ANC F&E Pre-OR Issue Entry & Tracking 2 Range 1})))
Best Answer
-
You don't need the AND function, and the "range" in the CONTAINS should be "@cell". I also suggest using HAS when evaluating a multi-select type column.
=COUNTIFS({ANC F&E Pre-OR Issue Entry & Tracking 2 Range 1}, HAS(@cell, "WOA"))
Answers
-
You don't need the AND function, and the "range" in the CONTAINS should be "@cell". I also suggest using HAS when evaluating a multi-select type column.
=COUNTIFS({ANC F&E Pre-OR Issue Entry & Tracking 2 Range 1}, HAS(@cell, "WOA"))
-
@Paul Newcome Thank you. :) I am highlighting an entire column, not a cell which is why its listed like that. Is there something else I need to do for a column formula?
-
Right. The @cell tells the formula to run the HAS function on a cell by cell basis through the previously established range.
-
Thank you so much @Paul Newcome! That worked. You are a lifesaver. 😊
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!