Greetings,
I am creating a workbook to consolidate data from two other workbooks created by exporting reports from an accounting system. Here are examples from the two exported workbooks:
WORKBOOK A
[TABLE="class: outer_border, width: 150"]
<tbody>[TR]
[TD]ItemCode[/TD]
[TD]InvValue[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]0.00
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]619.42[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]3.00[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]289.56[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4,459.33[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]44.59[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]153.40[/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]139.18[/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]56.88[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]794.82[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]650.37[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]184.38[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]368.76[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]1027.71[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]355.45[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]543.19[/TD]
[/TR]
</tbody>[/TABLE]
WORKBOOK B
[TABLE="class: outer_border, width: 150"]
<tbody>[TR]
[TD]ItemCode[/TD]
[TD]InvTrans[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]-130.81[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]-420.15[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]-3,354.76[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]-1087.42[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]-12.50[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]-627.66[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]-512.21[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]-280.47[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]-621.80[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]-774.72[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]-524.67[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]-124.14[/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]-130.99[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]-455.56[/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]-54.45[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]-15.24[/TD]
[/TR]
</tbody>[/TABLE]
Here is the result I'm looking for:
WORKBOOK C
[TABLE="class: outer_border, width: 150"]
<tbody>[TR]
[TD]ItemCode[/TD]
[TD]InvValue[/TD]
[TD]InvTrans[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]619.42[/TD]
[TD]-586.37[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]3.00[/TD]
[TD]-12.50[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]289.56[/TD]
[TD]-280.47[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4,503.92[/TD]
[TD]-3879.43[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]153.40[/TD]
[TD]-124.14[/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]139.18[/TD]
[TD]-130.99[/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]56.88[/TD]
[TD]-54.45[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]794.82[/TD]
[TD]-774.72[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]650.37[/TD]
[TD]-627.66[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]553.13[/TD]
[TD]-932.36[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]1,926.35[/TD]
[TD]-1709.22[/TD]
[/TR]
</tbody>[/TABLE]
My first issue is that I need to have Workbook C take the ItemCode values from Workbook A and populate only the unique values. The second issue is that I will need Workbook C to populate those unique values and the SUMIF formulas used to give the totals per ItemCode for InvValue and InvTrans without having to open Workbooks A and B.
I look forward to learning the magic!
Justin
I am creating a workbook to consolidate data from two other workbooks created by exporting reports from an accounting system. Here are examples from the two exported workbooks:
WORKBOOK A
[TABLE="class: outer_border, width: 150"]
<tbody>[TR]
[TD]ItemCode[/TD]
[TD]InvValue[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]0.00
[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]619.42[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]3.00[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]289.56[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4,459.33[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]44.59[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]153.40[/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]139.18[/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]56.88[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]794.82[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]650.37[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]184.38[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]368.76[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]1027.71[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]355.45[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]543.19[/TD]
[/TR]
</tbody>[/TABLE]
WORKBOOK B
[TABLE="class: outer_border, width: 150"]
<tbody>[TR]
[TD]ItemCode[/TD]
[TD]InvTrans[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]-130.81[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]-420.15[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]-3,354.76[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]-1087.42[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]-12.50[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]-627.66[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]-512.21[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]-280.47[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]-621.80[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]-774.72[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]-524.67[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]-124.14[/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]-130.99[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]-455.56[/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]-54.45[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]-15.24[/TD]
[/TR]
</tbody>[/TABLE]
Here is the result I'm looking for:
WORKBOOK C
[TABLE="class: outer_border, width: 150"]
<tbody>[TR]
[TD]ItemCode[/TD]
[TD]InvValue[/TD]
[TD]InvTrans[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]619.42[/TD]
[TD]-586.37[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]3.00[/TD]
[TD]-12.50[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]289.56[/TD]
[TD]-280.47[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4,503.92[/TD]
[TD]-3879.43[/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]153.40[/TD]
[TD]-124.14[/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]139.18[/TD]
[TD]-130.99[/TD]
[/TR]
[TR]
[TD]K[/TD]
[TD]56.88[/TD]
[TD]-54.45[/TD]
[/TR]
[TR]
[TD]H[/TD]
[TD]794.82[/TD]
[TD]-774.72[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]650.37[/TD]
[TD]-627.66[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]553.13[/TD]
[TD]-932.36[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]1,926.35[/TD]
[TD]-1709.22[/TD]
[/TR]
</tbody>[/TABLE]
My first issue is that I need to have Workbook C take the ItemCode values from Workbook A and populate only the unique values. The second issue is that I will need Workbook C to populate those unique values and the SUMIF formulas used to give the totals per ItemCode for InvValue and InvTrans without having to open Workbooks A and B.
I look forward to learning the magic!
Justin