Forum

Notifications
Clear all

SUM Multiple Records in One Table to a Single Cell in Another Table

3 Posts
3 Users
0 Reactions
119 Views
(@georgehayes)
Posts: 1
New Member
Topic starter
 

This is my first post; please be kind.
I have two tables.
First table (Master_Donor_Table) has individual records (no dups); first column is ID field, second column is TOTAL $$$ amount, which should be a sum from second table.
Second table (Master_Cost_Table) has same ID field in first column, second column is currency, HOWEVER this second table includes duplicate IDs.
I need to summarize all occurrences of an ID from the 2nd column of second table (Master_Cost_Table ($$$ Received)) into an individual ID/cell in the second column of first table (Master_Donor_Table).

In cell B2 of the Master_Donor_Table, I've tried the following:
=SUMPRODUCT(SUMIF([Donor ID],Master_Cost_Table[Donor ID],Master_Cost_Table[Total Received]))
=SUM(INDEX(Master_Cost_Table,2,MATCH([@[Donor ID]],Master_Cost_Table,0)))
=SUM(SUMIF(Master_Cost_Table[Donor ID],[Donor ID],Master_Cost_Table[Total Received]))
As well as several more attempts. At this point I'm lost. Would be grateful for any assistance.

I need to do this with formulas, NO VBA.
Using Microsoft 365 for Enterprise on a PC.

Thank you in advance for any assistance provided.

George

 
Posted : 31/12/2021 1:41 pm
Anders Sehlstedt
(@sehlsan)
Posts: 972
Prominent Member
 

Hello George,

You were almost there, you can use different functions to get the result, for example SUMIF. Example below.

=SUMIF(Master_Cost_Table[Donor ID],[@[Donor ID]],Master_Cost_Table[Total Received])

Br,
Anders

 
Posted : 31/12/2021 6:04 pm
(@luke-man)
Posts: 1
New Member
 

=SUMIFS(Master_Cost_Table[Total Received],Master_Cost_Table[Donor ID],[@[Donor ID]])

 
Posted : 01/01/2022 2:35 am
Share: