I have a similar question.
- I need to extract EACH value within a comma-delimited series .
- I do not know exactly how many items will appear within a series, but I know it will always be 10 or fewer.
- I do not know the number of characters of any of the values.
Example:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]COL A[/TD]
[/TR]
[TR]
[TD]Apple, Banana, Pear[/TD]
[/TR]
[TR]
[TD]Banana, Watermelon, Grape[/TD]
[/TR]
[TR]
[TD]Grape, Lemon, Watermelon, Kiwi[/TD]
[/TR]
[TR]
[TD]Lemon, Lime, Kiwi, Pear[/TD]
[/TR]
</tbody>[/TABLE]
I'd like the following to be returned in columns B through whatever.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]COL A[/TD]
[TD]COL B[/TD]
[TD]COL C[/TD]
[TD]COL D[/TD]
[TD]COL E[/TD]
[TD]COL F[/TD]
[/TR]
[TR]
[TD]Apple, Banana, Pear[/TD]
[TD]Apple[/TD]
[TD]Banana[/TD]
[TD]Pear[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Banana, Watermelon, Grape[/TD]
[TD]Banana[/TD]
[TD]Watermelon[/TD]
[TD]Grape[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Grape, Lemon, Watermelon, Kiwi[/TD]
[TD]Pear[/TD]
[TD]Lemon[/TD]
[TD]Watermelon[/TD]
[TD]Kiwi[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Lemon, Lime, Kiwi, Pear[/TD]
[TD]Lemon[/TD]
[TD]Lime[/TD]
[TD]Kiwi[/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I figure I'll need to use the FIND(), MID(), and TRIM() functions, but I can't seem to figure it out.
Thanks,
Shawn