excelvbanoob420
New Member
- Joined
- Oct 5, 2022
- Messages
- 15
- Office Version
- 365
- Platform
- Windows
Hello,
I'm trying to solve a difficult problem of splitting data in a cell into multiple columns based on the number of items in that cell. Below is the sample data and I would like to split the data in Column3, Column4 and Column5 into multiple columns where each column contains an individual values based on text string 'FJ-SJ'. Any text with 'FJ-RJ' should be ignored in the split. This problem can better be understood by looking at the input and desired output shown below.
Input:
Output:
Any help i can get to solve this dynamic column creation problem will be highly appreciated.
I'm trying to solve a difficult problem of splitting data in a cell into multiple columns based on the number of items in that cell. Below is the sample data and I would like to split the data in Column3, Column4 and Column5 into multiple columns where each column contains an individual values based on text string 'FJ-SJ'. Any text with 'FJ-RJ' should be ignored in the split. This problem can better be understood by looking at the input and desired output shown below.
Input:
Column1 | Column2 | Column3 | Column4 | Column5 |
FJ-SJ-1111-1111 | Randomtext1 | FJ-SJ-0000-0101 FJ-RJ-0000-0010 | FJ-SJ-0000-0102 FJ-SJ-0000-0103 FJ-SJ-0000-0104 | FJ-SJ-0000-1111 FJ-RJ-0000-1111 |
FJ-SJ-1111-1112 | Randomtext2 | FJ-SJ-0000-0112 FJ-SJ-0000-0113 FJ-SJ-0000-0114 | FJ-RJ-0000-0011 FJ-SJ-0000-0106 FJ-SJ-0000-0105 | FJ-SJ-0000-1112 FJ-SJ-0000-1113 FJ-SJ-0000-1114 |
FJ-SJ-1111-1113 | Randomtext3 | FJ-RJ-0000-0011 FJ-RJ-0000-0012 FJ-SJ-0000-0115 FJ-SJ-0000-0116 FJ-SJ-0000-0117 | FJ-RJ-0000-0011 FJ-RJ-0000-0012 FJ-SJ-0000-0107 FJ-SJ-0000-0108 | FJ-RJ-0000-1112 FJ-SJ-0000-1115 FJ-SJ-0000-1116 FJ-SJ-0000-1117 |
FJ-SJ-1111-1114 | Randomtext4 | FJ-SJ-0000-0118 FJ-SJ-0000-0119 | FJ-SJ-0000-0109 | FJ-SJ-0000-1119 |
Output:
Column1 | Column2 | Column3 | Column4 | Column5 | |||||||||
FJ-SJ-1111-1111 | Randomtext1 | FJ-SJ-0000-0101 FJ-RJ-0000-0010 | FJ-SJ-0000-0101 | FJ-SJ-0000-0102 FJ-SJ-0000-0103 FJ-SJ-0000-0104 | FJ-SJ-0000-0102 | FJ-SJ-0000-0103 | FJ-SJ-0000-0104 | FJ-SJ-0000-1111 FJ-RJ-0000-1111 | FJ-SJ-0000-1111 | ||||
FJ-SJ-1111-1112 | Randomtext2 | FJ-SJ-0000-0112 FJ-SJ-0000-0113 FJ-SJ-0000-0114 | FJ-SJ-0000-0112 | FJ-SJ-0000-0113 | FJ-SJ-0000-0114 | FJ-RJ-0000-0011 FJ-SJ-0000-0106 FJ-SJ-0000-0105 | FJ-SJ-0000-0106 | FJ-SJ-0000-0105 | FJ-SJ-0000-1112 FJ-SJ-0000-1113 FJ-SJ-0000-1114 | FJ-SJ-0000-1112 | FJ-SJ-0000-1113 | FJ-SJ-0000-1114 | |
FJ-SJ-1111-1113 | Randomtext3 | FJ-RJ-0000-0011 FJ-RJ-0000-0012 FJ-SJ-0000-0115 FJ-SJ-0000-0116 FJ-SJ-0000-0117 | FJ-SJ-0000-0115 | FJ-SJ-0000-0116 | FJ-SJ-0000-0117 | FJ-RJ-0000-0011 FJ-RJ-0000-0012 FJ-SJ-0000-0107 FJ-SJ-0000-0108 | FJ-SJ-0000-0107 | FJ-SJ-0000-0108 | FJ-RJ-0000-1112 FJ-SJ-0000-1115 FJ-SJ-0000-1116 FJ-SJ-0000-1117 | FJ-SJ-0000-1115 | FJ-SJ-0000-1116 | FJ-SJ-0000-1117 | |
FJ-SJ-1111-1114 | Randomtext4 | FJ-SJ-0000-0118 FJ-SJ-0000-0119 | FJ-SJ-0000-0118 | FJ-SJ-0000-0119 | FJ-SJ-0000-0109 | FJ-SJ-0000-0109 | FJ-SJ-0000-1119 | FJ-SJ-0000-1119 |
Any help i can get to solve this dynamic column creation problem will be highly appreciated.