Kasper Madsen
New Member
- Joined
- Oct 21, 2011
- Messages
- 9
Hello everyone!
I have been using loads of good advice from this forum by reading about other people's Excel problems - and now I've arrived at a problem I can't seem to find a previous solution to:
I have a column of data, with each cell containing from 0 to 6 strings, separated by ", " (a comma and a space).
I need to extract each of the words between the commas and put one each into the following 6 columns in my spreadsheet (basically the same way as the 'Text to Columns'-button, but this NEEDS to be automated).
I have attempted something along the lines of inserting this formula in each of the following columns:
Column 1
=IF.ERROR(MID(A2,1,(FIND(",",A2,1)-1)),"")
Column 2
=IF.ERROR(MID(A2;FIND(",";A2;FIND(",";A2;1))+2;FIND(",";A2)-1);"")
...
But obviously this only works if the strings are all the same length (which they are not).
Can anyone help me arrive at a solution? Any assistance will be greatly appreciated!
Sample data:
A2
Svanemærke, Astma, Øko-Tex
A3
Svanemærke
A4
Svanemærke, Øko-Tex
I have been using loads of good advice from this forum by reading about other people's Excel problems - and now I've arrived at a problem I can't seem to find a previous solution to:
I have a column of data, with each cell containing from 0 to 6 strings, separated by ", " (a comma and a space).
I need to extract each of the words between the commas and put one each into the following 6 columns in my spreadsheet (basically the same way as the 'Text to Columns'-button, but this NEEDS to be automated).
I have attempted something along the lines of inserting this formula in each of the following columns:
Column 1
=IF.ERROR(MID(A2,1,(FIND(",",A2,1)-1)),"")
Column 2
=IF.ERROR(MID(A2;FIND(",";A2;FIND(",";A2;1))+2;FIND(",";A2)-1);"")
...
But obviously this only works if the strings are all the same length (which they are not).
Can anyone help me arrive at a solution? Any assistance will be greatly appreciated!
Sample data:
A2
Svanemærke, Astma, Øko-Tex
A3
Svanemærke
A4
Svanemærke, Øko-Tex