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.

Matchesdata1data2data3
Yellow Oak vs Blue Stone
Yellow Oak vs Green Grass Oak
Blue Stone vs Green Grass Oak

<tbody>
</tbody>

TeamsMatch Played
Yellow Oak
Blue Stone
Green Grass Oak

<tbody>
</tbody>

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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,213,551
Messages
6,114,272
Members
448,558
Latest member
aivin

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