As you can see the formula solution is a bit long. Enter the formula below in B2 and C2 resp., then copy the formula in C2 across as long as needed. If there are four names, concatenate columns C – F in cell B2:
Enter in B2:
=C2&" "&D2&" "&" "&E2&" "&F2
C2 (and copy across):
=REPLACE(SUBSTITUTE(REPLACE(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99)),2,0,(RIGHT(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99)),1)))&"ß",RIGHT(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99))&"ß",2),LEFT(TRIM(MID(SUBSTITUTE(" "&$A2," ",REPT(" ",99)),COLUMNS($A:A)*99,99)),1)),1,1,"")
* | A | B | C | D | E | F |
1 | * | * | * | * | * | * |
2 | ntefaS oarcM reteP ialV | Stefan Marco *Peter Vali | Stefan | Marco | Peter | Vali |
3 | ntefaS oarcM reteP | Stefan Marco *Peter | Stefan | Marco | Peter | * |
4 | ntefaS oarcM | Stefan Marco * | Stefan | Marco | * | * |
5 | ntefaS | Stefan * * | Stefan | * | * | * |
<colgroup><col style="width:30px; "><col style="width:170px;"><col style="width:176px;"><col style="width:71px;"><col style="width:68px;"><col style="width:67px;"><col style="width:64px;"></colgroup><tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4