Hi guys,
I'm completely fogged here and don't know where to begin. I have a table that I need to know a subtotal based on each order. Hopefully I can describe this correctly. Of the table below what I need as an output is the Order Number and how many distinct load numbers there are to each. So a result may be some sort of code which adds a column F with the distinct Order Number and column G with the total distinct amount of Load Numbers.
[TABLE="width: 525"]
<TBODY>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="class: grid, width: 400"]
<TBODY>[TR]
[TD]Load Number</SPAN>
[/TD]
[TD]Host External ID</SPAN>
[/TD]
[TD]Order Number</SPAN>
[/TD]
[TD]Carrier Move ID</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD]Schedule Batch Number</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00082126381</SPAN>
[/TD]
[TD]12345
[/TD]
[TD]XA82949</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]00082139824</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]XA82949</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00010663629</SPAN></SPAN></SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]XA82949</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00010553630</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]TG12302</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00020663631</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]WY12305</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]00010663432</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]WY12305</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]
I'm completely fogged here and don't know where to begin. I have a table that I need to know a subtotal based on each order. Hopefully I can describe this correctly. Of the table below what I need as an output is the Order Number and how many distinct load numbers there are to each. So a result may be some sort of code which adds a column F with the distinct Order Number and column G with the total distinct amount of Load Numbers.
[TABLE="width: 525"]
<TBODY>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="class: grid, width: 400"]
<TBODY>[TR]
[TD]Load Number</SPAN>
[/TD]
[TD]Host External ID</SPAN>
[/TD]
[TD]Order Number</SPAN>
[/TD]
[TD]Carrier Move ID</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD]Schedule Batch Number</SPAN>
[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00082126381</SPAN>
[/TD]
[TD]12345
[/TD]
[TD]XA82949</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]00082139824</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]XA82949</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00010663629</SPAN></SPAN></SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]XA82949</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD]</SPAN>
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00010553630</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]TG12302</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]00020663631</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]WY12305</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]00010663432</SPAN>
[/TD]
[TD]12345</SPAN>
[/TD]
[TD]WY12305</SPAN>
[/TD]
[TD]00863</SPAN>
[/TD]
[TD][TABLE="width: 525"]
<TBODY>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
</TBODY>[/TABLE]