Count if it contains
I have an action log - allocations vary between one person only and multiple persons.
Want to do a count (in a separate file) of allocations to each team member. This formula:
=COUNTIF({Action Log Range 3}, Name1) counts only those actions allocation to ONLY that team member.
--- Action Log Range 3 = action allocated to...; Name1 = names listed in my sheet with formulae ---
How do I change the formula to say that in the Action Log Range, if it contains the name listed in my sheet, then it counts it as one?
Best Answer
-
Are you using a contact type column? If so then you would need to use a FIND instead of CONTAINS.
=COUNTIF({Action Log Range 3}, FIND(Name1, @cell) > 0)
Answers
-
Try using this...
=COUNTIF({Action Log Range 3}, CONTAINS(Name1, @cell))
-
My answer changes from 3 to 0 - I know that it should be 5 if it counts all actions allocated individually + as part of the group.
Thanks - any other ideas for me please?
-
Are you using a contact type column? If so then you would need to use a FIND instead of CONTAINS.
=COUNTIF({Action Log Range 3}, FIND(Name1, @cell) > 0)
-
Thank you Paul.... very, very much!
-
Happy to help! 👍️
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!