SumIFs for two tables

Nissepiano

New Member
Joined
Nov 1, 2019
Messages
1
Hi everyone!

I need some help.

I have two tables (short version, see below). And I want put these together with the and want to have the total sum (from table 1) for the categories in table 2. The R and Z is the positions in a grid. So I want to sum up the weights in table 1 for every category in table 2 in new table total weights per category. I hope someone can help me, I can do it a via several tables, but it is not so nice with so many tables.

Regards
Nisspeiano


Weights
[TABLE="width: 368"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD]R[/TD]
[TD]393.333[/TD]
[TD]420[/TD]
[TD]446.667[/TD]
[TD]473.333[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7.6[/TD]
[TD]547[/TD]
[TD]584[/TD]
[TD]621[/TD]
[TD]659[/TD]
[/TR]
[TR]
[TD]44.55[/TD]
[TD]2116[/TD]
[TD]2254[/TD]
[TD]2401[/TD]
[TD]2544[/TD]
[/TR]
[TR]
[TD]103.25[/TD]
[TD]2116[/TD]
[TD]2254[/TD]
[TD]2401[/TD]
[TD]2544[/TD]
[/TR]
[TR]
[TD]161.95[/TD]
[TD]2116[/TD]
[TD]2254[/TD]
[TD]2401[/TD]
[TD]2544[/TD]
[/TR]
[TR]
[TD]211.533[/TD]
[TD]1458[/TD]
[TD]1555[/TD]
[TD]1651[/TD]
[TD]1753[/TD]
[/TR]
[TR]
[TD]252[/TD]
[TD]1458[/TD]
[TD]1555[/TD]
[TD]1651[/TD]
[TD]1753[/TD]
[/TR]
[TR]
[TD]292.467[/TD]
[TD]1458[/TD]
[TD]1555[/TD]
[TD]1651[/TD]
[TD]1753[/TD]
[/TR]
</tbody>[/TABLE]


Categories
[TABLE="width: 368"]
<colgroup><col span="4"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]393.333[/TD]
[TD]420[/TD]
[TD]446.667[/TD]
[TD]473.333[/TD]
[/TR]
[TR]
[TD]7.6[/TD]
[TD]LLW-2a[/TD]
[TD]LLW-1[/TD]
[TD]RISK[/TD]
[TD]LOW RISK[/TD]
[/TR]
[TR]
[TD]44.55[/TD]
[TD]LLW-2a[/TD]
[TD]LLW-1[/TD]
[TD]RISK[/TD]
[TD]LOW RISK[/TD]
[/TR]
[TR]
[TD]103.25[/TD]
[TD]LLW-2a[/TD]
[TD]LLW-1[/TD]
[TD]RISK[/TD]
[TD]LOW RISK[/TD]
[/TR]
[TR]
[TD]161.95[/TD]
[TD]LLW-2a[/TD]
[TD]LLW-1[/TD]
[TD]RISK[/TD]
[TD]LOW RISK[/TD]
[/TR]
[TR]
[TD]211.533[/TD]
[TD]LLW-2b[/TD]
[TD]LLW-2a[/TD]
[TD]LLW-1[/TD]
[TD]LOW RISK[/TD]
[/TR]
[TR]
[TD]252[/TD]
[TD]LLW-2b[/TD]
[TD]LLW-2a[/TD]
[TD]LLW-1[/TD]
[TD]RISK[/TD]
[/TR]
[TR]
[TD]292.467[/TD]
[TD]LLW-3[/TD]
[TD]LLW-2a[/TD]
[TD]LLW-1[/TD]
[TD]RISK
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi,

Is this what you needed?


Book1
ABCDE
1Weights
2R393.333420446.667473.333
3Z
47.6547584621659
544.552116225424012544
6103.252116225424012544
7161.952116225424012544
8211.5331458155516511753
92521458155516511753
10292.4671458155516511753
11
12Categories
13393.333420446.667473.333
147.6LLW-2aLLW-1RISKLOW RISK
1544.55LLW-2aLLW-1RISKLOW RISK
16103.25LLW-2aLLW-1RISKLOW RISK
17161.95LLW-2aLLW-1RISKLOW RISK
18211.533LLW-2bLLW-2aLLW-1LOW RISK
19252LLW-2bLLW-2aLLW-1RISK
20292.467LLW-3LLW-2aLLW-1RISK
21
22CategoriesWeights
23LLW-112,299
24LLW-2a11,560
25LLW-2b2,916
26LLW-31,458
27LOW RISK10,044
28RISK11,330
Sheet1
Cell Formulas
RangeFormula
B23=SUMPRODUCT(($B$14:$E$20=A23)*$B$4:$E$10)
 
Last edited:
Upvote 0

Similar threads

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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