I have a tricky situation that I am not quite sure how to solve. I have a datable to be used with Jquery / Datatables that needs some formatting after exporting it from an excel pivot table.
<tr>
<td>AD</td>
<td> $0.03 </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>BD</td>
<td> $0.05 </td>
<td> $0.54 </td>
<td> $5.32 </td>
</tr>
<tr>
<td>CD</td>
<td> $0.35 </td>
<td> $0.59 </td>
<td> $0.32 </td>
</tr>
Each of the “td” will need to set a class name. The first in the “tr” would be class=“1”, second would be class=“2” etc etc.
I cant use a mass find replace on the entire “tr” block due to each “td” having unique values within.
Any ideas how to acheive this? I’ve got 16,000 lines of a data set that need to be adjusted.
Thanks!