VBA: Concatenate data with and without colon from respective rows in B and C cell in all excel sheet
From D data can be in any cell with and without colon symbol. The empty cells can be anywhere.
Example mock data is below:
Excel 2010
<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: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
</tbody>
From D data can be in any cell with and without colon symbol. The empty cells can be anywhere.
Example mock data is below:
Excel 2010
B | C | D | E | F | G | H | I | J | |
---|---|---|---|---|---|---|---|---|---|
Get data with colon | Get data without colon | ||||||||
: | 1#a; | 1 | # | a; | : | ||||
0:1 (b:a) | 14# | 1 | 4 | 0:1 | (b:a) | # | |||
5a | 5 | a |
<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: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
</tbody>
vba3