SUMIFS Across Two Tables (or some other solution)

mjweber1

New Member
Joined
Oct 1, 2015
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,

I'm racking my brain in trying to figure out a formula that will solve the following scenario.

I have a main table on a "Costs" sheet that contains a number of people that have monthly costs like so:
1725981465069.png


I then have another table on another sheet, call it "Cost Centers" that tracks the cost center for each person like so:
1725981408771.png


I now need to summarize the expenses in the below table on a monthly basis for each vendor (per Cost Center) that I have in the "Costs" table:
1725981529667.png

I also have an identical table for "Cost Center" BB.

My initial thought was to try to use a SUMIFS but that hasn't worked thus far. Does anyone have any suggestions?

Thanks in advance!
 

Attachments

  • 1725981307565.png
    1725981307565.png
    8.6 KB · Views: 3

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Maybe SUMPRODUCT. Does this look like what you expect?

Also, what version of Excel are you using? You should update your profile to show which version to get the best possible answers.
Book1
ABCDEFGHIJKLMN
1Costs
2NameVendorJanFebMarAprMayJunJulAugSepOctNovDec
3BobStar1001001109011013010010012013014080
4SueSquare1001001201301408010010012013014080
5TimStar5046607580405080809030100
6
7Cost Center
8NameJanFebMarAprMayJunJulAugSepOctNovDec
9BobAAAAAAAAAAAAAAAAAAAAAAAA
10SueAAAAAAAAAAAAAAAAAAAAAAAA
11TimBBBBBBBBBBBBAAAAAAAAAAAA
12
13Cost Center Vendor Summary
14AAJanFebMarAprMayJunJulAugSepOctNovDecTotal
15Star100100110901101301501802002201701801740
16Square10010012013014080100100120130140801340
17
18Cost Center Vendor Summary
19BBJanFebMarAprMayJunJulAugSepOctNovDecTotal
20Star504660758040000000351
21Square0000000000000
Sheet3
Cell Formulas
RangeFormula
B15:M16B15=SUMPRODUCT($C$3:$N$5*($B$3:$B$5=$A15)*($B$9:$M$11=$A$14)*($C$2:$N$2=B$14))
N15:N16,N20:N21N15=SUM(B15:M15)
B20:M21B20=SUMPRODUCT($C$3:$N$5*($B$3:$B$5=$A20)*($B$9:$M$11=$A$19)*($C$2:$N$2=B$19))
 
Upvote 0

Forum statistics

Threads
1,221,519
Messages
6,160,295
Members
451,636
Latest member
ddweller151

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