Avatar of Lia Nungaray
Lia Nungaray
Flag for United States of America

asked on 

How to extract data from Excel

I have the following text stored in one cell in Excel:

<ns1:FieldOptionList xmlns:ns1="http://alerewellnessportal.com/xsds/UserManagement.xsd"> <OptionList> <OptionName>Employee</OptionName> <OptionValue>25</OptionValue> <SPOptionName>Empleado</SPOptionName> <SPOptionValue>25</SPOptionValue> </OptionList><OptionList> <OptionName>Spouse</OptionName> <OptionValue>11</OptionValue> <SPOptionName>Cónyuge</SPOptionName> <SPOptionValue>11</SPOptionValue> </OptionList> </ns1:FieldOptionList>

I need to extract whatever text is between <OptionName> and </OptionName> and separate each item with a comma. So, for the above text, I would get:

Employee, Spouse

Thanks,
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
byundt

8/22/2022 - Mon