Hi,
I receive an automatic dump of data on a weekly basis that looks like the below Table A. Basically, the first column is by category and the remaining columns are by week. How would I summarize the hours (found within the text) into Table B, which would summarize it by category (A,B,C) and Type (Submitted, Approval, Invoice, etc)? Any help would be highly appreciated.
Table A: Table B:
[TABLE="width: 901"]
<colgroup><col><col span="2"><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Category[/TD]
[TD]08-Jun-18[/TD]
[TD]15-Jun-18[/TD]
[TD][/TD]
[TD][/TD]
[TD]Submitted [/TD]
[TD]Approval[/TD]
[TD] Invoice[/TD]
[TD] Client [/TD]
[TD]Document[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 383[/TD]
[TD]Invoice (HRS : 147.5[/TD]
[TD][/TD]
[TD]A[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Document (HRS : 36[/TD]
[TD]Document (HRS : 39[/TD]
[TD][/TD]
[TD]B[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Submitted (HRS : 53[/TD]
[TD]Submitted (HRS : 41[/TD]
[TD][/TD]
[TD]C[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 9[/TD]
[TD]Submitted (HRS : 6.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 5[/TD]
[TD]Client (HRS : 54[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 19[/TD]
[TD]Submitted (HRS : 18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 3[/TD]
[TD]Submitted (HRS : 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 2[/TD]
[TD]Submitted (HRS : 7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 778.5[/TD]
[TD]Invoice (HRS : 446.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 747[/TD]
[TD]Invoice (HRS : 842[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 936.5[/TD]
[TD]Approval (HRS : 8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 982.5[/TD]
[TD]Invoice (HRS : 819.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 918[/TD]
[TD]Invoice (HRS : 1122[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 58.5[/TD]
[TD]Invoice (HRS : 292[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Client (HRS : 528.5[/TD]
[TD]Client (HRS : 429.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Approval (HRS : 4[/TD]
[TD]Approval (HRS : 8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I receive an automatic dump of data on a weekly basis that looks like the below Table A. Basically, the first column is by category and the remaining columns are by week. How would I summarize the hours (found within the text) into Table B, which would summarize it by category (A,B,C) and Type (Submitted, Approval, Invoice, etc)? Any help would be highly appreciated.
Table A: Table B:
[TABLE="width: 901"]
<colgroup><col><col span="2"><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Category[/TD]
[TD]08-Jun-18[/TD]
[TD]15-Jun-18[/TD]
[TD][/TD]
[TD][/TD]
[TD]Submitted [/TD]
[TD]Approval[/TD]
[TD] Invoice[/TD]
[TD] Client [/TD]
[TD]Document[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 383[/TD]
[TD]Invoice (HRS : 147.5[/TD]
[TD][/TD]
[TD]A[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Document (HRS : 36[/TD]
[TD]Document (HRS : 39[/TD]
[TD][/TD]
[TD]B[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Submitted (HRS : 53[/TD]
[TD]Submitted (HRS : 41[/TD]
[TD][/TD]
[TD]C[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 9[/TD]
[TD]Submitted (HRS : 6.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 5[/TD]
[TD]Client (HRS : 54[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 19[/TD]
[TD]Submitted (HRS : 18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 3[/TD]
[TD]Submitted (HRS : 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Submitted (HRS : 2[/TD]
[TD]Submitted (HRS : 7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 778.5[/TD]
[TD]Invoice (HRS : 446.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 747[/TD]
[TD]Invoice (HRS : 842[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 936.5[/TD]
[TD]Approval (HRS : 8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 982.5[/TD]
[TD]Invoice (HRS : 819.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 918[/TD]
[TD]Invoice (HRS : 1122[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Invoice (HRS : 58.5[/TD]
[TD]Invoice (HRS : 292[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Client (HRS : 528.5[/TD]
[TD]Client (HRS : 429.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Approval (HRS : 4[/TD]
[TD]Approval (HRS : 8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]