Best to illustrate - Table 1:
Table 2:
I would like a formula, in a single cell, that works like: "If the value in Table 1, Column 1 exists anywhere in Table 2, sum the corresponding values in Table 1, Column 2". It would need to be an array I believe.
In the above tables, the cell would return a result of 5 --> DEF and GHI from Table 1, exist in Table 2, so 2 + 3 = 5
I can't figure out what combination (if any) of LOOKUP, or INDEX/MATCH, or SUMIFS or something else can actually do this calc in a single cell...
ABC | 1 |
DEF | 2 |
GHI | 3 |
Table 2:
XYZ |
DEF |
LMN |
GHI |
I would like a formula, in a single cell, that works like: "If the value in Table 1, Column 1 exists anywhere in Table 2, sum the corresponding values in Table 1, Column 2". It would need to be an array I believe.
In the above tables, the cell would return a result of 5 --> DEF and GHI from Table 1, exist in Table 2, so 2 + 3 = 5
I can't figure out what combination (if any) of LOOKUP, or INDEX/MATCH, or SUMIFS or something else can actually do this calc in a single cell...