Table 1 has various columns. Each column has a alpha_numeric code. Table 2 has the corresponding numeric value for each code. I want to total each row in Table 1 using a formula (Vlookup, Index ?). Also, the formula should be able to accommodate additional columns that will need to inserted in the future, for example, between COL_C and COL_D. Thanks
<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>
</tbody>
TABLE_1 | |||||
COL_A | COL_B | COL_C | COL_D | TOTAL | |
Codes | aa1 | bb2 | cc3 | dd4 | ????? |
TABLE_2 | |||||
Code | Value | ||||
aa1 | 234 | ||||
bb2 | 456 | ||||
cc3 | 321 | ||||
dd4 | 56 |
<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>
</tbody>