Excel Parse memo get few sentences into different columns -


i have memo field lets in a1 need extract couple sentences different columns.

there might 50 sentences , 1 matches, need extract beg key word end key word, in-between 2 keywords.

there might 1 of 4 keywords looking in memo field, or 2 in order, or none @ in memo field. if there keyword there start keyword , end key word.

key fields memo : php , hcp , pcp , part

if php exists include characters until hcp, else include until pcp , else include until part until “ dea ” if php doesn’t exists go hcp, include text until pcp, if part

please consider following solution:

b1 =iferror(trim(mid(a1,find("php",a1)+3,iferror(find("hcp",a1),iferror(find("pcp",a1),iferror(find("part",a1),0)))-find("php",a1)-3)),"") 

hope serves purpose. cheers,


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -