Forum Discussion
EdnaJohnson
Jan 10, 2024Copper Contributor
Match part of a cell and return value
I need to see if a cell matches any part of another cell in another sheet and return values based on if it's true or not. I have tried XLookup, CountIF, If, and many others.
I believe it should be similar to:
=IF(TableName!B:B=TableName[ColumnName],"Y","N")
but I get the spill error. I am thinking if I added some type of any clause, it would limit the output?
Thanks for any help or suggestions!!!
6 Replies
Is TableName both a sheet and a table on another sheet?
Perhaps
=IF(COUNTIF(TableName!B:B, TableName[@ColumnName]), "Y", N")
or
=IF(COUNTIF(TableName!B:B, "*"&TableName[@ColumnName]&"*"), "Y", N")
- EdnaJohnsonCopper Contributorbetween the two sheets in the same spreedsheet
I'm afraid I don't understand.