I am having an impossible time finding a solution for this. I need to combine cell contents in an unusual way (see below), based on if there is an "x" in column A. See below for the exact representation of what I need to do in a worksheet with 200,000 total cells of content. Is there any hope? Anyone who can help will be my personal hero for life, and you may save a life (mine!)!
Current data format:
<tbody>
</tbody>The above table can be copied and dropped directly in to Excel
Needed format:
<tbody>
</tbody>The above table can be copied and dropped directly in to Excel
If no solution to the above can be found, perhaps I could do this one column at a time by copying the individual columns into separate sheets, run a Macro, then copy the reformatted info back (EG, just do column A and one other column at a time like below). I am not sure of any other options or approaches to accomplishing this, but an open to thoughts.
Current data format:
Needed format:
Current data format:
col1 | col2 | col3 | col4 | col5 | |
---|---|---|---|---|---|
row1 | A | B | C | D | E |
row2 | x | a | l | g | |
row3 | b | m | h | Title A | |
row4 | c | n | i | ||
row5 | x | d | o | j | |
row6 | e | p | k | Title B | |
row7 | f | q | l | Title C | |
row8 | g | r | m |
<tbody>
</tbody>
Needed format:
col1 | col2 | col3 | col4 | col5 | |
---|---|---|---|---|---|
row1 | A | B | C | D | E |
row2 | x | a b c | l m n | g h i | Title A |
row3 | x | d e f g | o p q r | j k l m | Title B/Title C |
<tbody>
</tbody>
If no solution to the above can be found, perhaps I could do this one column at a time by copying the individual columns into separate sheets, run a Macro, then copy the reformatted info back (EG, just do column A and one other column at a time like below). I am not sure of any other options or approaches to accomplishing this, but an open to thoughts.
Current data format:
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;">A B </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;">x a </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;"> b </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;"> c </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;">x d </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;"> e </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;"> f </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;"> g </code>
Needed format:
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;">A B </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;">x a b c </code>
- <code class="language-vb" style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;">x d e f g </code>