Hi
Have a look at:
http://www.mrexcel.com/forum/excel-questions/365691-concatenate-multiple-cells-array-formula.html
Also, please look at below, but it's not ideal:
Excel 2007
| A | B | C | D | E | F | G | H | I |
---|
location of space char | len of string | first word | second word | Shampoo | Lotion | Conditioner | | | |
Shampoo Hair | Shampoo | Hair | Hair, | | | | | | |
Lotion White | Lotion | White | | White, | | | | | |
Shampoo Soft | Shampoo | Soft | Soft, | | | | | | |
Shampoo Fresh | Shampoo | Fresh | Fresh, | | | | | | |
Conditioner Important | Conditioner | Important | | | Important, | | | | |
Conditioner Soft | Conditioner | Soft | | | Soft, | | | | |
Lotion Green | Lotion | Green | | Green, | | | | | |
Hair,Soft,Fresh, | White,Green, | Important,Soft, | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
Results | Descriptions | | | | | | | | |
Shampoo | Hair,Soft,Fresh, | | | | | | | | |
Lotion | White,Green, | | | | | | | | |
Conditioner | Important,Soft, | | | | | | | | |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]12[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]12[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]12[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]13[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]21[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]16[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]12[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]10[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]15[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
Sheet1
[TABLE="width: 85%"]
<tbody>[TR]
[TD]
Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #E0E0F0"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]C2[/TH]
[TD="align: left"]=FIND(
" ",B2,1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]D2[/TH]
[TD="align: left"]=LEN(
B2)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]E2[/TH]
[TD="align: left"]=LEFT(
B2,C2-1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]F2[/TH]
[TD="align: left"]=RIGHT(
B2,D2-C2)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G2[/TH]
[TD="align: left"]=IF(
E2="Shampoo",F2&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H2[/TH]
[TD="align: left"]=IF(
E2="Lotion",F2&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I2[/TH]
[TD="align: left"]=IF(
E2="Conditioner",F2&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]C3[/TH]
[TD="align: left"]=FIND(
" ",B3,1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]D3[/TH]
[TD="align: left"]=LEN(
B3)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]E3[/TH]
[TD="align: left"]=LEFT(
B3,C3-1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]F3[/TH]
[TD="align: left"]=RIGHT(
B3,D3-C3)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G3[/TH]
[TD="align: left"]=IF(
E3="Shampoo",F3&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H3[/TH]
[TD="align: left"]=IF(
E3="Lotion",F3&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I3[/TH]
[TD="align: left"]=IF(
E3="Conditioner",F3&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]C4[/TH]
[TD="align: left"]=FIND(
" ",B4,1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]D4[/TH]
[TD="align: left"]=LEN(
B4)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]E4[/TH]
[TD="align: left"]=LEFT(
B4,C4-1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]F4[/TH]
[TD="align: left"]=RIGHT(
B4,D4-C4)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G4[/TH]
[TD="align: left"]=IF(
E4="Shampoo",F4&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H4[/TH]
[TD="align: left"]=IF(
E4="Lotion",F4&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I4[/TH]
[TD="align: left"]=IF(
E4="Conditioner",F4&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]C5[/TH]
[TD="align: left"]=FIND(
" ",B5,1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]D5[/TH]
[TD="align: left"]=LEN(
B5)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]E5[/TH]
[TD="align: left"]=LEFT(
B5,C5-1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]F5[/TH]
[TD="align: left"]=RIGHT(
B5,D5-C5)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G5[/TH]
[TD="align: left"]=IF(
E5="Shampoo",F5&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H5[/TH]
[TD="align: left"]=IF(
E5="Lotion",F5&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I5[/TH]
[TD="align: left"]=IF(
E5="Conditioner",F5&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]C6[/TH]
[TD="align: left"]=FIND(
" ",B6,1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]D6[/TH]
[TD="align: left"]=LEN(
B6)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]E6[/TH]
[TD="align: left"]=LEFT(
B6,C6-1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]F6[/TH]
[TD="align: left"]=RIGHT(
B6,D6-C6)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G6[/TH]
[TD="align: left"]=IF(
E6="Shampoo",F6&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H6[/TH]
[TD="align: left"]=IF(
E6="Lotion",F6&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I6[/TH]
[TD="align: left"]=IF(
E6="Conditioner",F6&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]C7[/TH]
[TD="align: left"]=FIND(
" ",B7,1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]D7[/TH]
[TD="align: left"]=LEN(
B7)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]E7[/TH]
[TD="align: left"]=LEFT(
B7,C7-1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]F7[/TH]
[TD="align: left"]=RIGHT(
B7,D7-C7)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G7[/TH]
[TD="align: left"]=IF(
E7="Shampoo",F7&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H7[/TH]
[TD="align: left"]=IF(
E7="Lotion",F7&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I7[/TH]
[TD="align: left"]=IF(
E7="Conditioner",F7&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]C8[/TH]
[TD="align: left"]=FIND(
" ",B8,1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]D8[/TH]
[TD="align: left"]=LEN(
B8)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]E8[/TH]
[TD="align: left"]=LEFT(
B8,C8-1)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]F8[/TH]
[TD="align: left"]=RIGHT(
B8,D8-C8)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G8[/TH]
[TD="align: left"]=IF(
E8="Shampoo",F8&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H8[/TH]
[TD="align: left"]=IF(
E8="Lotion",F8&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I8[/TH]
[TD="align: left"]=IF(
E8="Conditioner",F8&",","")[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]G9[/TH]
[TD="align: left"]=G2&G3&G4&G5&G6&G7&G8[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H9[/TH]
[TD="align: left"]=H2&H3&H4&H5&H6&H7&H8[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]I9[/TH]
[TD="align: left"]=I2&I3&I4&I5&I6&I7&I8[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H13[/TH]
[TD="align: left"]=G9[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H14[/TH]
[TD="align: left"]=H9[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H15[/TH]
[TD="align: left"]=I9[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]