SUMIF with INDEX MATCH Issue

clarkerots

New Member
Joined
Mar 29, 2019
Messages
10
I have the following data:

ABCDE
1Team 11Team 22
2Team 32Team 41
3Team 11Team 32
4Team 41Team 12
5Team 22Team 11
6
7Team 1-WinsTeam 1-Losses

<tbody>
</tbody>

Whenever a team wins, a 1 is entered manually into Column B or Column D. Whenever a team loses, a 2 is entered into Column B or Column D. I'm trying to create a formula that will give me Team 1 wins in B7, and Team 1 losses in D7. I'm guessing that a SUMIF would cover the task of totaling 1's or 2's, but whenever I try to couple it with a INDEX MATCH in order to sum just Team 1 information, I can only get it to read the first instance of Team 1. The final formula should read the 1's in B1, B3, and D5 to give Team 1 3 wins in B7, and read the 2's in D4 to give Team 1 1 loss in D7. Is there a way to accomplish this combination? Any help appreciated greatly!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi, something like this maybe:


Excel 2013/2016
ABCD
1Team 11Team 22
2Team 32Team 41
3Team 11Team 32
4Team 41Team 12
5Team 22Team 11
6
7Team 1-Wins3Team 1-Losses1
Sheet1
Cell Formulas
RangeFormula
B7=COUNTIFS(A1:A5,"Team 1",B1:B5,1)+COUNTIFS(C1:C5,"Team 1",D1:D5,1)
D7=COUNTIFS(A1:A5,"Team 1",B1:B5,2)+COUNTIFS(C1:C5,"Team 1",D1:D5,2)
 
Upvote 0
Or,

[B7] =COUNTIFS(A1:C5,"Team 1",B1:D5,1)

[D7] =COUNTIFS(A1:C5,"Team 1",B1:D5,2)

Regards
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
Members
448,555
Latest member
RobertJones1986

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