Contains formula not picking up text
Hi,
I have this contains formula that searches for M&E and im not sure why its not working.
Could someone please point me to where im going wrong.
Thanks,
Liam
Best Answer
-
The problem is with the range portion of the CONTAINS function. Try using "@cell" exactly as I have it.
=COUNTIFS([Primary Column]1:[Primary Column]5, CONTAINS("M&E", @cell))
@cell tells the formula to look across the previously specified range and evaluate on a cell by cell basis. When you specify "[Primary Column]1" in that portion, you are telling the CONTAINS function to only look at [Primary Column]1 instead of the entire range already established.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Try this instead:
=COUNTIFS([Primary Column]1:[Primary Column]5, CONTAINS("M&E", @cell))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Hi Paul,
Unfortunately that didn't work for me.
Liam
-
I tested, and it worked for me. Can you provide the EXACT formula that shows what you updated?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
=COUNTIFS([Primary Column]1:[Primary Column]5, CONTAINS("M&E", [Primary Column]1))
I used the one you provided.
-
The problem is with the range portion of the CONTAINS function. Try using "@cell" exactly as I have it.
=COUNTIFS([Primary Column]1:[Primary Column]5, CONTAINS("M&E", @cell))
@cell tells the formula to look across the previously specified range and evaluate on a cell by cell basis. When you specify "[Primary Column]1" in that portion, you are telling the CONTAINS function to only look at [Primary Column]1 instead of the entire range already established.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Ah yeah, thank you for your help, this works great :)
-
Happy to help! 👍️
Please don't forget to flag the most appropriate response(s) as "helpful". This way others looking for a similar solution can know that one may be found here.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
I have accepted the answer and clicked on the insightful option but there is no "helpful" option when i click on the flag.
-
It may have been updated. It used to be that it asked if the question was "helpful" and that is what flagged it as "Accepted". I had typed that up before I got the notification that you had accepted the answer, so you ended up getting it anyway. Haha.
Either way... Feel free to come back to the Community if you have anymore questions!
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Haha, no worries, thanks will do :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!