T Tech56 Member Jan 28, 2020 #1 Hi, I have names in column A and would like to count the number of times "Bob" occurs but not "Bobby" is this possible? Thanks
Hi, I have names in column A and would like to count the number of times "Bob" occurs but not "Bobby" is this possible? Thanks
AliGW Well-Known Member Jan 28, 2020 #2 Yes. However, there's not enough information: will there be other text in the cells or just the names?
Yes. However, there's not enough information: will there be other text in the cells or just the names?
T Tech56 Member Jan 28, 2020 #3 There will be names only but in different formats. Bob, Jones Jones, Bob Bobby Jones Jones, A. Bob If I need to I can attach a file Thank you
There will be names only but in different formats. Bob, Jones Jones, Bob Bobby Jones Jones, A. Bob If I need to I can attach a file Thank you
B bosco_yip Excel Ninja Jan 29, 2020 #4 1] Criteria "Bob" in C2 2] In D2, formula : =SUMPRODUCT(0+ISNUMBER(SEARCH(" "&C2&","," "&A2:A5&","))) Regards
1] Criteria "Bob" in C2 2] In D2, formula : =SUMPRODUCT(0+ISNUMBER(SEARCH(" "&C2&","," "&A2:A5&","))) Regards
Juniad Active Member Jan 29, 2020 #5 bosco_yip said: 1] Criteria "Bob" in C2 2] In D2, formula : =SUMPRODUCT(0+ISNUMBER(SEARCH(" "&C2&","," "&A2:A5&","))) View attachment 65245 Regards Click to expand... It is not counting the Bob if name something like this Bobby Bob Khan
bosco_yip said: 1] Criteria "Bob" in C2 2] In D2, formula : =SUMPRODUCT(0+ISNUMBER(SEARCH(" "&C2&","," "&A2:A5&","))) View attachment 65245 Regards Click to expand... It is not counting the Bob if name something like this Bobby Bob Khan
B bosco_yip Excel Ninja Jan 29, 2020 #6 Juniad said: It is not counting the Bob if name something like this Bobby Bob Khan Click to expand... Then, adding a SUBSTITUTE function and formula become : =SUMPRODUCT(0+ISNUMBER(SEARCH(" "&C2&" "," "&SUBSTITUTE(A2:A6,",",)&" "))) Regards
Juniad said: It is not counting the Bob if name something like this Bobby Bob Khan Click to expand... Then, adding a SUBSTITUTE function and formula become : =SUMPRODUCT(0+ISNUMBER(SEARCH(" "&C2&" "," "&SUBSTITUTE(A2:A6,",",)&" "))) Regards