Excel Formula Help

New Contributor

Hello, I am looking for a specific formula to find if a value found in 1 cell is present in another cell that may have multiple values in it, separated by comma.


Example. In cell B2, the value says "Finance", and in cell C2, the value reads "Cancer, Finance, Food"... I would like to run this on a list of 5,000 rows, to see if the value found in B2 is found somewhere in C2. 


Thank you!

3 Replies
best response confirmed by asripinyo (New Contributor)


It could be



=IF(COUNTIF(C2, "*"&B2&"*"), "here", "not here")


Thank you very much, that worked!

@asripinyo , glad it helped