IF and Search function combined

Copper Contributor

Hi all,


I've been attempting to create a formula to help me streamline a process for what feels like forever. 


I want to search for text (from a list of texts) within a cell, and then if that text exists, return that text. The list of texts is approx 150 names long.


So for example, say the following cells have the following text:


A1 - "Car Insurance Joe Bloggs Jan-18"

A2 - "Salary recharge J Shaw Dec-17"


I want to insert a formula in B1 that says if any name from my given list (which is a list of names, and has 'bloggs' and 'Shaw' in it (with another 150 names in that list) appears in the selected cell (i.e. A1), then return the value that matches, i.e. 'Bloggs'.


Does anybody know if this is possible? I've been trying for hours and can't work it out! I get close, which is why I'm adamant it's possible!



Many thanks in advance :)




2 Replies
Thanks so much Sergei - this worked perfectly! I regret wasting hours and not posting here sooner now :) Thanks again Abi