Need To Total Specific Cells and Their Opposites

clarkerots

New Member
Joined
Mar 29, 2019
Messages
10
I'm trying to setup a list that totals 'points scored' by team and 'points allowed' by team. I can use SUMIFS to total the points scored, as I can total referencing the team name, but I'm having a hard time figuring out how to total the points allowed, as that teams name will constantly change. Data listed below.


ABCDEFG
1Team 1Team 210080
2Team 3Team 110095
3Team 4Team 180120
4Team 1Team 5150120
5
6ScoredAllowed
7Team 1

<tbody>
</tbody>

D7 formula=SUMIFS(D1:D4,A1:A4,A7)+SUMIFS(E1:E4,B1:B4,A7)Totals D1+E2+E3+D4=465
E7 formula????Should total E1+D2+D3+E4=380

<tbody>
</tbody>

The team in column A has their score in column D, and the team in column B has their score in column E. In the example, I can sum Team 1's points scored because I can reference Team 1 in my search. The issue is finding the sum of the columns opposite Team 1's score, as they will always refer to a different team name.

Any help appreciated.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This
=SUMIF(A1:A4,A7,E1:E4)
sums only the values in E1:E4 where the corresponding cells in A1:A4 are equal to A7 (Team 1)

and this
SUMIF(B1:B4,A7,D1:D4)
sums only the values in D1:D4 where the corresponding cells in B1:B4 are equal to A7 (Team 1)

M.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,487
Members
448,967
Latest member
visheshkotha

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