Formula help for a two-column match / mismatch

rogaret

New Member
Joined
Apr 25, 2016
Messages
5
I thought I was on the right track, but have messed it up somewhere.

Sorting based on a match in column C was easy enough, and then I could go down and visually pick out where I had a mismatch in column D. Tried to get a formula in E that would just return a YES in the highlighted rows.

=IF(COUNTIF($C:$C,C2)=1,"",IF(COUNTIFS($C:$C,C2,$D:$D,D2)=COUNTIF($C:$C,C2),"","Yes")) does NOT work, but I think it may only need some minor change to do so...




[TABLE="width: 579"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Rep[/TD]
[TD]Customer[/TD]
[TD]Order Num[/TD]
[TD] Due Date[/TD]
[TD]No Match[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0507075687[/TD]
[TD] 12/12/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0507075687[/TD]
[TD] 12/12/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0508231008[/TD]
[TD] 12/7/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0508231008[/TD]
[TD] 12/13/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0508780590[/TD]
[TD] 12/13/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0508780590[/TD]
[TD] 12/13/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0509178265[/TD]
[TD] 12/16/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0509178265[/TD]
[TD] 12/16/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0509861570[/TD]
[TD] 12/23/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0509861570[/TD]
[TD] 12/23/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0513386029[/TD]
[TD] 12/2/2018[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]0513386029[/TD]
[TD] 12/2/2018[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
How about
=IF(COUNTIF($C$2:$C$13,C2)< >COUNTIFS($C$2:$C$13,C2,$D$2:$D$13,D2),"Yes","")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,225,757
Messages
6,186,848
Members
453,379
Latest member
gabriellegonzalez

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