Flag Cell if Partial Text is Contained on Another Sheet

MRL
MRL ✭✭✭
edited 05/01/25 in Formulas and Functions

We have a column of text of names and companies on Sheets 1-10 that I want to compare to another Master Sheet that contains only the names. If a cell in Sheets 1-10 contains a name that is on Master Sheet, I want the row flagged. I'm using a helper column in the numerical sheets, and I can get it to work if it's an exact match of names. But if the numerical sheet has any additional text, it will not flag the row.

For example, if the name John Smith is on Master Sheet, and someone enters John Smith/Apple on Sheet 1, I want that row flagged on Sheet 1.

I've found partial success with these formulas on the Sheet 1 helper column:

=IF(CONTAINS([Name]@row, {Master Sheet range}), "Yes", "No")

=IF(COUNTIF({Master Sheet range}, [Name]@row) = "1", "true")

But they only work for exact matches. They only work if you enter John Smith on Sheet 1. If I enter John Smith/Apple, it returns no match.

Does anyone know how I can get it to identify partial matches between the two sheets?

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!