CountIFS contact is in a contact list
=COUNTIFS({TEST Range 1}, ="*Name*", {TEST Range 6}, ="DO")
Hi all, this is a helper sheet used to get the counts of different conditions. Test Range 1 is a contact list that can contain multiple contacts, how can i make it so that i can check if "Name" is in the list.
It is currently returning 0 when it should be finding 1 row.
Best Answer
-
Try a HAS function.
=COUNTIFS({TEST Range 1}, HAS(@cell, "Name"), {TEST Range 6}, @cell = "DO")
Answers
-
Try a HAS function.
=COUNTIFS({TEST Range 1}, HAS(@cell, "Name"), {TEST Range 6}, @cell = "DO")
-
@Paul Newcome Yep that did it thanks! I also tried using CONTAINS, but it would always return 0 as well. Do you know why contains doesn't work in this situation / when to use has vs contains?
-
CONTAINS just doesn't work on contact type columns. I believe it may have to do with the way the data is stored on the back-end vs how it is displayed, but that's just a guess on my part.
HAS is designed specifically for multi-select dropdowns and contact type columns. It is used to identify as specific selection as opposed to a certain string.
Lets say you have a multi-select dropdown column with these possible selections:
Let
Level
Le
Slew
If you use CONTAINS for "le", It would count for all of those because they all contain "le". HAS on the other hand would only count rows where "Le" specifically was selected and ignore the others.
If you are familiar with filters whether that be in sheets, automations, or reports, think of CONTAINS as exactly that "Contains", but HAS would be more like "Is one of".
Help Article Resources
Categories
Check out the Formula Handbook template!