Ok given the data so far :-
KNUD J & MARIA L HOSTRUP
HOSTRUP, KNUD J & MARIA L
Sarah Ann Little Junior
Jenners,Ann Sally
HernaraMartin,Harry & Marie Anne & Ann Sally
Would need 3 formulas to split them up :-
=CHOOSE((LEN(B2)-LEN(SUBSTITUTE(B2,"&","")))*3+LEN(B2)-LEN(SUBSTITUTE(B2,",",""))+1,B2,B2,"C",RIGHT(B2,LEN(B2)-SEARCH("@",SUBSTITUTE(B2," ","@",LEN(B2)-LEN(SUBSTITUTE(B2," ","")))))&", "&LEFT(B2,FIND("&",B2&"&")-1),LEFT(B2,FIND(",",B2&",")-1)&", "&TRIM(SUBSTITUTE(SUBSTITUTE(B2,LEFT(B2,FIND(",",B2&",")),""),RIGHT(B2,LEN(B2)-FIND("&",B2&"&")+1),"")),"F","G",LEFT(B2,FIND(",",B2&",")-1)&", "&TRIM(SUBSTITUTE(SUBSTITUTE(B2,LEFT(B2,FIND(",",B2&",")),""),RIGHT(B2,LEN(B2)-FIND("&",B2&"&")+1),"")),"I")
=CHOOSE((LEN(B2)-LEN(SUBSTITUTE(B2,"&","")))*3+LEN(B2)-LEN(SUBSTITUTE(B2,",",""))+1,"","","C",RIGHT(B2,LEN(B2)-SEARCH("@",SUBSTITUTE(B2," ","@",LEN(B2)-LEN(SUBSTITUTE(B2," ","")))))&", "&SUBSTITUTE(RIGHT(B2,LEN(B2)-FIND("&",B2&"&")-1),RIGHT(B2,LEN(B2)-SEARCH("@",SUBSTITUTE(B2," ","@",LEN(B2)-LEN(SUBSTITUTE(B2," ",""))))),""),LEFT(B2,FIND(",",B2&",")-1)&","&RIGHT(B2,LEN(B2)-FIND("&",B2&"&")),"F","G",LEFT(B2,FIND(",",B2&",")-1)&","&LEFT(SUBSTITUTE(B2,LEFT(B2,FIND("&",B2)),""),FIND("&",SUBSTITUTE(B2,LEFT(B2,FIND("&",B2)),""))-1),"I")
=CHOOSE((LEN(B2)-LEN(SUBSTITUTE(B2,"&","")))*3+LEN(B2)-LEN(SUBSTITUTE(B2,",",""))+1,"","","C","","","F","G",LEFT(B2,FIND(",",B2&",")-1)&","&RIGHT(B2,LEN(B2)-FIND("&",SUBSTITUTE(B2,"&"," ",1))),"I")
Basically what we have is several cases where "," or "&" are present or not, combining these :-
=CHOOSE((LEN(B2)-LEN(SUBSTITUTE(B2,"&","")))*3+LEN(B2)-LEN(SUBSTITUTE(B2,",",""))+1
gives us choices based on the number which is unique for each of the above cases this then selects the correct formula for each case in each column.
you will notice that some choices in the formula have letters "C","F","G","I" these are so far unknown cases if you get the letter showing up just create a formula to get the correct result and paste it in the formula over the letter in quotes!
Please find attached the file I used to create the formulas, the part formulas are highlighted in yellow, along with the final formula!
Bookmarks