COUNTIFS or better way there?

sooshil

Board Regular
Joined
Feb 21, 2013
Messages
104
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I have a small data that of matches played between two teams.
The data looks similar to this.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Matches[/TD]
[TD]data1[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[/TR]
[TR]
[TD]Yellow Oak vs Blue Stone[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Yellow Oak vs Green Grass Oak[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blue Stone vs Green Grass Oak[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Teams[/TD]
[TD]Match Played[/TD]
[/TR]
[TR]
[TD]Yellow Oak[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blue Stone[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Green Grass Oak[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Here I want to count how many times a team have played the match. Data1, data2 and data3 are criteria. If I enter at least one of those (data1, data2, data3) the criteria is met. And, we can consider that the team involved have played 1 match each.
For example, if any number value is entered in data1 along Yellow Oak vs Blue Stone, match played for the teams Yellow Oak and Blue Stone should be 1 each.
If i fill all rows of data1 (or data2 or data3) column, the match played by each team will be 3.
Number of teams can vary.
I am able to do this with COUNTIFS using wildcard character, but that works only until no word is repeated in team names.
Any help be appreciated.
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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