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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!