Forum Discussion
JCountryman
Mar 09, 2023Copper Contributor
Cell has a list wrapped in html. Split list into 2 separated by special character
I have an excel file that has a list of items that are wrapped in html code. I would like to split it into 2 groups and move them into 2 different cells and separate the list with a special character...
Patrick2788
Mar 09, 2023Silver Contributor
Revised formulas:
Plan:
=LET(plan,TEXTAFTER(TEXTBEFORE(B2,$D$1),"</span><div><ul><li>"),SUBSTITUTE(SUBSTITUTE(plan,"</li><li>",">"),"</li></ul><div>",""))
Benefits:
=LET(benefits,TEXTAFTER(TEXTAFTER(B2,$D$1),"</div><div><ul><li>"),cleaned,SUBSTITUTE(benefits,"</li><li>",">"),TEXTBEFORE(cleaned,"</li>"))
JCountryman
Mar 09, 2023Copper Contributor
Patrick I appreciate your response. Instead of a list can we set it up so that it is all one line separated by >. See column C and 7. Highlighted in red. See attached
- Patrick2788Mar 09, 2023Silver ContributorYes, I've revised my post above with new formulas and a new workbook.
- JCountrymanMar 09, 2023Copper Contributor
Patrick Im not having much luck trying to emulate what you created. Could you please take a look
- peiyezhuMar 10, 2023Bronze Contributor