Hello Excel experts,
I have a single yet very long column with several blocks. Each block has a header/category name and each block is separated from the next block with 1-3 new lines. My data is similar to:
[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]Fruits[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[/TR]
[TR]
[TD]Pineapple[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Veggies[/TD]
[/TR]
[TR]
[TD]Celery[/TD]
[/TR]
[TR]
[TD]Carrots[/TD]
[/TR]
[TR]
[TD]Spinach[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Nuts[/TD]
[/TR]
[TR]
[TD]Pecan[/TD]
[/TR]
[TR]
[TD]Walnut[/TD]
[/TR]
</tbody>[/TABLE]
I would like to know how many items are within each block, along with the block name. So, my desired output is:
[TABLE="width: 141"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 160"]
<tbody>[TR]
[TD]Fruits[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Veggies[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Nuts[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody>[/TABLE]
OR
<tbody>
</tbody>
I would prefer a formula, if possible. Thank you!
I have a single yet very long column with several blocks. Each block has a header/category name and each block is separated from the next block with 1-3 new lines. My data is similar to:
[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]Fruits[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[/TR]
[TR]
[TD]Grapes[/TD]
[/TR]
[TR]
[TD]Pineapple[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Veggies[/TD]
[/TR]
[TR]
[TD]Celery[/TD]
[/TR]
[TR]
[TD]Carrots[/TD]
[/TR]
[TR]
[TD]Spinach[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Nuts[/TD]
[/TR]
[TR]
[TD]Pecan[/TD]
[/TR]
[TR]
[TD]Walnut[/TD]
[/TR]
</tbody>[/TABLE]
I would like to know how many items are within each block, along with the block name. So, my desired output is:
[TABLE="width: 141"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 160"]
<tbody>[TR]
[TD]Fruits[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Veggies[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Nuts[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody>[/TABLE]
OR
Fruits - 5 |
Veggies - 3 |
Nuts - 2 |
<tbody>
</tbody>
I would prefer a formula, if possible. Thank you!