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 you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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