A tricky array sum question into a single cell...

spup345

New Member
Joined
Oct 14, 2016
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Best to illustrate - Table 1:
ABC1
DEF2
GHI3

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...
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
something like
=SUM((SUMIFS(B1:B9,A1:A9,E2:E8)))
where table 2 is in E2:E8

what version of excel are you using

Book15
ABCDEFGH
1ABC1Table 2:5
2DEF2XYZ
3GHI3DEF
4LMN
5GHI
6
Sheet1
Cell Formulas
RangeFormula
H1H1=SUM((SUMIFS(B1:B9,A1:A9,E2:E8)))
 
Upvote 0
Excel 365 I believe. Windows 11 with the latest excel basically…

I will give the above a try and let you know. Thank you!
 
Upvote 0
would you update your profile to show 365 version
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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