Home » excel » excel – If column F contains string, then return string in column E

excel – If column F contains string, then return string in column E

Posted by: admin May 14, 2020 Leave a comment

Questions:

First, thank you all for your help! I have been googling an answer but haven’t found one yet. So for example:

Spreadsheet

In the image above, I am trying to populate column K with the name of the person in column E.

The way I was thinking about this was using the name in column I to search for in column F. If found then return name in column E.

So K1 would return May, K2 would return May AND Jess, K3 would return Jess.

How would I do this? I am working in Google Sheets if that is helpful or not.

Thank you!

How to&Answers:

Good question, use something like:

=IF(REGEXMATCH(F1, I1), CONCATENATE(F1, " AND ", I1), I1)

If you don’t want to handle the else condition, just substitute the last argument with the original searched cell id.

I hope this helps!