SOLVED

Searching list of names within a cell

Copper Contributor

Searching list of names within a cell

Hi there,

I would need to produce a scorecard for the company. One of the criteria is google review.

What I had done:

Using "Name Manager" to assign all the staff name as StaffName.

Using below formula to search the name within the comment cell

``=IFERROR(INDEX(StaffName,MATCH(TRUE,(ISNUMBER(SEARCH(StaffName,T2,1))),0),1),"") ``

Above formula got me the name and I perform count if to find out how many comments each staff got.

The problem I'm facing is there are some comments mentioning multiple names. For example "Mary, Peter, John all did a great job"

The result I'm looking for is Mary, Peter and John all gets one count for this comment. How can I achieve that?

Thanks in advance for your time and patience.

Bowen

3 Replies

Re: Searching list of names within a cell

@Bowen0520

Could you make a sample workbook (without sensitive data) available via OneDrive, Google Drive, Dropbox or similar?

best response confirmed by Bowen0520 (Copper Contributor)
Solution

Re: Searching list of names within a cell

Using 365

``````= LET(
BYROW(isMentioned, LAMBDA(crit, SUM(crit)))
)``````

Using legacy Excel

``````= MMULT(
)``````

entered with CSE.

Re: Searching list of names within a cell

A big THANK YOU for @Peter Bartholomew

1 best response

Accepted Solutions
best response confirmed by Bowen0520 (Copper Contributor)
Solution

Re: Searching list of names within a cell

Using 365

``````= LET(
BYROW(isMentioned, LAMBDA(crit, SUM(crit)))
)``````

Using legacy Excel

``````= MMULT(