<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</style>
<table class="tableizer-table">
<thead><tr class="tableizer-firstrow"><th>Name</th><th>Description</th><th> </th><th>Category</th><th>Sub Description</th><th> </th><th>Name</th><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead><tbody>
<tr><td>Alpha</td><td>B2 A1 C1 D3</td><td> </td><td>A</td><td>A1</td><td> </td><td>Alpha</td><td>A1</td><td>B2</td><td>C1</td><td>D3</td></tr>
<tr><td>Bravo</td><td>C3 B2 A2 D2</td><td> </td><td>A</td><td>A2</td><td> </td><td>Bravo</td><td>A2</td><td>B2</td><td>C3</td><td>D2</td></tr>
<tr><td>Charlie</td><td>A2 B1 D1 C2</td><td> </td><td>B</td><td>B1</td><td> </td><td>Charlie</td><td>A2</td><td>B1</td><td>C2</td><td>D1</td></tr>
<tr><td>Delta</td><td>A1 B1 C3 D3</td><td> </td><td>B</td><td>B2</td><td> </td><td>Delta</td><td>A1</td><td>B1</td><td>C3</td><td>D3</td></tr>
<tr><td>Echo</td><td>A1 C3 B2 D1</td><td> </td><td>C</td><td>C1</td><td> </td><td>Echo</td><td>A1</td><td>B2</td><td>C3</td><td>D1</td></tr>
<tr><td> </td><td> </td><td> </td><td>C</td><td>C2</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
<tr><td> </td><td> </td><td> </td><td>C</td><td>C3</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
<tr><td> </td><td> </td><td> </td><td>D</td><td>D1</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
<tr><td> </td><td> </td><td> </td><td>D</td><td>D2</td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td></tr>
<tr><td> </td><td> </td><td> </td><td>D</td><td>D3</td><td> </td><td> </td><td> </td><td> </td><td> </td><td></td></tr>
</tbody></table>
Using some HTML script to display my tables:
Hopefully that code runs so that you can see the input and desired output.. The left two tables are inputs and the right table is the desired output.
Essentially I am looking for a way to bucket text inside a string ("Description") into predefined buckets ("Category"). The Categories with then be the columns in the output with the relevant Sub-Categories in the cell below.
Does that make sense? I can perform this action in excel, but I am getting to the limits of my machine due to runs with 100k+ "Names" and 500+ "Sub Categories".