Search for duplicate data for a specific date

cstepp

New Member
Joined
Jul 4, 2016
Messages
20
Sorry if title is a bit misleading. I am trying to find a way to search for duplicate data in columns 1 and 2 to see if they are on the same date that is in column 3. To clarify a bit more, I am creating a sports schedule. In columns 1 and 2 are the home and away teams. In column 3 is the date of the game. I am trying to find a way to ensure that the same team isn't listed twice in either the home or away teams on any given date. In the example below Team A and team B have 2 games on the same date and would need to be identified somehow. Any help to get me started in the right direction would be appreciated.
Thanks in advance.

[TABLE="width: 301"]
<tbody>[TR]
[TD]Home[/TD]
[TD]Visitor[/TD]
[TD]Date[/TD]
[/TR]
[TR]
[TD]Team A[/TD]
[TD]Team B[/TD]
[TD]1/1/2019[/TD]
[/TR]
[TR]
[TD]Team C[/TD]
[TD]Team D[/TD]
[TD]1/1/2019[/TD]
[/TR]
[TR]
[TD]Team A[/TD]
[TD]Team B[/TD]
[TD]1/2/2019[/TD]
[/TR]
[TR]
[TD]Team C[/TD]
[TD]Team A[/TD]
[TD]1/2/2019[/TD]
[/TR]
[TR]
[TD]Team A[/TD]
[TD]Team C[/TD]
[TD]1/3/2019[/TD]
[/TR]
[TR]
[TD]Team B[/TD]
[TD]Team D[/TD]
[TD]1/3/2019[/TD]
[/TR]
[TR]
[TD]Team B[/TD]
[TD]Team E[/TD]
[TD]1/3/2019[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about Conditional format.
Select A2:B last row > Conditional format > New Rule > Use a formula >
=SUMPRODUCT((($A$2:$A$8=A2)+($B$2:$B$8=A2))*($C$2:$C$8=$C2))>1

Select the format > OK
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,028
Members
452,542
Latest member
Bricklin

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