Adding multiple cells that need lookups

TMervis

New Member
Joined
Jul 20, 2017
Messages
10
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

TABLE_1
COL_ACOL_BCOL_CCOL_DTOTAL
Codesaa1bb2cc3dd4?????
TABLE_2
CodeValue
aa1234
bb2456
cc3321
dd456

<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
ABCDE
1aa1bb2cc3dd41067
2
3aa1234
4bb2456
5cc3321
6dd456

<colgroup><col width="64" span="5" style="width:48pt"> </colgroup><tbody>
</tbody>

In E1 This is an array formula and must be committed with CONTROL+SHIFT+ENTER. If done correctly Excel will put {} around the formula. Adjust the ranges as need.
Code:
=SUM(SUMIF(A3:A6,A1:D1,B3:B6))
 
Upvote 0

Forum statistics

Threads
1,214,785
Messages
6,121,543
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top