CONTAINS not finding match in second sheet
Looking to create a count of the number of times a name appears. in another sheets column. I keep getting a false result.
=IF(CONTAINS({EE Schedule Range 3}, {EE Schedule Range 2}), "Yes", "No")
Range 3 is with in Range 2 on second sheet. For this example Range 2 is a list of names and Range 3 is one of the cells in that list.
Where am I going wrong.
Answers
-
You should be able to use a COUNTIF to get this data.
=COUNTIF({EE Schedule Range 2},{EE Schedule Range 3})
EE Schedule Range 2 = Column Range to Search
EE Schedule Range 3 = Single Name to look for
-
That did work. Returned a number. I then can do a compare to 0.
Now, Happen to know why did the above IF statement not work?
-
At a little higher level I am trying to get this type of function to work. It still returns nothing. I believe it has todo with the CONTAINS not returning a True value.
=JOIN(COLLECT({Task Date Range}, {Name List}, CONTAINS("Omer", @cell)), ", ")
-
Think I figured part of the issue out.
This works:
=JOIN(COLLECT({Task Date Range}, {Name List}, ="omer"), ", ")
I think because collect is looking for the "Criterion" Not a true, false statement per say.
But Contains would be a better solution in my case because "=" looks for a complete match which may not be the case. I also wish to add, If I use a local sheet data range the function I first asked about works. So am I missing something when I use a remote sheet data range without []:[] format?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!