Justin, Thank you for helping for first one. I have a last field that I need help with it. Its way over my head. I hope you can find some time to look in to it. Thank you.
I would like to extract all the shipping information from the HTML Option string. Some Row has more options then others some time 4 or 5 but the structure is all the same.
BEFORE:
[quote=“Thang_Nguyen, post:6, topic:26153, full:true”]
Justin, Thank you for helping for first one. I have a last field that I need help with it. Its way over my head. I hope you can find some time to look in to it. Thank you.
I would like to extract all the shipping information from the HTML Option string. Some Row has more options then others some time 4 or 5 but the structure is all the same.
BEFORE:
<option value="03" selected="selected">Ground Shipping - $5.00</option><option value="12">3 Day Shipping Service - $16.24</option><option value="02">2 Day Air Shipping - $16.64</option><option value="13">Next Day Shipping by 5pm - $17.59</option><option value="01">Next Day Shipping by 12 noon - $17.96</option><option value="14">Next Day Early A.M. - $73.63</option>
AFTER 1 Field:
Ground Shipping - $5.00
3 Day Shipping Service - $16.24
2 Day Air Shipping - $16.64
Next Day Shipping by 5pm - $17.59
Next Day Shipping by 12 noon - $17.96
Next Day Early A.M. - $73.63
My results (two versions, one of which marks the selected option with :white_check_mark:

The formula for {Clean 1}:
TRIM(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
Name, " selected=\\"selected\\"", ""
), "1\\">", ""
), "2\\">", ""
), "3\\">", ""
), "4\\">", ""
), " value=\\"0", ""
), " value=\\"1", ""
), "<option", ""
), "</option>", "\n"
)
)
And {Clean 2}:
TRIM(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
SUBSTITUTE(
Name, " selected=\\"selected\\">", ">✅ "
), "1\\">", ""
), "2\\">", ""
), "3\\">", ""
), "4\\">", ""
), " value=\\"0", ""
), " value=\\"1", ""
), "<option", ""
), "</option>", "\n"
)
)